2.2 Conditional Probability
A-level Maths Statistics and Mechanics Year 2 · Edexcel 9MA0 · Chapter 2: Conditional Probability
A free A-level Maths Stats and Mechanics Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: finding the probability of one event given that another has happened. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Understand and use the notation P(B | A), "the probability of B given A"
- Find conditional probabilities by restricting the sample space
- Find conditional probabilities from two-way tables
- Use conditional probability to decide whether two events are independent
- Find conditional probabilities when items are chosen without replacement
Key words
- Conditional probability: P(B | A): the probability that B happens, given that A has happened.
- Given that: We already know this event has happened, so only the outcomes in it are possible.
- Restricted sample space: The outcomes that are still possible once we know A has happened.
- Two-way table: A table of frequencies for two ways of classifying the same items, with row and column totals.
- Without replacement: An item chosen is not put back, so later probabilities change.
What "given that" means
If you know that A has happened, the only possible outcomes are the ones in A. The sample space shrinks to A. Then P(B | A) is the fraction of those outcomes that are also in B.
Key fact: For equally likely outcomes, P(B | A) = (n(A ∩ B))/(n(A)) where n() is the number of outcomes.
Worked example: one dice
A fair dice is rolled. Find the probability that the score is greater than 3, given that it is even.
Given even: the possible outcomes are 2, 4, 6. Of these, 4 and 6 are greater than 3.
Answer: P(greater than 3 | even) = 2/3, compared with 3/6 = 1/2 without the extra information
Worked example: two dice
Two fair dice are rolled. Find the probability that the total is 8, given that at least one dice shows a 5.
Outcomes with at least one 5: there are 11 (the teal cells).
Of these, a total of 8 needs (3, 5) or (5, 3): 2 cells (pink).
Answer: P(total 8 | at least one 5) = 2/11
Two-way tables
In a two-way table, "given that" tells you which row or column to use. The denominator is that row or column total, not the grand total.
- Year 12; Bus 22; Car 18; Walk 20; Total 60
- Year 13; Bus 16; Car 26; Walk 18; Total 60
- Total; Bus 38; Car 44; Walk 38; Total 120
Worked example: travel to college
The table shows how 120 sixth-form students travel to college. A student is chosen at random.
(a) P(walks | Year 13): use the Year 13 row. 18/60 = 3/10
(b) P(Year 13 | walks): use the Walk column. 18/38 = 9/19
Answer: (a) 0.3 (b) 9/19 = 0.474 (3 s.f.)
Exam tip: In general P(A | B) ≠ P(B | A). The numerators are the same, but the denominators are different.
Conditional probability and independence
Dividing the top and bottom of (n(A ∩ B))/(n(A)) by the total number of outcomes gives the formula you will use in section 2.4. If knowing A does not change the probability of B, the events are independent.
Key fact: P(B | A) = (P(A ∩ B))/(P(A)). A and B are independent if P(B | A) = P(B).
- Rain; Wind force 4 or more 21; Wind force 3 or less 17; Total 38
- No rain (0 or tr); Wind force 4 or more 14; Wind force 3 or less 40; Total 54
- Total; Wind force 4 or more 35; Wind force 3 or less 57; Total 92
Worked example: weather data
A student sorts 92 days of weather data from one UK station by rain and by wind force on the Beaufort scale. Days with only a trace (tr) of rain count as "no rain". Call a day "windy" if the wind was force 4 or more. A day is chosen at random.
P(rain | windy) = 21/35 = 0.6
P(rain) = 38/92 = 0.413 (3 s.f.)
0.6 ≠ 0.413: knowing it was windy changes the probability of rain.
Answer: Rain and wind force 4 or more are not independent for these days.
Choosing without replacement
When items are taken one after another and not replaced, the second probability depends on what happened first. This is conditional probability: the bag has changed.
Worked example: counters
A bag has 5 red and 3 blue counters. Two are taken at random without replacement.
(a) Given the first is red, 7 counters are left and 4 are red: P(2nd red | 1st red) = 4/7
(b) P(both red) = P(1st red) × P(2nd red | 1st red) = 5/8 × 4/7
Answer: (a) 4/7 (b) 20/56 = 5/14
Key fact: With replacement, the second draw is independent of the first. Without replacement it is not.
Common mistakes
- Dividing by the grand total instead of the total of the "given" row or column.
- Assuming P(A | B) = P(B | A).
- Confusing P(A | B) with P(A ∩ B): "given that" changes the denominator, "and" does not.
- Forgetting that the numbers in the bag change when items are not replaced.
- Concluding that events are independent from one pair of probabilities that are only roughly equal: they must be exactly equal for the data.
Revision questions
Try these, then check your answers below each one.
Question 1. A fair dice is rolled. Find the probability that the score is greater than 2, given that it is odd.
Answer: 2/3
Working: Of 1, 3, 5, the scores 3 and 5 are greater than 2: 2/3.
Question 2. Which formula gives P(A | B)? (Choose from: (P(A ∩ B))/(P(B)); (P(A ∩ B))/(P(A)); P(A) × P(B); P(A ∩ B) × P(B).)
Answer: (P(A ∩ B))/(P(B))
Working: P(A | B) = (P(A ∩ B))/(P(B)). Dividing by P(A) gives P(B | A) instead.
Question 3. Amira says that P(A | B) is always equal to P(B | A). Is Amira correct?
Answer: No
Working: No. Both have numerator P(A ∩ B), but one divides by P(B) and the other by P(A). They are equal only if P(A) = P(B).
Related lessons
- Previous lesson: 2.1 Set Notation
- Next lesson: 2.3 Conditional Probabilities in Venn Diagrams
- In this chapter: 2.4 Probability Formulae
- In this chapter: 2.5 Tree Diagrams
Continue in the full course
This lesson is section 2.2 of our free A-level Maths Statistics and Mechanics Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Statistics and Mechanics Year 2 course.