Categorical Data and Two-Way Tables

AP Statistics · Unit 2 — Probability, Random Variables, and Probability Distributions

Three kinds of distribution in one table

Two categorical variables are associated when the conditional distributions differ across rows (or columns). If every row has the same percentage breakdown, there is no association.

A segmented bar chart of conditional distributions is the standard display: equal-looking segments across categories means no association.

Worked example: conditional distributions

Table: Males like sports $60$, do not like $40$; Females like $45$, do not like $55$. Is there an association between gender and preference?

Solution

Compute the distribution conditional on gender (divide by each row total; each row totals $100$):

The two proportions differ ($60\%$ vs $45\%$) ⇒ there is an association between gender and liking sports in this sample.

Note that you must say “in this sample” — a conclusion about the population needs the chi-square test from Unit 3.

Common mistake

Simpson's paradox: combining groups can reverse the direction of an association. Exams often give two subtables where every group leans toward A, but the combined table leans toward B. When you see this pattern you must state that a lurking variable is at work.

Key takeaway

To examine association, use conditional distributions. Differences between rows ⇒ association. Dividing by the correct denominator is half the marks.

← Observational Studies and Confounding · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Random Digits, Simulation and Chance Differences →