Categorical Data and Two-Way Tables
AP Statistics · Unit 2 — Probability, Random Variables, and Probability Distributions
Three kinds of distribution in one table
- Marginal — the totals in the margins, describing one variable alone.
- Joint — one cell divided by the grand total.
- Conditional — one cell divided by its row or column total; this is what you need to judge association.
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$):
- Male: like sports $\frac{60}{100}=60\%$
- Female: like sports $\frac{45}{100}=45\%$
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.