Math 1 • Statistics & Probability

Relative Frequencies — I can compute relative frequencies from a two-way table and interpret them in context.

Turn raw counts into meaningful proportions that reveal hidden patterns in categorical data.

Math 1 emblem with geometric shapes, a calculator, and division.
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

Long before spreadsheets and computers, people needed ways to organize and compare information about groups. Merchants tracked which products sold best in different regions, doctors recorded the outcomes of treatments for different populations, and governments collected census data about their citizens. The challenge was always the same: when you have raw counts of things, how do you make fair comparisons between groups of different sizes? A city with 500 flu cases sounds worse than a town with 50 cases—but what if the city has a million residents and the town only has 200?

1662 • John Graunt's Life Tables

English statistician John Graunt published Natural and Political Observations on the Bills of Mortality, one of the first works to convert raw death counts into proportions, comparing causes of death relative to total deaths.

1785 • Condorcet & Contingency Tables

French mathematician the Marquis de Condorcet used cross-classified tables to analyze voting patterns, organizing data by two categorical variables simultaneously—an early form of the two-way table.

1900 • Karl Pearson's Chi-Square Test

Karl Pearson formalized methods for analyzing two-way tables, developing the chi-square test that relies on comparing observed relative frequencies to expected relative frequencies.

Today • Data Science & Machine Learning

Relative frequencies from two-way tables are foundational in modern data analysis, from medical research to social media analytics. Every time an app shows you a percentage breakdown, relative frequencies are at work.

The central question that relative frequencies answer is straightforward: what proportion of a total does each category represent? When we combine this idea with a two-way table—which organizes data by two categorical variables at once—we gain a powerful tool for spotting relationships and making meaningful comparisons in real-world data.

SECTION 2

Core Principles & Definitions

Before diving into calculations, let's nail down the vocabulary. A two-way table (also called a contingency table) displays data classified by two categorical variables. The rows represent one variable and the columns represent the other. Each cell shows the count (frequency) for that combination of categories. The totals along the right edge and bottom edge are called marginal frequencies, and the number in the bottom-right corner is the grand total.

1

Joint Relative Frequency

The ratio of a cell's count to the grand total. It tells you the proportion of all observations that fall into that specific combination of categories.
2

Marginal Relative Frequency

The ratio of a row total or column total to the grand total. It describes the overall distribution of one variable, ignoring the other variable entirely.
3

Conditional Relative Frequency

The ratio of a cell's count to its row total or column total. It answers "given that we're only looking at one category, what proportion falls into the other category?"
4

Relative vs. Absolute Frequency

An absolute frequency is the raw count. A relative frequency is that count divided by an appropriate total, expressed as a decimal, fraction, or percentage. Relative frequencies always sum to 1 (or 100%).
✦

KEY TAKEAWAY

Think of relative frequency like converting currency. If someone tells you a shirt costs 2,000 yen, that number alone doesn't help you decide if it's cheap or expensive—you need to convert it relative to something you understand (like dollars). Similarly, a raw count of 45 students doesn't mean much until you express it relative to the total. Relative frequency is your "conversion rate" from raw counts to meaningful proportions.

SECTION 3

Visual Explanation

Let's look at a concrete example. Suppose a school surveys 200 students about their preferred study method (alone or in a group) and whether they are in STEM or Humanities classes. The diagram below shows how a two-way table organizes this data, along with all three types of relative frequency.

Two-Way Table: Study Preference vs. Subject AreaSTEMHumanitiesRow TotalStudy AloneStudy in GroupColumn Total7050120305080100100200Joint: 70/200 = 0.35Joint: 50/200 = 0.25Joint: 30/200 = 0.15Joint: 50/200 = 0.25Marginal: 120/200 = 0.60Marginal: 80/200 = 0.40Marginal: 100/200 = 0.50Marginal: 100/200 = 0.50Joint RF = cell ÷ grand totalMarginal RF = row/col total ÷ grand totalConditional Example (given Study Alone):P(STEM | Study Alone) = 70 / 120 ≈ 0.583 P(Humanities | Study Alone) = 50 / 120 ≈ 0.417
This two-way table shows raw counts for 200 students classified by study preference and subject area. Joint relative frequencies divide each cell by the grand total (200). Marginal relative frequencies divide row or column totals by 200. Conditional relative frequencies divide a cell by its row or column total.

