7m left·0%
Reading Time: 7 min
Last Updated: August 20, 2026
Main Ideas: 5
Reading Time: 7 min
Last Updated: August 20, 2026
Main Ideas: 5

Topic 2.2 Notes – Summary Statistics for Two Categorical Variables

Verified for 2027 AP® Statistics Exam
Read aloud
This topic is about getting meaning out of a two-way table when both variables are categorical. You’re taking counts from the table and turning them into relative frequencies, then using those percentages to decide whether the variables seem associated.

What Relative Frequencies in a Two-Way Table Mean

A two-way table shows counts for individuals classified by two categorical variables. The inside cells show combinations, and the margins show totals.

Use this park visitor table as the running example for the relative frequencies in this section.

The whole topic comes down to one idea. The denominator decides the meaning.

  • Joint relative frequency uses a cell count divided by the grand total
  • Marginal relative frequency uses a row total or column total divided by the grand total
  • Conditional relative frequency uses a cell count divided by a row total or column total

Quick denominator check:

  • “out of all individuals” means grand total
  • “overall proportion in one category” means grand total
  • “among,” “of those,” or “given” means a restricted row or column total

One cell can answer different questions. In the table, 40 people are first-time visitors who chose Lake, so:

  • first-time given Lake is 40/6040/60
  • Lake given first-time is 40/8040/80

Same numerator. Different denominator. Different meaning.

Joint, Marginal, and Conditional Relative Frequencies

Joint relative frequencies

These describe a specific combination out of the whole table.

joint relative frequency=cell countgrand total \text{joint relative frequency}=\frac{\text{cell count}}{\text{grand total}}

Example from the table:

60200=0.30 \frac{60}{200}=0.30

Interpretation: 30% of all sampled visitors were returning visitors who chose the Ridge trail.

Marginal relative frequencies

These describe one variable by itself and ignore the other.

marginal relative frequency=row total or column totalgrand total \text{marginal relative frequency}=\frac{\text{row total or column total}}{\text{grand total}}

Examples:

  • Returning visitors: 120/200=0.60120/200=0.60
  • Ridge trail: 80/200=0.4080/200=0.40

You can also get marginals by adding joint relative frequencies. Ridge is 0.10+0.30=0.400.10+0.30=0.40.

Conditional relative frequencies

These describe one variable within a category of the other.

conditional relative frequency=cell countrow total or column total \text{conditional relative frequency}=\frac{\text{cell count}}{\text{row total or column total}}

Examples:

  • Ridge among first-time visitors: 20/80=0.2520/80=0.25
  • Ridge among returning visitors: 60/120=0.5060/120=0.50

A row-conditional table has each row sum to 1. A column-conditional table has each column sum to 1.

You can also compute a conditional from relative frequencies:

jointmatching marginal=0.100.40=0.25 \frac{\text{joint}}{\text{matching marginal}}=\frac{0.10}{0.40}=0.25

What students mix up a lot is this: a joint relative frequency table has all interior cells adding to 1, but a conditional table does not work that way unless you sum within each conditioned row or column.

How to Calculate the Right Summary

When a problem is wordy, translate it in this order:

  1. Identify the question in words.
  2. Find the reference group.
    • all individuals
    • one row group
    • one column group
  3. Pick the denominator that matches that group.
  4. Divide the correct count by that denominator.
  5. Write the answer in context.

Useful cues:

  • “proportion of all” → grand total
  • “proportion of X who are Y” → condition on X
  • “proportion of Y that are X” → condition on Y

Common trap: you grab the right cell for the numerator, then divide by the wrong margin.

Comparing Conditional Distributions to Look for Association

To decide whether two categorical variables are associated, compare conditional distributions.

For the park table:

  • Among first-time visitors, trail choices are 50%50\%, 25%25\%, 25%25\%
  • Among returning visitors, trail choices are about 16.7%16.7\%, 50%50\%, 33.3%33.3\%

Those are clearly different, especially for Lake and Ridge. That’s evidence of an association between visitor status and trail choice.

Conditional distributions of trail choice by visitor status

The segmented bars make that comparison quick because each group is scaled to 100% even though the sample sizes are different.

If there were no association, the conditional distributions would be the same, or very close, across groups. Raw counts alone are weak evidence because groups can be different sizes.

Association is symmetric, but one direction is often clearer in context.

Writing Conclusions and Avoiding Common Mistakes

A good interpretation includes:

  • the number
  • the categories involved
  • the denominator group
  • the real-world context

Good comparison sentence:

“Among returning visitors, 50% selected the Ridge trail, compared with 25% among first-time visitors.”

Good association conclusion:

“In this sample, visitor status and trail choice appear associated because returning visitors chose the Ridge trail at a higher rate and the Lake trail at a lower rate than first-time visitors.”

Mistakes that cost points:

  • comparing raw counts when group sizes differ
  • leaving out “among” so the denominator is unclear
  • using marginal percentages to claim association
  • saying correlation instead of association
  • making a causal claim from table summaries alone
  • generalizing to a population without random sampling

Key Takeaways

The denominator tells you whether a relative frequency is joint, marginal, or conditional.
“Given,” “among,” and “of those” almost always mean you need a row or column total, not the grand total.
P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) come from the same cell but usually have different denominators and different values.
Marginal percentages describe one variable overall, but they do not by themselves show association.
To look for association, compare corresponding conditional percentages across groups.
On AP Stats, say the variables and categories in context, not just “the percentage was 25%.”
Use the word association for two categorical variables, not correlation.
A two-way table can describe an observed relationship, but it cannot prove causation by itself.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining