AP® Statistics · Unit 2 · Topic 2.2
Association in Two-Way Tables
Two variables in a two-way table are associated if the conditional percentages differ across groups. Compare rows (or columns) as percentages, not raw counts, to see the link.
A two-way table organizes counts for two categorical variables, one in rows and one in columns. To check for association, you cannot just stare at the raw counts, because groups are often different sizes. Instead you compute conditional percentages: within each row, what percent falls into each column category. If those percentages are roughly the same across rows, the variables are not associated, knowing the row tells you nothing new about the column. If the percentages differ noticeably, the variables are associated, the outcome depends on which group you're in.
Mechanically, pick one variable to condition on, usually the explanatory one, and turn each row into percentages that add to 100%. Then compare those percentages across rows directly. A ten or twenty point gap in exercise rates between morning people and night people is a real signal of association. A two or three point gap is probably just noise from sampling.
Seeing association this way is purely descriptive. It tells you the two variables move together in your data, but it says nothing about why. That gap in a sample could come from a real effect, from random chance, or from a lurking variable tangled up with both. This limitation is exactly why the course later builds the chi-square test for independence: it takes the same two-way table setup and asks whether the association you see is large enough that chance alone is an unlikely explanation, giving you a formal way to decide if the pattern is real.
Key terms
- Two-way table
- A table displaying counts for two categorical variables, organized by rows and columns.
- Conditional percentage
- The percentage of one variable's outcomes within a single category of the other variable.
- Association
- A pattern where the value of one variable changes depending on the value of another.
- Lurking variable
- An unmeasured variable that influences both variables in an observed association.
- Chi-square test for independence
- A later hypothesis test that checks whether an observed association in a table is too strong to be due to chance.
Watch it explained
- How it worksHow do you see association by comparing the rows of a two-way table?
- Worked exampleCompare the exercise rate of 120 morning people and 80 night people in a two-way table.
- Common mistakeWhy isn't association in a table proof that one variable causes the other?
- Ties togetherHow does association in a two-way table set up the chi-square test later in the course?
Check yourself
End of topic.