AP® Statistics review sheet from Aim for Five (aimforfive.com/stats/units/2/2-2)
Unit 2 · Topic 2.2
2.2 Summary Statistics for Two Categorical Variables
A two-way table holds three kinds of proportions: joint, marginal and conditional. Knowing which denominator goes with each is the key skill here, and comparing conditional proportions is how you show two categorical variables are associated.
Key terms
- joint relative frequency
- marginal relative frequency
- conditional relative frequency
- association
Three kinds of relative frequency
Use the grade-and-sport table from 2.1 (200 students):
| Grade | Plays a sport | No sport | Total |
|---|---|---|---|
| Freshman | 72 | 48 | 120 |
| Senior | 28 | 52 | 80 |
| Total | 100 | 100 | 200 |
Joint, marginal, conditional
The phrase after "among," "of the" or "given" tells you which total goes in the denominator.
- Joint relative frequency: one cell divided by the grand total. Freshmen who play a sport: 72/200 = 0.36.
- Marginal relative frequency: a row or column total divided by the grand total. All sport players: 100/200 = 0.50. All freshmen: 120/200 = 0.60. These come from the margins of the table, hence the name.
- Conditional relative frequency: a cell divided by its own row total or column total. You restrict attention to one category, then ask what share of it falls in a cell. Among freshmen, the proportion who play a sport is 72/120 = 0.60. Among sport players, the proportion who are freshmen is 72/100 = 0.72.
Wording to denominator
| Wording | Type | Denominator |
|---|---|---|
| Proportion of all students who are freshmen and play a sport | Joint | Grand total (200) |
| Proportion of all students who play a sport | Marginal | Grand total (200) |
| Proportion of freshmen who play a sport | Conditional | Freshman total (120) |
| Proportion of sport players who are freshmen | Conditional | Sport total (100) |
Order matters in conditional proportions
"Proportion of freshmen who play a sport" (72/120 = 0.60) and "proportion of sport players who are freshmen" (72/100 = 0.72) use the same cell but different denominators, so they answer different questions. Read the wording slowly.
Using conditional proportions to show association
Compare the conditional distribution of one variable across the categories of the other. If they're about the same, there's no association. If they differ, there is.
Here, 60% of freshmen play a sport, compared with 35% of seniors (28/80). Those conditional proportions are quite different, so grade and sport participation are associated for these students.
A conditional distribution is the full set of conditional proportions for one group, and it adds to 1. For freshmen: 60% sport, 40% no sport. For seniors: 35% sport, 65% no sport. Comparing whole conditional distributions, not single numbers, is the complete way to check for association.
Another way to see it: overall, 50% play a sport. If grade didn't matter, both grades would be near 50%. They aren't.
How different is different enough? For now, judge by size. In topics 3.14 and 3.15 you'll test whether a difference like this could be just chance.
Worked examples
Try each one yourself first, then open the solution.
- Example 1Calculator allowed
All three kinds
Using the grade-and-sport table, find (a) the proportion of all students who are seniors and don't play a sport, (b) the proportion of all students who don't play a sport, (c) the proportion of seniors who don't play a sport, and (d) the proportion of non-players who are seniors.
Show the solutionHide the solution
- Step 1: (a) Joint: the senior/no-sport cell over the grand total: 52/200 = 0.26.
- Step 2: (b) Marginal: the no-sport column total over the grand total: 100/200 = 0.50.
- Step 3: (c) Conditional on being a senior: 52/80 = 0.65.
- Step 4: (d) Conditional on not playing: 52/100 = 0.52.
Answer: (a) 0.26 (b) 0.50 (c) 0.65 (d) 0.52
- Example 2Calculator allowed
Is there an association?
A survey of 300 adults records phone type and age group. Of 180 adults under 40, 117 use Brand A. Of 120 adults 40 and older, 78 use Brand A. Is phone brand associated with age group in this sample?
Show the solutionHide the solution
- Step 1: Compare the conditional proportions using Brand A in each age group.
- Step 2: Under 40: 117/180 = 0.65. 40 and older: 78/120 = 0.65.
- Step 3: They're identical, so in this sample knowing someone's age group doesn't change the proportion using Brand A.
Answer: No association in this sample: 65% of each age group uses Brand A.
Common mistakes
- Using the grand total as the denominator for a conditional proportion.
- Swapping the condition, finding P(freshman | sport) when asked for P(sport | freshman).
- Concluding association from different counts rather than different conditional proportions.
On the exam
- These calculations set up probability (2.6) and chi-square tests (3.14). Expect to compute joint, marginal and conditional values straight from a table.
- When asked to show association, give at least two conditional proportions and compare them in context.
Connected topics
Videos
Check yourself
4 questions on 2.2 Summary Statistics for Two Categorical Variables. Pick an answer to see if you got it, and why.
In a survey of 250 adults, 80 of the 100 adults under 40 said they use a fitness app, and 45 of the 150 adults aged 40 or older said they do. What percent of the adults who use a fitness app are under 40?
| Grade level | Bus | Car | Walk or bike | Total |
|---|---|---|---|---|
| Grades 9–10 | 90 | 40 | 70 | 200 |
| Grades 11–12 | 50 | 120 | 30 | 200 |
| Total | 140 | 160 | 100 | 400 |
Invented data: how 400 randomly selected students at a high school usually get to school
What proportion of all 400 students are in grades 11–12 and usually get to school by car?
Of the students who usually take the bus, what proportion are in grades 9–10?
Which statement best describes the relationship between grade level and way of getting to school?
0 of 4 answered