Two-Way Tables Examples in Statistics
Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Two-Way Tables.
This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Statistics.
Concept Recap
A two-way table (contingency table) displays the frequency of data categorized by two different categorical variables simultaneously, with one variable in rows and the other in columns, allowing comparison of distributions across groups.
A two-way table is like a spreadsheet that shows how two questions relate. 'Do you like pizza?' and 'Are you a kid or adult?' becomes a 2 \times 2 grid showing how many kid pizza-lovers, adult pizza-lovers, etc.
Read the full concept explanation โHow to Use These Examples
- Read the first worked example with the solution open so the structure is clear.
- Try the practice problems before revealing each solution.
- Use the related concepts and background knowledge badges if you feel stuck.
What to Focus On
Core idea: A two-way table organizes data by two categorical variables simultaneously, letting you see joint frequencies and compare conditional distributions across groups.
Common stuck point: Students confuse joint frequencies (count in one cell) with marginal frequencies (row or column totals) and use the wrong denominator when computing percentages.
Sense of Study hint: First, label the rows with one categorical variable and the columns with the other. Then fill in each cell with the count of observations that belong to both categories. Finally, add row totals, column totals, and the grand total to enable percentage calculations.
Common Mistakes to Watch For
Before you work through the examples, skim the mistake guide so you know which shortcuts and sign errors to avoid.
Worked Examples
Example 1
easySolution
- 1 Step 1: Set up the table with rows (Boys, Girls, Total) and columns (Cats, Dogs, Total).
- 2 Step 2: Fill in the given values: Boys-Cats=8, Boys-Dogs=17, Girls-Cats=15, Girls-Dogs=20.
- 3 Step 3: Calculate totals. Row totals: Boys=8+17=25, Girls=15+20=35. Column totals: Cats=8+15=23, Dogs=17+20=37. Grand total: 25+35=60 (or 23+37=60). โ
Answer
Example 2
mediumPractice Problems
Try these problems on your own first, then open the solution to compare your method.
Example 1
mediumExample 2
hardRelated Concepts
Background Knowledge
These ideas may be useful before you work through the harder examples.