Notice how the same cell value of 70 produces different relative frequencies depending on which total you divide by. Dividing 70 by the grand total of 200 gives a joint relative frequency of 0.35, meaning 35% of all surveyed students are STEM students who study alone. Dividing 70 by the row total of 120 gives a conditional relative frequency of about 0.583, meaning roughly 58.3% of students who prefer studying alone are in STEM. The denominator you choose changes the story the number tells.

SECTION 4

Mathematical Framework

Each type of relative frequency follows a simple formula. The key is choosing the correct denominator. Let's define our notation: each cell count is represented by f, row totals and column totals are marginal frequencies, and N represents the grand total of all observations.

JOINT RELATIVE FREQUENCY

JointRF=f(cell)÷NJoint RF = f(cell) ÷ N

Where f(cell) is the count in one specific cell and N is the grand total. This tells you the proportion of all observations that belong to a particular combination of categories.

MARGINAL RELATIVE FREQUENCY

MarginalRF=f(roworcolumntotal)÷NMarginal RF = f(row or column total) ÷ N

Divide a row total or column total by N. This describes the overall distribution of one variable while ignoring the other. All marginal relative frequencies for one variable sum to 1.

CONDITIONAL RELATIVE FREQUENCY

ConditionalRF=f(cell)÷f(rowtotal)orf(cell)÷f(columntotal)Conditional RF = f(cell) ÷ f(row total) or f(cell) ÷ f(column total)

Divide a cell count by the total of the row (or column) it belongs to. This answers a "given that" question: given that a person is in a specific category of one variable, what proportion falls into a specific category of the other variable?

⚠

Which Denominator?

The most common mistake students make is using the wrong denominator. Remember: joint → grand total, marginal → grand total, conditional → row or column total. If the question says "of all students," use the grand total. If it says "of students who…" or "given that…," use a row or column total.

SECTION 5

Types of Relative Frequency & Interpretation

Understanding when to use each type of relative frequency is just as important as computing it. The diagram below illustrates how data flows from the original table to each type of relative frequency, and the kind of question each one answers.

Flowchart: Choosing the Right Relative FrequencyStart: What's Your Question?JOINT"What % of ALL data is…?"MARGINAL"What % overall is…?"CONDITIONAL"Given that…, what %…?"Denominator:Grand Total (N)Denominator:Grand Total (N)Denominator:Row or Column TotalExample"What % of all students areSTEM students who study alone?"70 ÷ 200 = 35%Example"What % of all studentsprefer studying alone?"120 ÷ 200 = 60%Example"Of students who study alone,what % are in STEM?"70 ÷ 120 ≈ 58.3%
This flowchart guides you from a question's wording to the correct type of relative frequency. The key difference is always the denominator: the grand total for joint and marginal, or a row/column total for conditional.
TypeQuestion PatternDenominatorInterpretation
Joint"What percentage of all students are…?"Grand total (N)Proportion of entire data set in one specific cell
Marginal"What percentage of all students prefer…?"Grand total (N)Overall distribution of one variable, ignoring the other
Conditional"Of those who…, what percentage…?" or "Given that…"Row or column totalProportion within a specific sub-group

Summary of relative frequency types and their interpretations

SECTION 6

Worked Example

A school cafeteria surveyed 250 students about their lunch choice (hot lunch or packed lunch) and their grade level (underclassmen: grades 9–10, or upperclassmen: grades 11–12). The results are shown below.

UnderclassmenUpperclassmenTotal
Hot Lunch9060150
Packed Lunch4060100
Total130120250

Cafeteria survey data

