Maximize your score with these resources:
- Albert.io AP® Statistics question banks
- Free AP® Statistics cheat sheets
- Free AP® Statistics score calculator
Two categorical variables show up everywhere in AP® Statistics — from two-way tables to chi-square tests. This article focuses on Topic 2.2 (DAT-1.A): calculating marginal and conditional relative frequencies from a two-way table, interpreting them in context, and using them to identify whether two categorical variables appear to be associated.
Understanding Two-Way Tables
A two-way table displays the joint distribution of two categorical variables. Each cell shows the count for a specific combination of categories. The row and column marginal totals are the sums across rows and columns. The grand total is the sum of all cells (or equivalently, the sum of all marginal totals in a row or column).

Example: 300 students surveyed on preferred study location and grade level.
| Library | Home | Café | Total | |
|---|---|---|---|---|
| Underclass | 60 | 75 | 25 | 160 |
| Upperclass | 40 | 60 | 40 | 140 |
| Total | 100 | 135 | 65 | 300 |
Calculating Marginal Relative Frequencies
A marginal relative frequency is the proportion of all observations in a particular category of one variable, ignoring the other variable. Divide the marginal total by the grand total.

From the table above:
• Proportion underclass: 160 / 300 = 0.533
• Proportion who prefer library: 100 / 300 = 0.333
Marginal relative frequencies for a variable always sum to 1.0.
Calculating Conditional Relative Frequencies
A conditional relative frequency is the proportion within a specific group. The denominator is a marginal total, not the grand total. The “condition” is the group you’re restricting to.

Condition on a row (given grade level):
Among underclass students, proportion who prefer library: 60 / 160 = 0.375
Among underclass students, proportion who prefer home: 75 / 160 = 0.469
Among underclass students, proportion who prefer café: 25 / 160 = 0.156
Condition on a column (given location):
Among library users, proportion who are underclass: 60 / 100 = 0.600
Among library users, proportion who are upperclass: 40 / 100 = 0.400
Conditional relative frequencies within a group always sum to 1.0.
Identifying and Interpreting Association
To determine whether two categorical variables are associated, compare the conditional distributions across groups. If the distributions are the same (or very similar) across groups, the variables appear to be independent. If the distributions differ, there is an association.
From the example: among underclass students, 37.5% prefer the library. Among upperclass students: 40 / 140 = 28.6% prefer the library. These proportions differ, suggesting an association between grade level and study location preference.
Language for conclusions: “Underclass students tend to prefer the library at a higher rate (37.5%) than upperclass students (28.6%), suggesting an association between grade level and study location preference.” Never say “causes” — use “associated with” or “related to.”
Test-Taking Strategies
Mnemonic: MCG — Marginal uses Grand total, Conditional uses Group total. When you see a relative frequency question, immediately identify which variable you’re conditioning on. That variable’s marginal total is your denominator.
Cross-Topic Connections
- Topic 2.1 (Tabular and Graphical Representations for the Distributions of Two Categorical Variables): The relative frequency types calculated here are the same ones displayed in segmented bar graphs and mosaic plots.
- Unit 2 (Probability, Random Variables, and Probability Distributions): Conditional relative frequencies are empirical conditional probabilities. P(A|B) ≈ conditional relative frequency of A given B.
- Unit 3 (Chi-Square Tests): The formal test for association between two categorical variables uses the same two-way table setup. The chi-square test quantifies whether observed differences in conditional distributions are statistically significant.
Common AP Exam Question Formats
- “Calculate the conditional relative frequency of…”: Set up the fraction explicitly (cell / marginal), compute it, and state it as a decimal or percent.
- “Does there appear to be an association?”: Calculate conditional distributions for at least two groups, compare them, and conclude in one sentence.
- “Interpret [relative frequency] in context”: Write a complete sentence using the specific numbers and variable names from the problem.
Frequent Student Mistakes
- Using the grand total for a conditional frequency: The most common error. Always ask: “Given what? That group’s total is my denominator.”
- Confusing the direction of conditioning: “Prefer library given underclass” (60/160) and “underclass given library” (60/100) are different fractions with different meanings.
- Comparing raw counts instead of proportions: Groups of different sizes make raw count comparisons misleading. Always convert to proportions before drawing conclusions.
- Claiming causation from association: Even a strong association between two categorical variables doesn’t imply one causes the other.
Test-Day Shortcuts and Time Tips
- Label your fraction before computing: write “cell / marginal =” to lock in the correct denominator.
- To check for association quickly: pick one group, compute its conditional distribution, then compare to another group’s. If proportions differ substantially, there’s association.
- For multi-part FRQ questions on two-way tables, budget about 1 minute per part: identify the frequency type, set up the fraction, compute, interpret in context.
Check for Understanding
Think you’ve got it? Complete the quiz below to make sure. Download your results at the end.
