Probability of events given that another event has occurred
Reserve & Extensions • K-12
Sometimes the probability of an event changes when you learn new information. The chance of rain tomorrow might be 30% overall, but if you know a storm front is approaching, it might jump to 80%. Conditional probability formalizes this idea: what is the probability of event A, given that event B has already occurred?
Read P(A | B) as "the probability of A given B." The vertical bar means "given that."
| Symbol | Meaning |
|---|---|
| P(A | B) | Probability of A occurring, given B has occurred |
| P(A and B) | Probability that both A and B occur |
| P(B) | Probability of B occurring |
A standard deck of 52 cards. You draw one card. Given that it is red, what is the probability it is a heart?
Given that a card is red, there is a 50% chance it is a heart. This makes sense -- half of red cards are hearts.
Two-way tables are an excellent tool for organizing data and computing conditional probabilities.
A survey of 200 students asked about pet preferences:
| Prefers Dogs | Prefers Cats | Total | |
|---|---|---|---|
| Boys | 60 | 30 | 90 |
| Girls | 50 | 60 | 110 |
| Total | 110 | 90 | 200 |
Find: P(prefers dogs | girl)
Two events are independent if knowing one occurred does not change the probability of the other:
If P(A | B) differs from P(A), the events are dependent.
Using the pet survey above, is pet preference independent of gender?
A tree diagram visually maps out sequences of events and their probabilities. Each branch represents a possible outcome, and you multiply along branches to find the probability of a path.
A bag has 3 red and 2 blue marbles. You draw two without replacement. Find P(2nd is red | 1st was blue).
For the full tree: P(1st blue) = 2/5. Then P(2nd red | 1st blue) = 3/4. So P(blue then red) = (2/5)(3/4) = 6/20 = 3/10.
P(A | B) and P(B | A) are generally NOT the same. P(rain | cloudy) is not the same as P(cloudy | rain). Most cloudy days do not produce rain, but most rainy days are cloudy. Always check which event is the "given."
A useful way to think about conditional probability: the "given" condition reduces your sample space. Instead of looking at all outcomes, you only look at those where B happened, then ask how many of those also have A.
1. A die is rolled. Given that the result is even, what is the probability it is a 6?
Even outcomes: {2, 4, 6}. Of these, one is a 6. P(6 | even) = 1/3.
2. In a class of 30 students, 18 play sports and 12 do not. Of those who play sports, 10 have a GPA above 3.5. Of those who do not play sports, 8 have a GPA above 3.5. Find P(GPA > 3.5 | plays sports).
Of the 18 who play sports, 10 have GPA > 3.5. P = 10/18 = 5/9 ≈ 0.556.
3. P(A and B) = 0.12, P(B) = 0.40. Find P(A | B).
P(A | B) = 0.12 / 0.40 = 0.30 or 30%.
4. Are these events independent? P(A) = 0.5, P(B) = 0.3, P(A and B) = 0.15.
If independent, P(A and B) should equal P(A) × P(B) = 0.5 × 0.3 = 0.15. It does! The events are independent.
5. A box has 4 green and 6 yellow balls. Two are drawn without replacement. Find the probability both are green.
P(1st green) = 4/10. P(2nd green | 1st green) = 3/9 = 1/3. P(both green) = (4/10)(1/3) = 4/30 = 2/15.