Finding All Three Types of Relative Frequency

  1. 1

    Step 1 — Identify the Grand Total

    The grand total is found in the bottom-right corner of the table: N = 250. This is the denominator for joint and marginal relative frequencies.
    N = 250
  2. 2

    Step 2 — Compute a Joint Relative Frequency

    Question: "What proportion of all students are underclassmen who eat hot lunch?" The cell count for (Hot Lunch, Underclassmen) is 90. Divide by the grand total: 90 ÷ 250 = 0.36. This means 36% of all surveyed students are underclassmen who eat hot lunch.
    Joint RF = 90 ÷ 250 = 0.36 (36%)
  3. 3

    Step 3 — Compute a Marginal Relative Frequency

    Question: "What proportion of all students eat packed lunch?" The row total for Packed Lunch is 100. Divide by the grand total: 100 ÷ 250 = 0.40. So 40% of all students surveyed bring a packed lunch.
    Marginal RF = 100 ÷ 250 = 0.40 (40%)
  4. 4

    Step 4 — Compute a Conditional Relative Frequency

    Question: "Of upperclassmen, what proportion eat packed lunch?" Now we restrict our view to only upperclassmen. The column total for upperclassmen is 120. The cell count for (Packed Lunch, Upperclassmen) is 60. Divide: 60 ÷ 120 = 0.50. Among upperclassmen specifically, 50% bring a packed lunch.
    Conditional RF = 60 ÷ 120 = 0.50 (50%)
  5. 5

    Step 5 — Interpret in Context

    Compare the conditional relative frequencies: among underclassmen, the proportion who eat packed lunch is 40 ÷ 130 ≈ 0.308 (30.8%), while among upperclassmen it's 50%. This suggests that upperclassmen are more likely to bring a packed lunch than underclassmen. Such a comparison is exactly why conditional relative frequencies are so useful—they let us compare groups of different sizes on an equal footing.
    Upperclassmen (50%) are more likely to bring packed lunch than underclassmen (30.8%)

SECTION 7

Strengths & Common Pitfalls

StrengthsPitfalls
Allows fair comparisons between groups of unequal sizesUsing the wrong denominator (e.g., grand total when the question asks for a conditional)
Converts raw counts into intuitive percentages everyone can understandConfusing correlation with causation — a pattern in relative frequencies does not prove one variable causes the other
Reveals patterns and potential associations between two categorical variablesIgnoring small sample sizes — a 100% rate based on 2 observations is very misleading
All relative frequencies in a complete table sum to 1.00, providing a built-in accuracy checkRounding errors — when you round individual cells, they may not sum to exactly 100%

Key strengths and common pitfalls when working with relative frequencies

⚡

WATCH OUT FOR SIMPSON'S PARADOX

When you combine data from multiple groups, the overall trend can sometimes reverse. For example, a treatment might appear more effective overall but less effective within every subgroup. This is called Simpson's Paradox, and it reminds us to always examine conditional relative frequencies alongside joint ones. Think of it like averaging bowling scores: you might beat your friend overall because you bowled more games on easy lanes, even though your friend beat you on every lane.

SECTION 8

Connection to Probability & Advanced Statistics

Relative frequencies are actually the bridge between data tables and probability. When you compute a relative frequency, you're estimating a probability based on observed data. The table below shows how the concepts you've learned map directly to probability notation you'll encounter in more advanced courses.

This LessonProbability NotationReads As…
Joint relative frequency of A and BP(A ∩ B) or P(A and B)The probability that both A and B occur
Marginal relative frequency of AP(A)The probability that A occurs (regardless of B)
Conditional relative frequency of A given BP(A | B)The probability of A, given that B has occurred
All joint RFs sum to 1ΣP = 1Total probability is always 1

How relative frequencies connect to formal probability

In future courses, you'll use these ideas to determine whether two variables are independent. Two variables are independent if P(A | B) = P(A)—that is, knowing B doesn't change the probability of A. You'll also encounter the chi-square test, which formally tests whether the differences between observed and expected relative frequencies are statistically significant. Everything starts with the skills you're building right now.

SECTION 9

Practice Problems

Use the following two-way table for all five problems. A fitness center surveyed 300 members about their preferred workout type and the time of day they typically exercise.

MorningEveningTotal
Cardio9060150
Weights45105150
Total135165300

Fitness center survey data (300 members)

Question 1: CONCEPTUAL

Explain in your own words why we use relative frequencies instead of just comparing raw counts. Give a real-life situation where raw counts alone would be misleading.
Show answer
Raw counts can be misleading when the groups being compared have different sizes. For example, if School A has 200 students pass a test and School B has 150 pass, School A looks better. But if School A tested 1,000 students (20% pass rate) and School B tested 200 students (75% pass rate), School B is actually far more successful. Relative frequencies—pass count divided by total tested—give us a fair, proportional comparison. Without converting to relative frequencies, larger groups will almost always have bigger raw counts, masking the true pattern.

