Resources For Teachers For Tutors For Students & Parents Pricing
Algebra Data and statistics

Two-way tables

17 practice questions 2 video lessons Theory + worked examples
Practice 17 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Introduction video Watch
  • Using Two Way Tables with Probability | ExamSolutions Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A two-way frequency table shows counts for two categories with row and column totals:

  • Joint: a cell over the grand total.
  • Marginal: a row/column total over the grand total.
  • Conditional: a cell over its row or column total.
The margins (totals) give the marginal frequencies.
Two-way frequency table A two-way table shows counts by two categories with row and column totals. Yes No Total Boys 12 8 20 Girls 15 5 20 Total 27 13 40
A two-way table with totals.
Reading a two-way table Reading a two-way table Reading a two-way table joint: a cell / grand total marginal: a total / grand total conditional: a cell / its row or column total
Reading the table.

From the counts:

\[P(\text{joint})=\dfrac{\text{cell}}{\text{grand total}},\quad P(\text{cond.})=\dfrac{\text{cell}}{\text{row/col total}}\]
joint is a cell over the grand total; conditional is a cell over its row or column total
Divide by the correct total for each type.

How to read a two-way table

  1. Find the relevant cell or total.
  2. Joint/marginal: divide by the grand total.
  3. Conditional: divide by the row or column total.
  4. Check the totals add up.
Example 1 β€” Joint frequency
From the table (\(40\) students), find \(P(\text{boy and yes})\).
Solution

Cell over grand total.

\(\dfrac{12}{40}\)\(=\)\(0.30\)
0.30
Example 2 β€” Marginal
Find \(P(\text{yes})\).
Solution

Column total over grand total.

\(\dfrac{27}{40}\)\(=\)\(0.675\)
0.675
Example 3 β€” Conditional
Find \(P(\text{yes}\mid\text{girl})\).
Solution

Condition on the \(20\) girls.

\(\dfrac{15}{20}\)\(=\)\(0.75\)
0.75
Example 4 β€” Totals check
Why must the row and column totals match?
Solution

They both add to the same grand total \(40\).

they add to the same grand total

Common pitfalls

Joint uses the grand total; conditional uses a row/column total.
Condition on the correct margin.
Totals must add up to the grand total.

Frequently asked questions

What is a two-way table?

A table of counts by two categories with totals.

What is a joint frequency?

A single cell count, over the grand total for probability.

What is a marginal frequency?

A row or column total.

What is a conditional frequency?

A cell over its row or column total.