SECTION 1
Historical Context & Motivation
People have always wanted to know whether two things are connected. Does studying more lead to better grades? Does a new medicine actually reduce illness? For centuries, scholars relied on intuition and anecdotes, but those approaches were unreliable. The development of two-way frequency tables and conditional relative frequencies gave us a rigorous, numerical way to assess whether categorical variables are truly associated or merely appear that way by coincidence.
1700s • Early Tabulation
1900 • Karl Pearson's Chi-Square Test
1930s • Rise of Survey Research
2000s • Big Data & Modern Analytics
The central question this lesson addresses is straightforward but powerful: when you know which group someone belongs to, does that change the likelihood of their response? If yes, the two variables are associated. If no, they are independent. Learning to calculate and compare conditional relative frequencies gives you the tool to answer this question with data instead of guesswork.
SECTION 2
Core Principles & Definitions
Before diving into calculations, you need to understand a few foundational ideas. A categorical variable is one whose values are labels or categories rather than numbers — for example, "favorite sport" or "grade level." When you have two categorical variables measured on the same group of individuals, you can organize the counts in a two-way frequency table (also called a contingency table). Each cell shows how many individuals fall into a particular combination of categories.
Joint Frequency
Marginal Frequency
Relative Frequency
Conditional Relative Frequency
Association vs. Independence
KEY TAKEAWAY
SECTION 3
Visual Explanation — Reading a Two-Way Table
The diagram below shows a two-way frequency table for 200 students surveyed about their preferred study method (solo vs. group) and whether they earned an A on a recent exam. The marginal totals appear in the rightmost column and bottom row. Pay close attention to how the joint frequencies in the interior cells add up to the marginal frequencies on the edges.
Notice that the joint frequencies in each row add up to that row's marginal total, and the joint frequencies in each column add up to that column's marginal total. The grand total in the bottom-right corner equals the sum of all joint frequencies and also equals the sum of any complete set of marginal totals. This structure is the foundation for every calculation that follows.
SECTION 4
Mathematical Framework
There are three types of relative frequencies you can compute from a two-way table. Understanding the difference is the key to detecting association.
JOINT RELATIVE FREQUENCY
Divides each interior cell by the total number of individuals. For example, 54 ÷ 200 = 0.27, meaning 27% of all students both studied solo and earned an A.
MARGINAL RELATIVE FREQUENCY
Divides a marginal total by the grand total. For example, 120 ÷ 200 = 0.60, meaning 60% of all students chose solo study.
CONDITIONAL RELATIVE FREQUENCY (BY ROW)
Divides a cell by its row total. This answers: "Given that a student studies solo, what fraction earned an A?" For example, 54 ÷ 120 = 0.45, or 45%.
CONDITIONAL RELATIVE FREQUENCY (BY COLUMN)
Divides a cell by its column total. This answers: "Of those who earned an A, what fraction studied solo?" For example, 54 ÷ 90 = 0.60, or 60%.
Choosing Row vs. Column Conditions
SECTION 5
Detecting Association with Conditional Relative Frequencies
The real power of conditional relative frequencies lies in comparison. Once you calculate conditional relative frequencies for each row (or each column), you line them up side by side. If the percentages are roughly the same across rows, the variables appear to be independent — knowing someone's row category doesn't help you predict their column category. If the percentages differ noticeably, the variables are associated.
| Scenario | Conditional Frequencies | Conclusion |
|---|---|---|
| Solo: 45% earned A, Group: 45% earned A | Same across rows | Independent — study method does not appear to affect grade |
| Solo: 60% earned A, Group: 30% earned A | Different across rows | Associated — study method and grade appear linked |
How to interpret conditional relative frequencies
How Different Is "Different Enough"?
SECTION 6
Worked Example — Is Phone Type Associated with Age Group?
A school surveyed 250 students and staff members about which type of phone they prefer: Android or iPhone. The results are organized by age group (Under 18 and 18 or Older). Let's determine whether phone preference is associated with age group.
| Android | iPhone | Total | |
|---|---|---|---|
| Under 18 | 48 | 112 | 160 |
| 18 or Older | 45 | 45 | 90 |
| Total | 93 | 157 | 250 |
Phone preference by age group (n = 250)
Assessing Association Between Age Group and Phone Preference
- 1
Step 1 — Identify the Condition
We want to compare phone preference within each age group. So we condition on the rows (age group). Each row total becomes the denominator. - 2
Step 2 — Calculate Conditional Frequencies for Under-18 Group
P(Android | Under 18) = 48 ÷ 160 = 0.30 (30%). P(iPhone | Under 18) = 112 ÷ 160 = 0.70 (70%). Among students under 18, 70% prefer iPhone.Under 18: 30% Android, 70% iPhone - 3
Step 3 — Calculate Conditional Frequencies for 18-or-Older Group
P(Android | 18+) = 45 ÷ 90 = 0.50 (50%). P(iPhone | 18+) = 45 ÷ 90 = 0.50 (50%). Among those 18 or older, preferences are split evenly.18 or Older: 50% Android, 50% iPhone - 4
Step 4 — Compare and Conclude
Under 18: 30% Android vs. 18+: 50% Android. These conditional relative frequencies are noticeably different (a 20-percentage-point gap). Knowing someone's age group changes the predicted phone preference, so the two variables appear to be associated. Younger respondents lean more heavily toward iPhone, while older respondents are evenly split.Age group and phone preference are associated.
SECTION 7
Strengths, Limitations & Common Mistakes
| Strengths | Limitations |
|---|---|
| Easy to compute — only division and comparison are needed. | Does not measure the strength of association numerically; comparison is informal. |
| Works for any pair of categorical variables, regardless of the number of categories. | Small sample sizes can produce misleading differences due to random variation. |
| Provides a clear, intuitive way to communicate findings ("70% of teens prefer iPhone vs. 50% of adults"). | Association does not imply causation — a lurking variable may be responsible for the pattern. |
| Useful for quick exploration before running formal statistical tests. | Cannot handle numerical (quantitative) variables without first converting them into categories. |
Advantages and drawbacks of using conditional relative frequencies
WATCH OUT FOR COMMON MISTAKES
SECTION 8
Connection to Advanced Statistical Concepts
The conditional relative frequency analysis you learn here is an informal, visual approach. In AP Statistics and college-level courses, you'll encounter formal tools that build directly on the same ideas.
| This Course | Advanced Statistics |
|---|---|
| Compare conditional relative frequencies informally ("do the percentages look different?") | Use the chi-square (χ²) test of independence to determine whether observed differences are statistically significant. |
| Two-way tables with two variables | Multi-dimensional contingency tables and log-linear models for three or more variables. |
| Conclude "associated" or "independent" based on visual comparison | Calculate p-values and confidence intervals to quantify the evidence for association. |
| Conditional relative frequency as a proportion | Conditional probability P(A | B), Bayes' theorem, and probabilistic modeling. |
From informal analysis to formal statistical inference
What you're really learning here is the conceptual foundation of conditional probability. When you compute 48 ÷ 160 and interpret it as "the probability of preferring Android given that the person is under 18," you're using the same logic behind P(A | B) = P(A ∩ B) ÷ P(B). Mastering conditional relative frequencies now will make the transition to formal probability and inference much smoother.
SECTION 9
Practice Problems
Use the following two-way table for Problems 1–5. A school collected data from 300 students about their participation in extracurricular activities and their grade in English class.
| A or B in English | C or Below | Total | |
|---|---|---|---|
| In Extracurriculars | 108 | 72 | 180 |
| Not in Extracurriculars | 42 | 78 | 120 |
| Total | 150 | 150 | 300 |
Extracurricular participation vs. English grade (n = 300)
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A two-way frequency table organizes data for two categorical variables. Each interior cell holds a joint frequency, while the row and column totals are marginal frequencies. To find a conditional relative frequency, divide a cell count by the total of the row or column you are conditioning on — this tells you the proportion within a specific subgroup.
To assess whether two variables are associated, compare the conditional relative frequencies across groups. If they are roughly equal, the variables appear independent; if they differ noticeably, the variables appear associated. Always remember that association does not imply causation — lurking variables or study design limitations may explain the observed pattern. This informal comparison lays the groundwork for formal tests of independence you will encounter in future statistics courses.