Question 2: BASIC CALCULATION

What is the joint relative frequency of members who do cardio in the morning? Express your answer as a decimal and as a percentage.
Show answer
The joint relative frequency is found by dividing the cell count by the grand total. The cell for (Cardio, Morning) is 90, and the grand total is 300. So the joint relative frequency = 90 ÷ 300 = 0.30, or 30%. This means that 30% of all surveyed fitness center members prefer doing cardio in the morning. Notice that the denominator is the grand total (300) because we are looking at the proportion of all members, not just a subgroup.

Question 3: INTERMEDIATE

Of the members who exercise in the evening, what proportion prefer weights? Identify which type of relative frequency this is and show your work.
Show answer
This is a conditional relative frequency because the question restricts us to only evening exercisers ("of the members who exercise in the evening"). The column total for Evening is 165. The cell count for (Weights, Evening) is 105. The conditional relative frequency = 105 ÷ 165 ≈ 0.636, or about 63.6%. This tells us that among evening exercisers specifically, nearly two-thirds prefer weights. Note how different this is from the joint relative frequency of 105 ÷ 300 = 0.35 (35%), which describes the proportion of all members.

Question 4: APPLIED

The fitness center manager wants to decide whether to add more morning weightlifting classes. She reasons: "Since cardio and weights each have 150 members total, they're equally popular, so no changes are needed." Use conditional relative frequencies to explain why her reasoning is flawed, and what the data actually suggests about morning demand.
Show answer
The manager is looking at marginal frequencies, which hide important differences between time slots. Let's compute the conditional relative frequencies for morning exercisers. Among morning exercisers (total = 135): the proportion doing cardio = 90 ÷ 135 ≈ 0.667 (66.7%) and the proportion doing weights = 45 ÷ 135 ≈ 0.333 (33.3%). This reveals that morning exercisers heavily favor cardio over weights—the split is roughly 2:1. Meanwhile, among evening exercisers (total = 165): cardio = 60 ÷ 165 ≈ 0.364 (36.4%) and weights = 105 ÷ 165 ≈ 0.636 (63.6%). Evening exercisers strongly prefer weights. The data suggests there may be unmet demand for morning weight classes, since some members might attend in the morning if more weight-focused classes were offered.

Question 5: CRITICAL THINKING

If workout preference and time of day were independent (no association), what would the joint relative frequency of (Cardio, Morning) be? Compare this expected value to the observed joint relative frequency and discuss what the difference suggests about the relationship between the two variables.
Show answer
If the variables were independent, the joint relative frequency would equal the product of the two marginal relative frequencies. The marginal RF for Cardio = 150 ÷ 300 = 0.50, and the marginal RF for Morning = 135 ÷ 300 = 0.45. If independent: expected joint RF = 0.50 × 0.45 = 0.225, or 22.5%. The observed joint RF is 90 ÷ 300 = 0.30, or 30%. The observed value (30%) is noticeably higher than the expected value under independence (22.5%). This gap suggests that workout preference and time of day are not independent—there appears to be a positive association between doing cardio and exercising in the morning. In a more advanced statistics course, you would use a chi-square test to determine whether this difference is statistically significant or could have arisen by chance.

SUMMARY

Lesson Summary

Summary

A two-way table organizes data by two categorical variables, and converting its raw counts into relative frequencies unlocks powerful comparisons. A joint relative frequency divides a cell count by the grand total and tells you the proportion of all observations in that cell. A marginal relative frequency divides a row or column total by the grand total and describes the overall distribution of one variable. A conditional relative frequency divides a cell count by its row or column total and answers "given that" questions about a specific subgroup.

The critical skill is choosing the correct denominator based on what the question asks. Use the grand total for joint and marginal frequencies; use a row or column total for conditional frequencies. Relative frequencies connect directly to probability and provide the foundation for testing whether two variables are independent. Always interpret your results in context—a number like 0.35 means nothing until you say "35% of all surveyed students prefer…"

Varsity Tutors • Math 1 • Relative Frequencies — I can compute relative frequencies from a two-way table and interpret them in context.