top of page

20.2 Two-Way Tables

AQA A-level Maths Statistics and Mechanics Year 2 · 7357 · Chapter 20: Conditional Probability

What is in the full lesson (10 activities)

Every item below opens free in the course.

A free AQA A-level Maths SM Year 2 lesson for AQA A-level Mathematics (7357) from OBA School: finding probabilities and conditional probabilities from two-way tables, and testing for independence (AQA 7357: M2). 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 sample of 250 cars registered in one year was classified by the region where each car is kept and its propulsion type (invented data of the kind found in vehicle registration records).

  • North West; Petrol 28; Diesel 34; Hybrid or electric 23; Total 85
  • London; Petrol 45; Diesel 22; Hybrid or electric 13; Total 80
  • South West; Petrol 52; Diesel 21; Hybrid or electric 12; Total 85
  • Total; Petrol 125; Diesel 77; Hybrid or electric 48; Total 250

Worked example: single and joint probabilities

A car is chosen at random. Find the probability that it is (a) diesel (b) kept in the North West and hybrid or electric.
(a) Use the column total: P(diesel) = 77/250 = 0.308
(b) Use one cell: P(North West ∩ hybrid or electric) = 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 car table, find (a) P(petrol | South West) (b) P(South West | petrol) (c) P(North West | not petrol).
(a) Restrict to the South West row (85 cars): 52/85 = 0.612
(b) Restrict to the petrol column (125 cars): 52/125 = 0.416
(c) Not petrol: 77 + 48 = 125 cars, 34 + 23 = 57 in the North West: 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 petrol cars, 52 are kept in the South West" 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

Continue in the full course

This lesson is section 20.2 of our free AQA 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 20.2 in the free course →

 

 

 

 

 

 

 

bottom of page