Conditional probability
Studying this course? Keep your progress in one place.
Key facts
- : divide by the probability of the condition (after 'given that').
- and are usually different.
- On a tree diagram the second-stage branches are conditional on the first; without replacement they change.
- To reverse a condition, take the intersection from the tree and divide by the total probability of the new condition.
- and are independent if , equivalently .
The formula
is the probability of given that has occurred. The sample space shrinks to , so you divide by .
Rearranging gives the multiplication rule .
and are usually different: the probability that a Biology student also takes Chemistry is not the probability that a Chemistry student also takes Biology.
Always identify the condition (after 'given that') and divide by its probability.
- 1
Find the condition
the event after 'given that', B
- 2
Restrict the sample space
consider only outcomes in B
- 3
Divide
P(A ∩ B) ÷ P(B)
In a class, and . What is ?
Venn diagrams and tables
A Venn diagram or two-way table turns conditional probability into counting: the denominator is the total in the condition's row or region.
Of 120 students, 70 study Biology, 50 study Chemistry, 20 study both and 20 study neither.
When only some totals are given, work out the numbers in each region first, and check that they add up to the total. A two-way table then gives each total directly.
| Chemistry | Not Chemistry | Total | |
|---|---|---|---|
| Biology | 20 | 50 | 70 |
| Not Biology | 30 | 20 | 50 |
| Total | 50 | 70 | 120 |
Chemistry
- Biology:
- 20
- Not Biology:
- 30
- Total:
- 50
Not Chemistry
- Biology:
- 50
- Not Biology:
- 20
- Total:
- 70
Total
- Biology:
- 70
- Not Biology:
- 50
- Total:
- 120
Worked example
Using the table, find and .
- 1
The condition in the first is Biology, so use the Biology row: 70 students.
- 2
Of these, 20 study Chemistry: .
- 3
The condition in the second is 'not Chemistry', so use the Not Chemistry column: 70 students.
- 4
Of these, 50 study Biology: .
Using the same table, what is ?
Tree diagrams
The probabilities on the second set of branches are conditional on the first branch. Multiply along branches, add across routes.
On a tree diagram, multiply along branches to find the probability of a combination, and add the results for different routes to the same event.
Without replacement, the second-stage probabilities change. With replacement they stay the same, and the events are independent.
- 1
First counter
Red , blue
- 2
Second after red
Red , blue
- 3
Second after blue
Red , blue
- 4
Multiply along branches
Then add the routes you want
Worked example
A bag has 5 red and 3 blue counters. Two are taken without replacement. Find the probability that they are different colours.
- 1
After a blue counter is taken, 7 counters remain, 5 red and 2 blue, so .
- 2
Red then blue: .
- 3
Blue then red: .
- 4
Add the two routes: .
Using the same bag, what is the probability that both counters are red?
Reversing the condition
Often the tree gives but you want . Find the intersection, then divide by the probability of the new condition.
Three steps: find the intersection from the tree, find the total probability of the new condition by adding all routes to it, then divide.
- 1
Intersection
multiply along the tree branch for both events
- 2
New condition
add all routes that lead to it
- 3
Divide
intersection ÷ probability of the new condition
Worked example
of students revise. The pass rates are for students who revised and for those who did not. Find and .
- 1
Revised and passed: .
- 2
Not revised and passed: .
- 3
Add the routes to a pass: .
- 4
.
- 5
and , so .
In the example, what is ?
Independence
Events are independent if knowing does not change the probability of : .
To test independence, compare with , or with .
In the Biology and Chemistry table, but , so the events are not independent.
For exactly two passes out of three independent students with pass probability : . Given at least one pass, the probability becomes .
, and . Are and independent?
Try an exam question
Machine makes of a factory's items and of them are defective. Machine makes the rest and of them are defective. An item is chosen at random and found to be defective. Find the probability that it was made by machine .
[4 marks]
- [1].
- [1].
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Given that the student studies Biology, find the probability that they also study Chemistry.
1 mark, marked against the mark scheme
Given that the student studies Biology, find the probability that they also study Chemistry.
1 mark, marked against the mark scheme