Unit 2: Exploring Two-Variable Data
Two-Way Tables
Summarizing and analyzing bivariate categorical data with two-way tables.
Reading Association from a Table of Counts
A survey of 200 students records both grade level (Junior/Senior) and whether they hold a part-time job. Before reading on: if grade level had nothing to do with holding a job, what would you expect the proportion of job-holders to look like among juniors compared to among seniors?
| Job: Yes | Job: No | Total | |
|---|---|---|---|
| Junior | 30 | 70 | 100 |
| Senior | 60 | 40 | 100 |
| Total | 90 | 110 | 200 |
Definition — Marginal and Conditional Distributions
Worked Example — Comparing Conditional Distributions
This comparison can also be framed through expected counts: if grade level and job status were truly independent, the Junior/Yes cell would be expected to hold (row total × column total)/grand total = (100×90)/200 = 45 students — the actual count, 30, is well below that. This same logic — comparing observed counts to what independence would predict — is exactly what a later unit formalizes into a significance test.
Tip
Common Mistakes
Comparing raw counts (30 vs. 60) directly instead of proportions within each group.
Raw counts don't account for group size — comparing 30/100 to 60/100 (both out of equal-sized groups here) is what actually reveals the association; with unequal group sizes, comparing raw counts would be misleading regardless.
Key Takeaways
- A two-way table organizes counts of two categorical variables observed on the same individuals.
- Comparing conditional distributions across categories — not raw counts — reveals whether an association exists.
- Expected counts under independence give a numerical benchmark: observed counts far from expected suggest association.
Summary
Two-way tables describe relationships between categorical variables. The next lesson turns to two quantitative variables, and the line that best summarizes their relationship.
Sign in to track your progress and mark this lesson complete.
Track your progress