Skip to content
🎯⭐ INTERACTIVE LESSON

Two-Way Tables

Learn step-by-step with interactive practice!

Two-Way Tables - Complete Interactive Lesson

Part 1: Reading the Table

📊 Two-Way Tables

Part 1 of 5 — Reading the Table


Topics in This Part

Section
What Is a Two-Way Table?
Cells, Rows, and Columns
Marginal Totals (the Margins)

🔑 Key Concept: A two-way table sorts the same group of people (or things) by two categorical variables at once — like "grade level" and "favorite sport." It lets you see how the two categories overlap.

What Is a Two-Way Table?

Suppose we survey 80 students and ask two yes/no questions:

  • Do you own a dog?
  • Do you own a cat?

Each student lands in exactly one box of this table:

Owns a CatNo CatTotal
Owns a Dog182745
No Dog142135
Total324880
  • The inside numbers (18,27,14,2118, 27, 14, 21) are the joint frequencies — they count people in both categories at once.
  • The right column and bottom row are the marginal totals — they live in the margins of the table.

🔑 Key Idea: Every inside number answers "how many are in this row AND this column?" For example, 1818 students own a dog AND a cat.

Concept Check 🎯

Use the dog/cat table above.

The Margins Are Just Sums

Every marginal total is found by adding across a row or down a column:

18+27⏟Dog row=4518+14⏟Cat column=32\underbrace{18 + 27}_{\text{Dog row}} = 45 \qquad \underbrace{18 + 14}_{\text{Cat column}} = 32

And the grand total in the bottom-right corner can be reached three different ways — they must all agree:

Add this wayCalculationResult
The two row totals45+3545 + 358080
The two column totals32+4832 + 488080
All four inside cells18+27+14+2118+27+14+218080

💡 Built-in check: If your row totals and column totals don't add up to the same grand total, a number is wrong somewhere. Two-way tables check themselves.

Find the Marginal Totals 🧮

A different survey of students about breakfast is shown. Fill in the missing totals.

Eats BreakfastSkips Breakfast
6th Grade228
7th Grade1911

1) Total number of 6th graders = ?= \,? 2) Total number of students who eat breakfast = ?= \,? 3) Grand total of all students surveyed = ?= \,?

Naming the Numbers

Before moving on, let's lock in the vocabulary:

  • An inside cell is a joint frequency — it counts members of one row category and one column category.
  • A number in the right column or bottom row is a marginal total.
  • The corner number is the grand total.

💡 The word joint literally means "joined together" — two categories joined in one cell.

Name That Number 🔽

Use the same breakfast table (6th grade: 22 eat, 8 skip; 7th grade: 19 eat, 11 skip). Classify each value.

What You Can Do Now

You can locate any joint frequency (an inside cell) and build the marginal totals by summing.

In Part 2 you'll work in reverse: when some cells are blank, you'll use the margins to figure out the missing numbers — like a number puzzle that always has one answer.

Part 2: Completing a Table

📊 Two-Way Tables

Part 2 of 5 — Completing a Table


🔑 The Idea: Because every row and column must add to its total, a two-way table with a few blanks behaves like a puzzle: each empty cell can be recovered by subtraction.

Filling In Blanks with Subtraction

If a row total is known and one cell is missing, then:

missing cell=row total−known cell\text{missing cell} = \text{row total} - \text{known cell}

The same works going down a column.

Worked Example

A class of 50 students chose pizza or tacos. Some cells are missing (shown as ?):

PizzaTacosTotal
Boys12?20
Girls?17?
Total25?50

Step 1 — Boys/Tacos (fill the row): 20−12=820 - 12 = 8.

Step 2 — Girls/Pizza (fill the Pizza column): 25−12=1325 - 12 = 13.

Step 3 — Girls total (fill the Girls row): 13+17=3013 + 17 = 30. (Check: 20+30=5020 + 30 = 50 ✓)

Step 4 — Tacos total (fill the column): 8+17=258 + 17 = 25. (Check: 25+25=5025 + 25 = 50 ✓)

💡 Order tip: Always start with a row or column that has only one blank — then it's a single subtraction.

Concept Check 🎯

Use the completed pizza/tacos table from the worked example.

Your Turn — Pick the Easy Cell First

When you face a blank table, scan for a row or column that has only one missing cell. That blank is a single subtraction away. Fill it, and often a new row or column now has just one blank — keep going until the table is full.

🔑 Strategy: Solve the easy blanks first; each one you fill makes the next one easier.

Complete the Table 🧮

A survey of 100 people asked whether they prefer tea or coffee:

TeaCoffeeTotal
Adults?56?
Teens21?30
Total35?100

1) Adults who prefer tea = ?= \,? 2) Teens who prefer coffee = ?= \,? 3) Total number of adults = ?= \,?

A Note on Consistency

When you finish a table, every row and column should land on its printed total, and the row totals and column totals should both sum to the same grand total. If they don't, recheck your subtractions — a single arithmetic slip ripples through the whole table.

⚠️ Common mistake: Filling a blank by guessing instead of subtracting. There is only one number that makes the row (or column) add up correctly — find it, don't estimate it.

Finish the Puzzle 🧮

60 students were asked if they walk or ride the bus to school:

WalksBusTotal
Lives Near16?22
Lives Far?31?
Total23?60

1) Students who live near AND take the bus = ?= \,? 2) Students who live far AND walk = ?= \,? 3) Total number of students who take the bus = ?= \,?

Part 3: Relative Frequencies

📊 Two-Way Tables

Part 3 of 5 — Relative Frequencies


🔑 The Idea: A relative frequency turns a count into a fraction of the whole — a decimal or percent. It lets you compare groups of different sizes fairly.

Relative Frequency = Part ÷ Whole

To convert any count to a relative frequency, divide by the grand total:

relative frequency=cell countgrand total\text{relative frequency} = \frac{\text{cell count}}{\text{grand total}}

Then multiply by 100100 to get a percent.

Reference Table — 80 Students

Owns a CatNo CatTotal
Owns a Dog182745
No Dog142135
Total324880
  • Joint relative frequency (an inside cell ÷ grand total): dog-and-cat owners =1880=0.225=22.5%= \dfrac{18}{80} = 0.225 = 22.5\%.
  • Marginal relative frequency (a margin ÷ grand total): dog owners =4580=0.5625=56.25%= \dfrac{45}{80} = 0.5625 = 56.25\%.

💡 All of the joint relative frequencies in a table add up to 100%100\%, because together the inside cells account for everyone.

Concept Check 🎯

Use the 80-student dog/cat table above.

Turning Counts into Percents

The recipe is always the same two steps:

  1. Divide the count by the grand total → a decimal.
  2. Multiply by 100100 → a percent.

For example, 1480=0.175\dfrac{14}{80} = 0.175, and 0.175×100=17.5%0.175 \times 100 = 17.5\%.

⚠️ Don't forget step 2! A relative frequency of 0.1750.175 is the same value as 17.5%17.5\% — but write whichever the question asks for.

Compute Relative Frequencies 🧮

Use the 80-student dog/cat table. Give each answer as a percent (a number; the %\% is understood). Decimals are fine.

1) What percent of all students own a dog but no cat? (2780)\left(\dfrac{27}{80}\right) 2) What percent of all students own no dog (marginal)? (3580)\left(\dfrac{35}{80}\right) 3) What percent of all students own a dog AND a cat? (1880)\left(\dfrac{18}{80}\right)

Joint vs. Marginal — Don't Mix Them Up

TypeWhat it dividesExample
Joint relative frequencyinside cell ÷ grand total1880=22.5%\frac{18}{80} = 22.5\% have a dog and a cat
Marginal relative frequencya margin ÷ grand total3280=40%\frac{32}{80} = 40\% have a cat (whether or not they have a dog)

⚠️ Both joint and marginal relative frequencies divide by the grand total. In Part 4 we'll divide by a row or column total instead — that's a different, very useful idea called a conditional relative frequency.

Joint or Marginal? 🔽

Each value comes from the 80-student dog/cat table. Classify each one.

Part 4: Conditional Relative Frequencies & Association

📊 Two-Way Tables

Part 4 of 5 — Conditional Relative Frequencies & Association


🔑 The Idea: A conditional relative frequency divides by a row or column total instead of the grand total. It answers questions like "Of the cat owners, what fraction also own a dog?" — and reveals whether the two variables are associated.

Conditional = Divide by a Row or Column

conditional relative frequency=cell countrow OR column total\text{conditional relative frequency} = \frac{\text{cell count}}{\text{row OR column total}}

The phrase after "of the" tells you which total to divide by.

Reference Table — 80 Students

Owns a CatNo CatTotal
Owns a Dog182745
No Dog142135
Total324880

"Of the dog owners, what percent also own a cat?" Stay inside the Dog row (total 4545): 1845=0.40=40%\dfrac{18}{45} = 0.40 = 40\%.

"Of the cat owners, what percent also own a dog?" Stay inside the Cat column (total 3232): 1832=0.5625=56.25%\dfrac{18}{32} = 0.5625 = 56.25\%.

💡 Same cell, different answers! 1845\frac{18}{45} and 1832\frac{18}{32} both use the cell 1818, but divide by different totals. The wording — of the dogs vs of the cats — decides the denominator.

Concept Check 🎯

Use the 80-student dog/cat table above.

Let "Of the…" Choose Your Denominator

The single most useful trick: read the phrase right after "of the."

The question says…Divide by…
"Of the boys, …"the Boys row total
"Of the cat owners, …"the Cat column total
"Of the under-30s, …"the Under-30 row total

🔑 The "of the" group is your whole for that question — its total goes on the bottom of the fraction.

Conditional Relative Frequencies 🧮

A survey asked 120 people whether they exercise regularly:

ExercisesDoesn'tTotal
Under 30362460
30 or Older273360
Total6357120

Give each answer as a percent (number only). Decimals are fine.

1) Of the people under 30, what percent exercise? (3660)\left(\dfrac{36}{60}\right) 2) Of the people 30 or older, what percent exercise? (2760)\left(\dfrac{27}{60}\right) 3) Of all the people who exercise, what percent are under 30? (3663)\left(\dfrac{36}{63}\right) (round to the nearest whole percent)

Spotting an Association

Two variables show an association when the conditional relative frequencies are clearly different across groups. If they're about the same, there's little or no association.

From the exercise table:

  • Of those under 30, 60%60\% exercise.
  • Of those 30 or older, 45%45\% exercise.

These percentages differ noticeably (60%60\% vs 45%45\%), so there is an association: younger people in this survey were more likely to exercise.

🔑 The right comparison: To judge association, compare conditional percentages computed the same way (e.g., row percents to row percents). Comparing raw counts can mislead when the groups are different sizes.

Read the Association 🔽

A study tracked whether students passed a quiz, split by whether they studied:

PassedFailedTotal
Studied45550
Didn't121830
Total572380

Complete the analysis.

Part 5: Mixed Practice & Mastery Check

📊 Two-Way Tables

Part 5 of 5 — Mixed Practice & Mastery Check


You can now (1) read joint and marginal frequencies, (2) complete a table with subtraction, (3) compute joint & marginal relative frequencies, and (4) use conditional relative frequencies to judge association. Let's put it all together.

Quick Reference

QuantityDivide the cell by…Answers the question
Joint relative frequencygrand total"What fraction of everyone?"
Marginal relative frequencygrand total (using a margin)"What fraction of everyone is in one category?"
Conditional relative frequencya row or column total"Of this group, what fraction…?"

⚠️ The denominator decides everything. Joint & marginal use the grand total; conditional uses the row or column total named after "of the." Pick the wrong denominator and every percent is wrong.

💡 To check for association, compare conditional percentages across groups: a clear difference means the variables are associated.

Mixed Practice 🎯

A survey of 200 commuters asked their main transport and whether they were ever late this week:

LateOn TimeTotal
Car245680
Train3684120
Total60140200

Putting It All Together

Notice how the commuter table used every skill at once: marginal relative frequency (120200\frac{120}{200}), conditional relative frequency (2480\frac{24}{80}), and a comparison of conditionals to judge association. That's the full toolkit — and the next table asks you to build one from scratch and read a conditional from it.

One More Table 🧮

A club of 40 members was surveyed on whether they prefer summer or winter:

SummerWinterTotal
Students18?24
Adults?10?
Total24?40

1) Students who prefer winter = ?= \,? 2) Adults who prefer summer = ?= \,? 3) Of the members who prefer summer, what percent are students? (1824)\left(\dfrac{18}{24}\right)

You're Ready

You can now read a two-way table, complete it, and compute joint, marginal, and conditional relative frequencies — and use them to judge association. One last table to prove it.

🔑 Remember the denominator rule: grand total for joint & marginal; the "of the" group's total for conditional.

Exit Quiz ✅

Answer all three to finish the lesson. Use this table of 50 pet-store customers:

Bought FoodNo FoodTotal
Member20525
Non-Member101525
Total302050