[npl] / trunk / NationalProblemLibrary / UVA-Stat / setStat212-Homework04 / stat212-HW04-14.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/UVA-Stat/setStat212-Homework04/stat212-HW04-14.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1479 - (view) (download)

1 : jjholt 451 ## DESCRIPTION
2 : jjholt 459 ## Conditional Probability
3 : jjholt 451 ## ENDDESCRIPTION
4 :    
5 : jjholt 459 ## KEYWORDS('probability', 'conditional')
6 : jjholt 451 ## naw tagged this problem.
7 :    
8 : jjholt 459 ## DBsubject('Probability')
9 :     ## DBchapter('Theory')
10 :     ## DBsection('Conditional Probability')
11 : jjholt 451 ## Date('6/13/2005')
12 :     ## Author('Nolan A. Wages')
13 :     ## Institution('UVA')
14 :     ## TitleText1('Statistics for Management and Economics')
15 :     ## EditionText1('6')
16 :     ## AuthorText1('Keller, Warrack')
17 :     ## Section1()
18 :     ## Problem1()
19 :    
20 :    
21 :     DOCUMENT(); # This should be the first executable line in the problem.
22 :    
23 :     loadMacros(
24 :     "PG.pl",
25 :     "PGbasicmacros.pl",
26 :     "PGchoicemacros.pl",
27 :     "PGanswermacros.pl",
28 :     "PGnumericalmacros.pl",
29 :     "PGstatisticsmacros.pl",
30 :     "PGauxiliaryFunctions.pl"
31 :     );
32 :    
33 :    
34 :    
35 :    
36 :     TEXT(beginproblem());
37 :     $showPartialCorrectAnswers = 1; # Change to 0 to shut off separate answer display.
38 :     ## install_problem_grader(~~&std_problem_grader); # Uncomment to turn off partial credit.
39 :    
40 :    
41 :     $a = random(75,85,1);
42 :     $b = random(25,35,1);
43 :     $c = random(10,15,1);
44 :     $a1 = random(35,45,1);
45 :     $d = .01*$a;
46 :     $e = .01*$b;
47 :     $f = .01*$c;
48 :     $d1 = .01*$a1;
49 :     $g = 1-$f;
50 :     $g1 = 1-$d1;
51 :    
52 :     BEGIN_TEXT
53 :     $PAR
54 :     Bad gums may mean a bad heart. Researchers discovered
55 :     that $a$PERCENT of people who have suffered a heart
56 :     attack had periodontal disease, an inflammation of
57 :     the gums. Only $b$PERCENT of healthy people have
58 :     this disease. Suppose that in a certain community
59 :     heart attacks are quite rare, occurring with only
60 :     $c$PERCENT probability.
61 :     $PAR
62 :     A. If someone has periodontal
63 :     disease, what is the probability that he or she
64 :     will have a heart attack?
65 :     $PAR
66 :     Probability = \{ans_rule(15)\}
67 :     $PAR
68 :     B. If $a1$PERCENT of the people in a community will have
69 :     a heart attack, what is the probability that a person
70 :     with periodontal disease will have a heart attack?
71 :     $PAR
72 :     Probability = \{ans_rule(15)\}
73 :    
74 :     $BR
75 :    
76 :     END_TEXT
77 :    
78 : apizer 1479 ANS(num_cmp(($d*$f)/(($d*$f)+($g*$e))) );
79 :     ANS(num_cmp(($d*$d1)/(($d*$d1)+($g1*$e))) );
80 : jjholt 451
81 :     ENDDOCUMENT(); # This should be the last executable line in the problem.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9