16.2 Two-Way Tables
OCR A-level Maths Statistics and Mechanics Year 2 · H240 · Chapter 16: Conditional Probability
What is in the full lesson (10 activities)
Every item below opens free in the course.
- Video: Two Way Tables: Introduction
- Video: Two Way Tables: example 1
- Video: Two Way Tables: example 2
- Video: Two Way Tables: example 3
- Notes: Lesson notes: Two-Way Tables
- Interactive lesson: Interactive lesson: Two-Way Table Conditional Lab
- Interactive lesson: Interactive practice: Two-Way Tables Practice
- Practice questions: Practice questions (8 questions, 17 marks)
- Worksheet: Worksheet: Two-Way Tables
- Answers: Answers and mark scheme of the Worksheet: Two-Way Tables
A free OCR A-level Maths SM Year 2 lesson for OCR A Level Mathematics A (H240) from OBA School: finding probabilities and conditional probabilities from two-way tables, and testing for independence (OCR H240: 2.03c, 2.03d). 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
- Read probabilities of single events and of combined events from a two-way table
- Find conditional probabilities from first principles by restricting to one row or column
- Build a two-way table of probabilities from given information, including conditional probabilities
- Use a two-way table to decide whether two events are independent
Key words
- Two-way table: A table that classifies each outcome by two features at once, with row and column totals.
- Marginal total: A row or column total. Divided by the grand total it gives the probability of one event.
- Joint probability: The probability of two events together, such as P(A ∩ B): one cell over the grand total.
- Conditional probability: P(A | B): restrict to the row or column for B and use its total as the denominator.
- Independent: P(A ∩ B) = P(A) × P(B) for every cell. Rows are in the same proportions.
Reading probabilities from a two-way table
A survey of 250 commuters in one town recorded their age group and their usual way of travelling to work (invented data in the style of census travel to work tables).
- Under 30; Car 28; Public transport 34; Walk or cycle 23; Total 85
- 30 to 49; Car 45; Public transport 22; Walk or cycle 13; Total 80
- 50 and over; Car 52; Public transport 21; Walk or cycle 12; Total 85
- Total; Car 125; Public transport 77; Walk or cycle 48; Total 250
Worked example: single and joint probabilities
A commuter is chosen at random. Find the probability that they (a) use public transport (b) are under 30 and walk or cycle.
(a) Use the column total: P(public) = 77/250 = 0.308
(b) Use one cell: P(under 30 ∩ walk or cycle) = 23/250 = 0.092
Answer: (a) 0.308 (b) 0.092
Conditional probability from first principles
"Given that" tells you which row or column you are in. Ignore everything else: the total of that row or column becomes the denominator.
Key fact: P(A | B) = (n(A ∩ B))/(n(B)) or, with probabilities, P(A | B) = (P(A ∩ B))/(P(B))
Worked example: which total?
Using the commuter table, find (a) P(car | 50 and over) (b) P(50 and over | car) (c) P(under 30 | not car).
(a) Restrict to the 50 and over row (85 people): 52/85 = 0.612
(b) Restrict to the car column (125 people): 52/125 = 0.416
(c) Not car: 77 + 48 = 125 people, of whom 34 + 23 = 57 are under 30: 57/125 = 0.456
Answer: (a) 0.612 (3 s.f.) (b) 0.416 (c) 0.456
Exam tip: In context, say exactly which group you are restricting to. "Of the 125 car users, 52 are 50 and over" makes your method clear to an examiner.
Tables of probabilities and independence
A two-way table can hold probabilities instead of frequencies. The four cells add up to 1, and each row and column adds up to its total. If A and B are independent, every cell is the product of its row and column totals.
Worked example: building a table and testing independence
P(A) = 0.7, P(B) = 0.24 and P(A ∩ B) = 0.168. Complete the table and test for independence.
P(A ∩ B') = 0.7 − 0.168 = 0.532, P(A' ∩ B) = 0.24 − 0.168 = 0.072
P(A' ∩ B') = 0.3 − 0.072 = 0.228
P(A) × P(B) = 0.7 × 0.24 = 0.168 = P(A ∩ B)
Answer: A and B are independent; for example P(B | A) = 0.168/0.7 = 0.24 = P(B).
- A; B 0.168; B' 0.532; Total 0.7
- A'; B 0.072; B' 0.228; Total 0.3
- Total; B 0.24; B' 0.76; Total 1
Using conditional information to fill a table
If you are given a conditional probability, turn it into a joint probability first with P(A ∩ B) = P(B) P(A | B). The table and the Venn diagram hold the same four numbers.
Worked example: from a conditional probability
P(A) = 0.5, P(B) = 0.4 and P(A | B) = 0.3. Find P(B | A) and P(B' | A').
P(A ∩ B) = 0.4 × 0.3 = 0.12
P(A ∩ B') = 0.38, P(A' ∩ B) = 0.28, P(A' ∩ B') = 1 − 0.38 − 0.12 − 0.28 = 0.22
P(B | A) = 0.12/0.5 = 0.24 and P(B' | A') = 0.22/0.5 = 0.44
Answer: P(B | A) = 0.24, P(B' | A') = 0.44
Common mistakes
- Dividing by the grand total when the question says "given that".
- Using the row total when the condition is a column (or the other way round).
- Treating P(A | B) as if it were P(A ∩ B).
- Saying events are independent because one pair of numbers looks similar: check the product rule exactly.
- Forgetting to complete the totals, then using a missing value in a calculation.
Revision questions
Try these, then check your answers below each one.
Question 1. The table shows how 200 sixth formers travel to school. <br>Year 12: walk 34, bus 48, car 18 (total 100). <br>Year 13: walk 26, bus 42, car 32 (total 100). <br>Totals: walk 60, bus 90, car 50. One student is chosen at random. Find the probability that they travel by bus.
Answer: 0.45
Working: 90/200 = 0.45.
Question 2. The table shows how 200 sixth formers travel to school. <br>Year 12: walk 34, bus 48, car 18 (total 100). <br>Year 13: walk 26, bus 42, car 32 (total 100). <br>Totals: walk 60, bus 90, car 50. A student who travels by car is chosen at random. Find the probability that they are in Year 13.
Answer: 0.64
Working: P(Y13 | car) = 32/50 = 0.64.
Question 3. The table shows how 200 sixth formers travel to school. <br>Year 12: walk 34, bus 48, car 18 (total 100). <br>Year 13: walk 26, bus 42, car 32 (total 100). <br>Totals: walk 60, bus 90, car 50. Find P(car | Year 13).
Answer: 0.32
Working: 32/100 = 0.32.
Related lessons
- Previous lesson: 16.1 Set Notation and Venn Diagrams
- Next lesson: 16.3 Tree Diagrams
- In this chapter: 16.4 Modelling with Probability
Continue in the full course
This lesson is section 16.2 of our free OCR 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.
Continue lesson 16.2 in the free course →