Do more ninth graders or tenth graders prefer online classes? Are students who play a sport more likely to own a pet? When data sorts people into categories rather than measuring numbers, a two-way frequency table organizes it. Reading these tables carefully, and choosing the right total to divide by, is the whole skill behind this topic.
This article covers Topic 11.3: Two-Way Frequency Tables in Unit 11, Data and Statistics. The topic asks you to build two-way tables, calculate joint, marginal, and conditional relative frequencies, and use them to decide whether two categorical variables are associated.
By the end, you should be able to:
- Organize categorical data in a two-way frequency table with totals.
- Calculate joint and marginal relative frequencies.
- Calculate conditional relative frequencies and explain which total to use.
- Use conditional frequencies to judge whether two variables are associated.
Building a Two-Way Table
Categorical data places each person or item into a group, such as grade level or yes or no. A two-way frequency table shows counts for every combination of two categorical variables.

A survey asked 200 students their grade and whether they prefer online or in-person classes.
| Online | In-Person | Total | |
|---|---|---|---|
| Grade 9 | 30 | 70 | 100 |
| Grade 10 | 50 | 50 | 100 |
| Total | 80 | 120 | 200 |
The four inner cells are joint frequencies, each describing one combination. The totals in the last row and column are marginal frequencies, since they sit in the margins. The bottom-right cell is the grand total.
Why does this matter? Missing-value questions are common. Because every row and column must add up, you can fill in any one missing cell from the totals. Always check that row totals and column totals both reach the same grand total.
Relative Frequencies
A relative frequency is a count divided by a total, usually written as a percent or decimal. The type depends on which total you divide by.

| Type | Divide By | Example From the Survey |
|---|---|---|
| Joint relative frequency | The grand total | Grade 9 and online: \(\frac{30}{200}=0.15\), or 15 percent of all students. |
| Marginal relative frequency | The grand total | Online overall: \(\frac{80}{200}=0.40\), or 40 percent of all students. |
| Conditional relative frequency | A row or column total | Online, given grade 9: \(\frac{30}{100}=0.30\), or 30 percent of ninth graders. |
The word “given” or a phrase like “of the ninth graders” signals a conditional frequency. It tells you to restrict your attention to one row or column and divide by that row or column’s total.
Worked example: What percent of students who prefer online classes are tenth graders?
- The condition is “prefer online,” so use the Online column total, 80.
- Tenth graders who prefer online: 50.
- Divide: \(\frac{50}{80}=0.625\), or 62.5 percent.
Why does this matter? “Percent of ninth graders who prefer online” and “percent of online-preferers who are ninth graders” sound alike but use different denominators: 100 and 80. They give 30 percent and 37.5 percent. Identifying the group after “of” or “given” tells you which total to use.
Looking for an Association
Two categorical variables are associated if the conditional relative frequencies differ meaningfully across groups. Compare the same conditional frequency for each row.
- Of ninth graders, 30 percent prefer online.
- Of tenth graders, 50 percent prefer online.

The 20-point difference suggests an association between grade level and class preference: tenth graders in this survey are more likely to prefer online classes. If both percents were close, say 38 and 41 percent, there would be little evidence of an association.
As with scatter plots, an association does not prove causation. Being in tenth grade may not cause the preference. Other factors, such as different schedules, could explain the difference.
Test-Taking Strategies
Mnemonic Devices and Memory Shortcuts
Remember “Given goes on the bottom”: the group named after “given” or “of the” supplies the denominator. For the two other types, “joint and marginal share the grand total.”
Cross-Topic Connections
- Relative frequencies are ratios, as in Topic 2.6: Ratios, Rates, and Proportions.
- Numerical data uses different summaries in Topic 11.1: Measures of Center and Spread.
- Data displays for one numerical variable appear in Topic 11.2: Box Plots and Histograms.
- Association versus causation also matters in Topic 5.8: Scatter Plots and Lines of Best Fit.
Common Question Formats
- Fill in missing values in a two-way table.
- Calculate a joint, marginal, or conditional relative frequency.
- Decide whether data shows an association between two variables.
- Choose the statement that correctly interprets a relative frequency.
Frequent Student Mistakes
- Dividing by the grand total when the question asks for a conditional frequency.
- Reversing the condition, such as using the column total instead of the row total.
- Concluding causation from an association.
Test-Day Shortcuts
Underline the phrase that names the group you are restricting to, then circle that group’s total in the table. Divide the matching cell by the circled total. This two-mark habit prevents nearly every denominator error.
Time Management Tips
Two-way table items on Algebra 1 unit tests and end-of-course exams often come in sets that reuse one table. Fill in every missing total first, which takes about a minute and speeds up every later question. Each relative frequency calculation should then take well under a minute.