C. Content · Foundations of Mathematics 12 ContentConditional Probability and Binomial Probability
BC FOM 12: odds, probability BC FOM 12: binomial probabilityAbout 75 minutes
Learning goals- I can find conditional probabilities from tables, tree diagrams and the formula P(B | A) = P(A and B) ÷ P(A).
- I can decide whether two events are independent.
- I can explain why a medical or screening test that is "98% accurate" may still give many false positives.
- I can use the binomial probability formula for repeated independent trials.
Words to know
conditional probability
The probability of B given that A has happened, written P(B | A).
independent events
Events where one happening does not change the probability of the other: P(A and B) = P(A) × P(B).
dependent events
Events where one happening changes the probability of the other.
binomial experiment
A fixed number of independent trials, each with two outcomes (success or failure) and the same probability of success.
false positive
A test result that says a condition is present when it is not.
Given that...
A conditional probability restricts the sample space to the cases where something is already known.
P(B | A) = P(A and B) ÷ P(A), read "the probability of B given A".
Equivalently, P(A and B) = P(A) × P(B | A). If knowing A does not change the chance of B, the events are independent and P(A and B) = P(A) × P(B). Drawing cards without replacement makes events dependent: the second draw depends on the first.
| Has a driver's licence | No licence | Total |
|---|
| Has a part-time job | 48 | 22 | 70 |
| No job | 52 | 78 | 130 |
| Total | 100 | 100 | 200 |
A made-up survey of 200 Grade 12 students.Worked exampleExample 1: Conditional probability from a table
Use the survey. Find P(licence | job) and P(job | licence). Are "has a job" and "has a licence" independent?
- P(licence | job): only look at the 70 with jobs. 48 of them have a licence: 48/70 ≈ 0.686.
- P(job | licence): only look at the 100 with licences. 48 have jobs: 48/100 = 0.48.
- Independence test: P(job) × P(licence) = 0.35 × 0.5 = 0.175, but P(job and licence) = 48/200 = 0.24.
- Since 0.175 ≠ 0.24, the events are not independent.
P(licence | job) ≈ 0.686, P(job | licence) = 0.48; the events are dependent. (Note that P(B | A) and P(A | B) are usually different.)
How reliable is a test that is 98% accurate?
Suppose 1% of a population has a condition. A screening test correctly detects it 98% of the time, and correctly gives a negative result 98% of the time for people who do not have it (so 2% of them get a false positive). If someone tests positive, what is the chance they have the condition? A tree diagram answers it.
Tree diagram for a test with 98% accuracy when 1% of people have the condition. The products at the right are the probabilities of each path.Worked exampleExample 2: A positive test result
Using the tree, find P(has the condition | positive).
- P(has it and +) = 0.01 × 0.98 = 0.0098.
- P(does not and +) = 0.99 × 0.02 = 0.0198.
- P(+) = 0.0098 + 0.0198 = 0.0296.
- P(has it | +) = 0.0098 ÷ 0.0296 ≈ 0.331.
Only about 33%. Because the condition is rare, most positive results come from the large group without it. This is why a positive screening test is usually followed by a second, different test. Accuracy (how often the test is right) and reliability of a single positive result are not the same thing.
Binomial probability
A binomial experiment has a fixed number n of independent trials, each with the same probability p of success. The probability of exactly k successes is
P(k) = nCk × p^k × (1 - p)^(n - k)
nCk counts the ways to place the k successes among the n trials (from the combinatorics lessons). The expected number of successes is n × p.
| Successes k | 0 | 1 | 2 | 3 | 4 | 5 |
|---|
| P(k), n = 5, p = 0.7 | 0.002 43 | 0.028 35 | 0.132 30 | 0.308 70 | 0.360 15 | 0.168 07 |
Binomial distribution for 5 free throws by a player who makes 70%. The probabilities add to 1, and the expected number is 5 × 0.7 = 3.5.Worked exampleExample 3: Free throws
A basketball player makes 70% of free throws, and the shots are independent. In 5 shots, find P(exactly 3) and P(at least 4).
- Exactly 3: 5C3 × 0.7³ × 0.3² = 10 × 0.343 × 0.09 = 0.3087.
- Exactly 4: 5C4 × 0.7⁴ × 0.3 = 5 × 0.2401 × 0.3 = 0.360 15.
- Exactly 5: 0.7⁵ = 0.168 07.
- At least 4: 0.360 15 + 0.168 07 = 0.528 22.
P(exactly 3) ≈ 0.309; P(at least 4) ≈ 0.528.
Check the four conditions
Before using the binomial formula, check: a fixed number of trials, two outcomes, the same p every time, and independent trials. Drawing without replacement from a small group breaks the "same p" condition.
Hands-on activityGuessing on a test
A 10-question multiple-choice quiz has 4 choices per question. Use the binomial formula (or a calculator's binompdf feature) to make a table of P(k correct) for k = 0 to 10 if a student guesses every answer. What is the most likely score? What is the chance of passing (5 or more correct)? Then simulate it: roll a 4-sided die (or use a random number generator) for 10 questions, 20 times, and compare.
Just for funThe bad reasoning in Example 2 is common enough to have a name: the base rate fallacy. Studies have found that many people, including some professionals, guess that a positive result on a 98% accurate test means a 98% chance of having the condition.
Your turn
1A bag has 5 red and 3 blue marbles. Two are drawn without replacement. Find P(both red).
5/8 × 4/7 = 20/56 = 5/14 ≈ 0.357
2Find P(both red) if the first marble is put back before the second draw.
5/8 × 5/8 = 25/64 ≈ 0.391
3P(A) = 0.5, P(B) = 0.4 and P(A and B) = 0.2. Are A and B independent?
0.5 × 0.4 = 0.2 = P(A and B), so yes.
4P(A) = 0.6 and P(A and B) = 0.15. Find P(B | A).
5A fair coin is flipped 6 times. Find P(exactly 3 heads).
6C3 × 0.5⁶ = 20/64 = 0.3125
6A student guesses all 10 questions on a 4-choice quiz. Find P(exactly 5 correct).
10C5 × 0.25⁵ × 0.75⁵ = 252 × 0.000 977 × 0.2373 ≈ 0.058
More practice
190% of a type of seed sprout. Eight are planted. Find P(all 8 sprout).
2Find P(at least 7 of 8 sprout).
8 × 0.9⁷ × 0.1 + 0.9⁸ ≈ 0.3826 + 0.4305 ≈ 0.813
3How many of the 8 seeds would you expect to sprout?
4A condition affects 5% of a group. A test detects it 90% of the time and gives a false positive 10% of the time. Find P(condition | positive).
P(+) = 0.05 × 0.9 + 0.95 × 0.1 = 0.045 + 0.095 = 0.14; 0.045 ÷ 0.14 ≈ 0.321
5Explain why drawing 2 cards without replacement is not a binomial experiment for "number of hearts".
The probability of a heart changes after the first card is removed, so p is not constant and the trials are not independent.
Check your understandingQuiz
1. P(A) = 0.4 and P(A and B) = 0.1. What is P(B | A)?
2. Which is NOT a condition of a binomial experiment?
3. A coin is flipped 4 times. What is P(exactly 2 heads)?
4. A rare condition and a 98% accurate test: why can P(condition | positive) be low?
For parents and teachersHow to help: The screening-test example is worth talking about at home: it shows why doctors order a second test and why "98% accurate" needs a closer look. Sports statistics, such as free-throw or save percentages, make good binomial examples.
Common mistakes:
- Mixing up P(A | B) and P(B | A).
- Multiplying probabilities of dependent events as if they were independent.
- Forgetting the nCk factor in the binomial formula.
- Finding "at least" by computing only one case.