Conditional Probability
Knowing that something has happened can change the probability of something else. If you know a card is a face card, the chance it’s a king jumps from to . This updated probability is a conditional probability, and it’s behind everything from medical tests to weather forecasts.
Key ideas
Section titled “Key ideas”Notation and formula
Section titled “Notation and formula”is read “the probability of given ”: the probability of , knowing that has happened.
Knowing happened shrinks the sample space to just the outcomes in . You then ask what fraction of those are also in .
Rearranging gives the multiplication rule from dependent events: .
From a two-way table
Section titled “From a two-way table”A two-way table (contingency table) sorts data by two categories. For , look only at the row or column for , and find the fraction that is also .
Order matters
Section titled “Order matters”and are usually different. The probability that a student drives, given that they’re in Grade 12, is not the same as the probability that a student is in Grade 12, given that they drive.
Independence
Section titled “Independence”and are independent exactly when knowing doesn’t change the probability of :
On the SAT
Section titled “On the SAT”Desmos can’t set this up for you. On the SAT, conditional probability almost always comes from a two-way table, and the words “given that” or “of those who” tell you to restrict to one row or column: that row or column total becomes the denominator. Check the order too, since the probability of A given B is usually not the same as the probability of B given A. A fill-in answer can be entered as a fraction. See using Desmos on the SAT.
Worked examples
Section titled “Worked examples”Example 1: Shrinking the sample space
Section titled “Example 1: Shrinking the sample space”A die is rolled. Given that the result is even, find the probability that it’s a .
Solution. Knowing it’s even, the sample space is . One of the three is a :
Example 2: A two-way table
Section titled “Example 2: A two-way table”A survey of students:
| Drives | Doesn’t drive | Total | |
|---|---|---|---|
| Grade 11 | |||
| Grade 12 | |||
| Total |
Find and .
Solution. Given Grade 12, look only at that row: of the drive.
Given that a student drives, look only at that column: of the drivers are in Grade 12.
Example 3: Using the formula
Section titled “Example 3: Using the formula”and . Find .
Solution.
Example 4: A medical test
Section titled “Example 4: A medical test”A condition affects of people. A test correctly gives a positive result for of people with the condition, but it also gives a (false) positive for of people without it. If someone tests positive, what’s the probability they have the condition?
Solution. Use a tree: first branch on the condition, then on the test.
- Has the condition and tests positive:
- Doesn’t have it and tests positive:
So , and:
Only about ! Because the condition is rare, most positive results come from the much larger group of healthy people. This is why doctors confirm positive results with a second test.
Common mistakes
Section titled “Common mistakes”Swapping the order. divides by the Grade 12 total; divides by the drivers total. Ask: “what do I already know?” That’s the group you divide by.
Dividing by the overall total. In a two-way table, a conditional probability uses a row or column total, not the grand total.
Confusing with . “And” is out of everyone; “given” is out of only the group where happened.
Trusting intuition with rare events. As Example 4 shows, a positive result for a rare condition can still be more likely a false alarm. Work it out.
Practice
Section titled “Practice”1. (Warm-up) A card is drawn from a standard deck. Given that it’s a face card, what’s the probability it’s a king?
Solution
There are face cards, of them kings: .
2. (Warm-up) and . Find .
Solution
3. (Warm-up) Two coins are flipped. Given that at least one is heads, find the probability that both are heads.
Solution
Knowing at least one is heads leaves HH, HT, TH. One of these three is HH: .
4. (Core) A survey of households:
| Has a pet | No pet | Total | |
|---|---|---|---|
| Children at home | |||
| No children | |||
| Total |
Find , , and .
Solution
.
.
.
5. (Core) Two dice are rolled. Find and .
Solution
Given the first die is , the sum is only if the second is : .
Given the sum is , the pairs are , and one starts with : .
6. (Core) Using the table in Question 4, is having a pet independent of having children at home? Explain.
Solution
No. , but . Knowing there are children changes the probability of having a pet, so the events are dependent.
7. (Core) A bag has red and blue marbles. Two are drawn without replacement. Find and .
Solution
After a red is removed, of are red: .
, and , so:
8. (Challenge) A condition affects of people. A test detects it of the time, and gives false positives of the time. If someone tests positive, find the probability they have the condition.
Solution
Only about .
9. (Challenge) Show that if and are independent, then .
Solution
For independent events, . So: