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 Cat | No Cat | Total | |
|---|---|---|---|
| Owns a Dog | 18 | 27 | 45 |
| No Dog | 14 | 21 | 35 |
| Total | 32 | 48 | 80 |
- The inside numbers () 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, 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:
Find the Marginal Totals ๐งฎ
A different survey of students about breakfast is shown. Fill in the missing totals.
| Eats Breakfast | Skips Breakfast | |
|---|---|---|
| 6th Grade | 22 | 8 |
| 7th Grade | 19 | 11 |
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:
The same works going down a column.
Worked Example
A class of 50 students chose pizza or tacos. Some cells are missing (shown as ?):
| Pizza | Tacos |
|---|
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:
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
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
| Quantity | Divide the cell byโฆ | Answers the question |
|---|---|---|
| Joint relative frequency | grand total | "What fraction of everyone?" |
| Marginal relative frequency | grand total (using a margin) | "What fraction of everyone is in one category?" |
| Conditional relative frequency | a 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.