Conditional probability
Conditional probability is the probability of an event when you already know that something else has happened. Knowing the condition shrinks the set of possible outcomes. So the probability can change.
Key facts
- P(A | B) means “the probability of A given B”.
- P(A | B) = P(A ∩ B) ÷ P(B).
- P(A ∩ B) = P(A) × P(B | A).
- From a two-way table or Venn diagram, only use the row, column or circle you are given.
- A and B are independent exactly when P(A | B) = P(A).
- Bayes: P(A | B) = P(B | A) × P(A) ÷ P(B). Here P(B) = P(B | A) × P(A) + P(B | A′) × P(A′).
- P(A | B) is usually not the same as P(B | A).
Worked examples
Example 1
The table shows how some pupils get lunch. A pupil is chosen from the older pupils. Find the probability they have a packed lunch.
- Count the older pupils. 24 + 26 = 50
- Of those, 26 have a packed lunch. 26/50 = 13/25
Answer: 13/25
Example 2
P(A ∩ B) = 0.12, P(B) = 0.4 and P(A) = 0.3. Find P(A | B). Are A and B independent?
- Use the formula. P(A | B) = 0.12 ÷ 0.4 = 0.3
- This equals P(A). Knowing B does not change the chance of A, so A and B are independent.
Answer: P(A | B) = 0.3; yes, independent
Example 3
1% of people have a condition. A test detects it 95% of the time, but gives a false positive for 5% of healthy people. Someone tests positive. Find the probability they have the condition.
- Has the condition and tests positive: 0.01 × 0.95 = 0.0095
- Add the false positives to get all positives. P(+) = 0.0095 + 0.99 × 0.05 = 0.059
- Divide to get P(has it | +). 0.0095 ÷ 0.059 = 0.161
Answer: About 0.161
Example 4
A class has 12 girls and 5 of them wear glasses. A girl is chosen at random. Find the probability that she wears glasses.
- We already know the student is a girl, so only count the girls. 12
- 5 of the 12 girls wear glasses. 5/12
Answer: 5/12
Example 5
P(A ∩ B) = 0.1 and P(B) = 0.4. Find P(A | B).
- P(A | B) = P(A ∩ B) ÷ P(B)
- Substitute. 0.1 ÷ 0.4 = 0.25
Answer: 0.25
Example 6
P(rain) = 0.3. If it rains, the probability that the bus is late is 0.6. Find P(rain and late).
- P(A and B) = P(A) × P(B | A)
- Substitute. 0.3 × 0.6 = 0.18
Answer: 0.18