πŸ“Š Two-Way Tables

Cambridge Lower Secondary Β· Grade 7 Β· Statistics & Probability

Reading a Cell
Find the row β†’ find the column β†’ read the value!
Each cell counts BOTH conditions at once
Row/Column Totals
Row total = sum of all cells in that row
Grand total = sum of all row totals = sum of all column totals
Probability from a Table
P(event) = cell value/grand total
Always use the grand total for simple probability

A class was asked: Do you play sport? Do you own a pet? 🐢⚽

Owns a PetNo PetTotal
Plays Sport???
No Sport???
Total???

What you'll learn:

  • Reading values from two-way tables (rows, columns, totals)
  • Completing missing values using row & column totals
  • Calculating simple probabilities from a two-way table
  • Relative frequency and proportions from tables
  • Drawing your own two-way table from raw data
  • Using tables to compare two groups
  • Interpreting findings and drawing conclusions

πŸ“– Learn: Two-Way Tables

Part 1: What Is a Two-Way Table?

A two-way table (also called a contingency table) organises data according to two categories at once β€” one along the rows and one along the columns.

Column Category AColumn Category BRow Total
Row Category 1A & 1B & 1Row 1 Total
Row Category 2A & 2B & 2Row 2 Total
Column TotalCol A TotalCol B TotalGrand Total
πŸ“Œ Each cell in the middle counts items that satisfy both the row AND column condition.
πŸ“Œ The row total = sum of all cells in that row.
πŸ“Œ The column total = sum of all cells in that column.
πŸ“Œ The grand total = sum of all row totals = sum of all column totals.
πŸ’‘ Always check: grand total at the corner should equal both the row totals added up AND the column totals added up!

Part 2: Reading Values From a Table

80 students were asked if they prefer maths or English and whether they are in Year 7 or Year 8.

Prefer MathsPrefer EnglishTotal
Year 7182240
Year 8241640
Total423880
How many Year 7 students prefer Maths? β†’ Find Year 7 row, Prefer Maths column β†’ 18
How many students prefer English in total? β†’ Column total for Prefer English β†’ 38
How many Year 8 students are there? β†’ Row total for Year 8 β†’ 40
πŸ’‘ Think: Row = the "who", Column = the "what". Move across the row to the right column, then read.

Part 3: Completing Missing Values

If some cells are missing, use the fact that rows and columns must add up to their totals.

Left-HandedRight-HandedTotal
Male?2730
Female4?25
Total7?55
Step 1: Male, Left-Handed = Row total βˆ’ Right-Handed = 30 βˆ’ 27 = 3
Step 2: Female, Right-Handed = Row total βˆ’ Left-Handed = 25 βˆ’ 4 = 21
Step 3: Right-Handed column total = 27 + 21 = 48 βœ“ (Check: 7 + 48 = 55 βœ“)
πŸ’‘ Strategy: fill in any cell where you know all but one value in its row or column. Work outward!

Part 4: Probability From a Two-Way Table

Use the table to find probabilities. The grand total is the denominator for simple (unconditional) probability.

Likes FootballDoes Not Like FootballTotal
Girl121830
Boy201030
Total322860
P(randomly selected student is a girl who likes football) = 12/60 = 1/5
P(student likes football) = 32/60 = 8/15
P(student is a boy) = 30/60 = 1/2
πŸ’‘ Always write the probability as a fraction: P(event) = specific cell Γ· grand total

Part 5: Relative Frequency & Comparing Groups

Relative frequency expresses each cell (or total) as a fraction or percentage of the grand total. This lets you compare groups of different sizes.

Relative frequency of girls who like football = 12 Γ· 60 = 0.2 = 20%
Relative frequency of boys who like football = 20 Γ· 60 β‰ˆ 0.333 = 33.3%
Comparison: Boys are more likely to like football (33.3%) than girls (20%).
πŸ’‘ To compare groups fairly, use proportions (relative frequency) rather than raw counts β€” especially when group sizes differ!
You can also find the proportion within a group: proportion of girls who like football = 12 Γ· 30 = 0.4 = 40%

πŸ’‘ Worked Examples

Example 1: Reading a Two-Way Table

60 people at a bakery were asked their age group (Under 20 / 20 or over) and their favourite item (Cake / Bread / Pastry).

