[npl] / trunk / NationalProblemLibrary / ASU-topics / setProbability / cond9.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

View of /trunk/NationalProblemLibrary/ASU-topics/setProbability/cond9.pg

Tue Aug 24 14:40:25 2010 UTC (2 years, 9 months ago) by apizer
File size: 934 byte(s)
`Results of running convert_fun_in_dir.sh to clean up problems`

```    1 ## DESCRIPTION
2 ## Probability
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('probability, 'conditional')
6 ## Tagged by cmd6a 7/18/07
7
8 ## DBsubject('Probability')
9 ## DBchapter('Discrete Probability')
10 ## DBsection('Conditional Probability')
11 ## Date('')
12 ## Author('')
13 ## Institution('')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT();        # This should be the first executable line in the problem.
21
23 "PG.pl",
24 "PGbasicmacros.pl",
25 "PGchoicemacros.pl",
27 "PGgraphmacros.pl",
28 "PGauxiliaryFunctions.pl"
29 );
30
31 TEXT(beginproblem());
33
34 \$b = random(0.2,0.5,0.1);
35 \$c = random(0.6,0.9,0.1);
36 \$d = \$b*\$c;
37
38 BEGIN_TEXT
39 \$BR
40 If \( P(A \cap B) = \$d \),   and \( P(A|B) = \$b \),  then \$BR
41  \$SPACE  \( P(B) = \)\{ans_rule(10)\}
42
43 END_TEXT
44
45 ANS(num_cmp(\$c, mode=>"arith"));
46
47
48
49 ENDDOCUMENT();       # This should be the last executable line in the problem.
50
```