Conditional probability: reading a two-way table
Ages 14–16GCSE (P9)
What you will learn
In Classes A and B, pupils were asked whether they have a pet. A two-way table sorts the answers. You learn to read probabilities from it, including ones with a condition such as ‘only in Class A’.
Think first: which number do you divide by if only Class A counts? Then check: choose ‘Class A only’.
The question is about all the pupils asked. With a pet: 18 of 40. The probability of a pet is 18/40, as a decimal 0.45.
The two-way table
With ‘Class A only’ you divide by instead of : the class is now the whole.
A two-way table sorts a group by two features, here with two possibilities each: class and pet. Each of the four inner cells counts one combination, for example Class A with a pet. The totals are at the edges, and the overall total is at the bottom right.
| A | B | Total | |
|---|---|---|---|
| Pet | 12 | 6 | 18 |
| No pet | 8 | 14 | 22 |
| Total | 20 | 20 | 40 |
If you ask about Class A only, you read a single column: out of instead of out of .
Self-check
You pick one pupil at random from all who were asked. What is the probability that this pupil has no pet? Give it as a decimal.
Show the solution
. Of the pupils asked, have no pet: in Class A and in Class B.
Example 1
Read off from the two-way table of the survey: you pick one pupil at random from Class B. What is the probability that this pupil has no pet?
- 01
Class B only: now column B alone counts. Read off its total.
- 02
Read off the ‘No pet’ cell in the same column.
- 03
Divide the cell by the total of the column.
- 04
Simplify by dividing the numerator and the denominator by , and write the fraction as a decimal.
In Class B the probability is . Check: in Class B out of have no pet, clearly more than half. That fits .
The condition
‘Only in Class A’ is a condition. It narrows the whole down: only the pupils who meet it still count. A probability under a condition is called a conditional probability. To find it, you stay in a single row or column of the table and divide the cell by the total of that row or column.
The condition ‘Class A’ leaves only half the survey: instead of out of , only out of still count.
Example 2
You meet a pupil from the survey and know only one thing: they have a pet. What is the probability that they are in Class A?
- 01
The condition is ‘has a pet’. The whole is now the ‘Pet’ row: read off its total.
- 02
Read off the cell of Class A in the same row.
- 03
Divide the cell by the total of the row.
- 04
Simplify by dividing the numerator and the denominator by , and write the fraction as a decimal, rounded to two decimal places.
The probability is , so about . Check: of the with a pet, are in Class A and in Class B, so twice as many. That fits .
Self-check
Of the pupils without a pet, are in Class B. All you know about a pupil is that they have no pet. What is the probability that they are in Class B?
Show the solution
, simplified : the whole is the without a pet. answers the question the other way round, ‘no pet, given Class B’. divides by all the pupils asked, as if there were no condition.
Self-check
Class B has pupils, and of them have a pet. You pick one pupil at random from Class B. What is the probability that this pupil has a pet? Give it as a decimal.
Show the solution
. In Class B a pet is rarer than among all the pupils asked, where the probability is .
For teachers: a lesson plan (45 min)
- 5 min
Starter
Open the simulation with ‘Full screen’ and leave it at ‘Everyone’. Ask first: does the probability of a pet get larger or smaller if only Class A counts? The class gives reasons from the numbers in the table. Only then does someone choose ‘Class A only’.
- 10 min
Reading the table
The figure with the two-way table: where are the totals, and what does each of the four inner cells mean? Then the first self-check, and reveal Example 1 step by step together.
- 10 min
The condition
The figure with the two bars: what is the whole for the lower bar, and where does it lie in the upper one? Let pupils try Example 2 on their own first, then reveal it. After that, discuss the ‘Watch out’ box.
- 15 min
Practice
The second and the third self-check, alone or in pairs. Anyone who finishes early uses the four sliders of the simulation to set a survey in which a pet is exactly as likely in Class A as among all the pupils asked, although the two classes differ in size.
- 5 min
Plenary
Read the ‘Remember’ box together. Ask: why are ‘pet, given Class A’ and ‘Class A, given pet’ not equally likely?
What you need first
Got an exercise on paper?
Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.