Skip to main content

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):

GradePlays a sportNo sportTotal
Freshman7248120
Senior285280
Total100100200

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

WordingTypeDenominator
Proportion of all students who are freshmen and play a sportJointGrand total (200)
Proportion of all students who play a sportMarginalGrand total (200)
Proportion of freshmen who play a sportConditionalFreshman total (120)
Proportion of sport players who are freshmenConditionalSport 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.

  1. 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 solution
    1. Step 1: (a) Joint: the senior/no-sport cell over the grand total: 52/200 = 0.26.
    2. Step 2: (b) Marginal: the no-sport column total over the grand total: 100/200 = 0.50.
    3. Step 3: (c) Conditional on being a senior: 52/80 = 0.65.
    4. Step 4: (d) Conditional on not playing: 52/100 = 0.52.

    Answer: (a) 0.26 (b) 0.50 (c) 0.65 (d) 0.52

  2. 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 solution
    1. Step 1: Compare the conditional proportions using Brand A in each age group.
    2. Step 2: Under 40: 117/180 = 0.65. 40 and older: 78/120 = 0.65.
    3. 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

  • AP Stats – 2.2 Summary Statistics for Two Categorical Variables

    The AlgebrosWatch on YouTube (opens in a new tab)

  • AP Stats 2.A.1.vB - Describing Two Categorical Variables

    Skew The ScriptWatch on YouTube (opens in a new tab)

  • AP Statistics Unit 2 | Summary Statistics for Two Categorical Variables | CED 2.2 | Guided Notes

    Goldie's Math EmporiumWatch on YouTube (opens in a new tab)

  • AP Statistics: Topic 2.3 Statistics for Two Categorical Variables

    Michael Porinchak - AP Statistics & AP PrecalculusWatch on YouTube (opens in a new tab)

  • Marginal distribution and conditional distribution | AP Statistics | Khan Academy

    Khan AcademyWatch on YouTube (opens in a new tab)

Check yourself

4 questions on 2.2 Summary Statistics for Two Categorical Variables. Pick an answer to see if you got it, and why.

Question 1 of 4Calculator allowed

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 levelBusCarWalk or bikeTotal
Grades 9–10904070200
Grades 11–125012030200
Total140160100400

Invented data: how 400 randomly selected students at a high school usually get to school

Question 2 of 4Calculator allowed

What proportion of all 400 students are in grades 11–12 and usually get to school by car?

Question 3 of 4Calculator allowed

Of the students who usually take the bus, what proportion are in grades 9–10?

Question 4 of 4Calculator allowed

Which statement best describes the relationship between grade level and way of getting to school?

0 of 4 answered