Lesson 4 of 8 · 15 min
Conditional probability
Recognise when a probability is conditional, restrict the sample space to the given event, and calculate P(A | B) from two-way tables, Venn diagrams and the formula.
What you will be able to do
- Recognise language that signals a conditional probability: given, if, of those who, among.
- Calculate by restricting the sample space to .
- Use and its rearrangement .
A Year 11 student at a Logan school is chosen at random. What is the chance they catch the bus to school? Now suppose you are told they live more than 5 km from school. Your answer should go up. New information changes probabilities, and conditional probability is how you measure the change.
| Students | More than 5 km () | 5 km or less () | Total |
|---|---|---|---|
| Catches the bus () | 54 | 26 | 80 |
| Does not catch the bus () | 18 | 102 | 120 |
| Total | 72 | 128 | 200 |
For a student chosen from all 200, .
Now you are told the student lives more than 5 km away. Only the 72 students in the column are still possible, so the sample space shrinks to them. Of those 72, 54 catch the bus:
is read "the probability of given ". Knowing raised the probability of from to .
Definition
Conditional probability
is the probability that occurs, given that has occurred. The condition becomes the new sample space.
With equally likely outcomes or counts, . In general,
Using the survey table, find the probability that a student lives more than 5 km from school, given that they catch the bus. Give your answer as a fraction.
| The question says… | Write it as |
|---|---|
| the probability a student catches the bus, given that they live more than 5 km away | |
| if a student lives more than 5 km away, the probability they catch the bus | |
| of the students who catch the bus, the proportion who live more than 5 km away | |
| among bus travellers, the percentage who live more than 5 km away | |
| the probability a student lives more than 5 km away and catches the bus | , which is not conditional |
A news report says: "65% of the people who tested positive had symptoms." Let be the event that a person has symptoms and the event that a person tests positive. Which probability is 0.65?
Given , only the circle counts, so . Given instead, . Same overlap, different condition, different answer.
Common mistake
Two ways to get conditional probability wrong
Swapping the condition. and have the same numerator, , but different denominators. In the survey, but .
Dividing by everything. The denominator is the probability (or count) of the condition, not 1 or the grand total. answers "lives far away and catches the bus", not "catches the bus given lives far away".
Worked example
Conditional probabilities from a two-way table
A Brisbane café recorded 150 orders one Saturday morning, noting whether each order included a coffee () and whether it included food ().
| Orders | Food () | No food () | Total |
|---|---|---|---|
| Coffee () | 48 | 42 | 90 |
| No coffee () | 27 | 33 | 60 |
| Total | 75 | 75 | 150 |
An order is chosen at random. Find:
(a) (b) (c)
Step 1: Restrict to the condition for (a)
Given , only the 90 coffee orders count. 48 of them include food, so .
The condition becomes the new sample space: divide by the size of the condition, not by 150.
Step 2: Restrict to the condition for (b)
Given , only the 75 food orders count. 48 of them include coffee, so .
Step 3: Restrict to the condition for (c)
Given , only the 60 orders without coffee count. 27 include food, so .
Step 4: Interpret
Orders with a coffee included food a little more often () than orders without one ().
Try it yourself first, then check the working one step at a time.
Answer
(a) (b) (c)
Method
Find the row or column of the condition.
Divide the count in the overlap by the total of that row or column.
Watch out for
Dividing by the grand total: is .
Mixing up (a) and (b): the same 48 is divided by different totals.
Multiply both sides of the definition by and you get the form the syllabus uses, the multiplication rule. It says the probability that both events happen is the probability of the first, times the probability of the second given the first. It drives every tree diagram in the next lesson.
For events and , and . Find .
Worked example
Conditional probability from given probabilities
For events and , , and . Find:
(a) (b) (c) (d)
Step 1: Use the multiplication rule
Step 2: Reverse the condition
Same intersection, but now the condition is , so divide by .
Step 3: Use the addition rule
Step 4: Find the pieces for (d)
and .
splits into the part inside and the part outside , so .
Step 5: Divide
Try it yourself first, then check the working one step at a time.
Answer
(a) 0.12 (b) 0.24 (c) 0.78 (d)
Method
: same numerator, new denominator.
For a condition like , find first.
Watch out for
Assuming .
Using : the condition changed, so the complement rule doesn't apply this way.
Exam tip
Write the statement first
Before substituting, write the probability you want in notation, for example "". It forces you to decide which event is the condition, and markers give credit for it.
Summary
is the probability of given that has occurred: becomes the sample space.
; with counts, .
"Given", "if", "of those who" and "among" signal the condition.
and are usually different.
The multiplication rule: .
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.