CakeBreadPastryTotal
Under 201461030
20 or Over815730
Total22211760
Q: How many under-20s prefer Bread? β†’ Under 20 row, Bread column β†’ 6
Q: How many people prefer Pastry? β†’ Pastry column total β†’ 17
Q: How many 20-or-over people were surveyed? β†’ Row total for 20 or Over β†’ 30
πŸ“Œ Always identify the row AND column needed before reading the cell.

Example 2: Completing Missing Values

Some cells are missing. Use row and column totals to find them.

Has SiblingsNo SiblingsTotal
Has a Pet15?β†’ 924
No Pet?β†’ 13821
Total?β†’ 281745
Step 1: Has a Pet, No Siblings = 24 βˆ’ 15 = 9
Step 2: No Pet, Has Siblings = 21 βˆ’ 8 = 13
Step 3: Has Siblings column total = 15 + 13 = 28
Step 4: Check: 28 + 17 = 45 βœ“ and 24 + 21 = 45 βœ“

Example 3: Probability From a Table

Using the table from Example 1 (60 people). A person is chosen at random.

P(person is Under 20 AND prefers Cake) = 14/60 = 7/30
P(person prefers Bread) = 21/60 = 7/20
P(person is 20 or Over) = 30/60 = 1/2
P(person does NOT prefer Pastry) = 1 βˆ’ 17/60 = 43/60
πŸ“Œ For "AND" probabilities from a table, use the cell that matches BOTH conditions. Denominator = grand total.

Example 4: Relative Frequency & Comparison

150 students were asked if they walk to school and if they are in Year 7 or Year 8.

Walk to SchoolDo Not WalkTotal
Year 7453075
Year 8354075
Total8070150
Proportion of Year 7 who walk = 45 Γ· 75 = 0.6 = 60%
Proportion of Year 8 who walk = 35 Γ· 75 β‰ˆ 0.467 = 46.7%
Conclusion: Year 7 students are more likely to walk to school than Year 8 students (60% vs 46.7%).
πŸ’‘ To compare fairly: divide each group's count by its own row total, not the grand total.

πŸ“Š Interactive Visualizers

πŸ—οΈ Table Builder

Enter the label names and data values below. The two-way table builds automatically with row and column totals!





Enter the 4 data values:





✏️ Exercise 1: Reading a Two-Way Table

Use the table to answer the questions. Type the number answer in each box.

Chocolate 🍫Vanilla 🍦Strawberry πŸ“Total
Boys169530
Girls1114530
Total27231060

✏️ Exercise 2: Complete the Missing Values

Work out the missing values in each table using row and column totals.

✏️ Exercise 3: Probability from Two-Way Tables

A student is picked at random. Give probabilities as simplified fractions.

Walks to School 🚢Gets a Bus 🚌Cycles 🚲Total
Year 7189330
Year 81212630
Total3021960

πŸ“‰ Exercise 4: Relative Frequency

Give answers as decimals (to 2 d.p. where needed) or percentages where stated.

Passed 🟒Failed πŸ”΄Total
Studied36945
Did Not Study104555
Total4654100

πŸ—οΈ Exercise 5: Draw a Two-Way Table

Here are the results of a survey of 20 students. Complete the two-way table below.

Survey data (each student recorded as Sport/No Sport Γ— Music/No Music):

Sport & Music, Sport & Music, No Sport & Music, Sport & No Music, No Sport & No Music,
Sport & Music, No Sport & Music, Sport & Music, Sport & No Music, No Sport & Music,
Sport & Music, Sport & No Music, No Sport & No Music, Sport & Music, No Sport & No Music,
No Sport & Music, Sport & Music, Sport & No Music, No Sport & Music, Sport & Music

πŸ’‘ Tally up: Sport & Music = ?, Sport & No Music = ?, No Sport & Music = ?, No Sport & No Music = ?

Fill in every cell of the table below:

Likes Music 🎡No MusicTotal
Plays Sport ⚽
No Sport
Total

πŸ“ Practice Questions

Reference Table β€” use this for questions 1–12:

Glasses πŸ‘“No GlassesTotal
Year 7152540
Year 8103040
Total255580

πŸ† Challenge Questions

These questions require more steps or careful reasoning. Give simplified fractions or percentages where asked.