[npl] / trunk / NationalProblemLibrary / UVA-Stat / setStat212-Homework03 / stat212-HW03-07.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/UVA-Stat/setStat212-Homework03/stat212-HW03-07.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 451 - (download) (annotate)
Tue Jul 3 21:36:52 2007 UTC (5 years, 10 months ago) by jjholt
File size: 1221 byte(s)
Added stat problems.  Tags to be fixed soon.

    1 ## DESCRIPTION
    2 ##  Statistics: Probability
    3 ## ENDDESCRIPTION
    4 
    5 ## KEYWORDS('statistics', 'probability')
    6 ## naw tagged this problem.
    7 
    8 ## DBchapter('Probability')
    9 ## DBsection()
   10 ## Date('6/7/2005')
   11 ## Author('Jeff Holt')
   12 ## Institution('UVA')
   13 ## TitleText1('Statistics for Management and Economics')
   14 ## EditionText1('6')
   15 ## AuthorText1('Keller, Warrack')
   16 ## Section1()
   17 ## Problem1()
   18 
   19 
   20 DOCUMENT();        # This should be the first executable line in the problem.
   21 
   22 loadMacros(
   23 "PG.pl",
   24 "PGbasicmacros.pl",
   25 "PGchoicemacros.pl",
   26 "PGanswermacros.pl",
   27 "PGnumericalmacros.pl",
   28 "PGstatisticsmacros.pl",
   29 "PGauxiliaryFunctions.pl"
   30 );
   31 
   32 TEXT(beginproblem());
   33 $showPartialCorrectAnswers = 1;  # Change to 0 to shut off separate answer display.
   34 ## install_problem_grader(~~&std_problem_grader); # Uncomment to turn off partial credit.
   35 
   36 $a = random(.15,.35,.01);
   37 $b = random(.59,.89,.01);
   38 $banda = random(.26,.44,.01);
   39 
   40 BEGIN_TEXT
   41 $PAR
   42 Suppose that \(A\) and \(B\) are two events for which
   43 \(P(A) = $a\), \(P(B) = $b\), and \(P(A\;\mathrm{and}\;B) = $banda\)  Find
   44 \(P(A|B)\).
   45 $PAR
   46 \(P(A|B) = \) \{ans_rule(15)\}
   47 $BR
   48 
   49 
   50 END_TEXT
   51 
   52 &ANS(num_cmp($banda/$b));
   53 
   54 ENDDOCUMENT();       # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9