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:
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. Restrict the deck. Draw a card uniformly from a standard 52-card deck. Find the probability it is red given that it is a face card, and the probability it is a face card given that it is red. Face cards are jacks, queens, and kings. Explain the different denominators.
H2. Use the formula. , , and . Find and .
H3. A two-way table. A survey gives these club memberships:
| In club | Not in club | Total | |
|---|---|---|---|
| Grade 11 | 24 | 36 | 60 |
| Grade 12 | 42 | 18 | 60 |
| Total | 66 | 54 | 120 |
Find , , , and . Is club membership independent of being in Grade 12?
H4. Condition on a sum. Roll a fair red die and a fair blue die independently. Given that the sum is at least 10, find the probability that at least one die is 6 and the probability that the red die is 6. List the restricted sample space.
H5. Reverse the order. A bag holds four green and six yellow marbles. Draw twice without replacement. Find and . For the second answer, first compute the joint probability and the marginal probability of a second green.
H6. Delivery routes. A parcel uses route A with probability 0.7 and route B with probability 0.3. The late probabilities are 0.04 on A and 0.12 on B. Find the probability of a late parcel and the probability it used B given that it was late.
Challenge
Section titled “Challenge”H7. A barcode reader. In a batch of books, 4% have damaged barcodes. The scanner fails to read 80% of damaged barcodes and 2% of intact ones. A randomly selected book’s barcode cannot be read. Find the probability its barcode is damaged. Explain why 80% is not the requested answer.
H8. Information about three flips. Flip a fair coin three times independently.
- (a) Given at least two heads, find the probability of three heads and of heads on the first flip.
- (b) Given heads on the first flip, find the probability of three heads.
- (c) Explain why the denominators in (a) and (b) both happen to be four without the conditioning events being identical.
H9. An unknown table entry. Of 100 students, 40 are in Grade 11 and 60 in Grade 12. Exactly 18 Grade 12 students play chess. Let be the number of Grade 11 students who play chess. Find if chess membership is independent of being in Grade 11. Complete the table and verify independence using a conditional probability.
H10. Which bag was chosen? Flip a fair coin to choose between bag A (four red, two blue marbles) and bag B (two red, four blue). Draw two marbles without replacement from the chosen bag.
- (a) Find the probability both are red.
- (b) Given both are red, find the probability bag A was selected.
- (c) Given the first marble is red, find the probability bag A was selected. Explain why seeing a second red changes this probability.