01 / 21

Analyzing
Two-Way Tables

Learn to read, interpret, and draw evidence-based conclusions from two-way frequency tables using joint, marginal, and conditional frequencies.

Math 2

What Is a Two-Way Table?

A two-way table (also called a contingency table) displays data for two categorical variables at the same time. One variable defines the rows and the other defines the columns, so every cell shows how many observations fall into that combination.

Variable 1 Category A Category B Group X Group Y Joint freq. Joint freq. Joint freq. Joint freq. Row variable Column variable

Key Vocabulary

Joint Frequency
The count in an interior cell: the number of observations that belong to a specific row and column category.
Marginal Frequency
The row total or column total found at the edges (margins) of the table: the sum of a full row or column.
Conditional Frequency
A joint frequency divided by its row or column total. It answers: "Given this group, what fraction...?"

Seeing It in Action

A school surveyed 200 students about their preferred sport and their grade level. Here is the two-way table:

Basketball Soccer Tennis Total
9th & 10th 35 40 15 90
11th & 12th 45 30 35 110
Total 80 70 50 200

Joint vs. Marginal Frequencies

Basketball Soccer Tennis Total
9th & 10th 35 40 15 90
11th & 12th 45 30 35 110
Total 80 70 50 200
Joint (interior)
Cells like 35, 40, 15: counts for a specific row-column pair.
Marginal (edges)
Row totals like 90 and column totals like 80: sums along one dimension.

Relative Frequencies

Divide each frequency by the grand total to convert counts into proportions (or percentages). This lets you compare groups of different sizes fairly.

Conditional Relative Frequency

A conditional relative frequency restricts the calculation to one row or one column. You divide a joint frequency by its row (or column) total instead of the grand total.

Three Types of Relative Frequency

Type Formula Denominator Example
Joint \(\frac{\text{cell}}{\text{grand total}}\) Grand total \(\frac{35}{200}\)
Marginal \(\frac{\text{row or col total}}{\text{grand total}}\) Grand total \(\frac{80}{200}\)
Conditional \(\frac{\text{cell}}{\text{row or col total}}\) Row or col total \(\frac{45}{110}\)

Step-by-Step Approach

1
Read the question carefully. Identify which two categorical variables are involved and what you are asked to find.
2
Locate the right cell(s). Find the row and column described in the question. The intersection is the joint frequency.
3
Identify the denominator. "Of all students" means grand total. "Given group X" means the marginal total for group X.
4
Calculate and interpret. Divide, convert to a percentage if needed, and write a sentence answering the question in context.
5
Justify your conclusion. Reference the specific numbers from the table and explain how they support your answer.

Example 1: Joint Frequency

Question: What fraction of all students are 9th/10th graders who prefer soccer?

Basketball Soccer Tennis Total
9th & 10th 35 40 15 90
11th & 12th 45 30 35 110
Total 80 70 50 200

Example 2: Conditional Frequency

Question: Among students who prefer tennis, what percentage are in 11th/12th grade?

Basketball Soccer Tennis Total
9th & 10th 35 40 15 90
11th & 12th 45 30 35 110
Total 80 70 50 200

Example 3: Comparing Conditionals

Question: Is there evidence of an association between grade level and sport preference? Compare basketball preference across the two grade groups.

9th & 10th
\(\dfrac{35}{90} \approx 38.9\%\) prefer basketball
11th & 12th
\(\dfrac{45}{110} \approx 40.9\%\) prefer basketball

Association vs. Independence

Association Independence
Definition Knowing one variable changes the likelihood of the other Knowing one variable does not change the likelihood of the other
Conditionals Conditional frequencies differ across rows/columns Conditional frequencies are nearly equal
Example Tennis: \(16.7\%\) vs. \(31.8\%\) Basketball: \(38.9\%\) vs. \(40.9\%\)
Conclusion Grade level is associated with tennis preference Grade level is not associated with basketball preference

Justifying with Evidence

On tests and assignments, you must cite specific numbers from the table to support your conclusion. A strong justification has three parts:

1
State the claim: "There is (or is not) evidence of an association between X and Y."
2
Provide numerical evidence: "The conditional frequency of tennis for 9th/10th graders is \(\frac{15}{90} \approx 16.7\%\), while for 11th/12th graders it is \(\frac{35}{110} \approx 31.8\%\)."
3
Interpret in context: "Because upper-classmen prefer tennis at nearly twice the rate, there is evidence that grade level and tennis preference are associated."

Common Mistakes

Wrong Denominator
Using the grand total when the question says "given" or "among". A conditional question requires a marginal total as the denominator.
Comparing Counts
Saying "more 11th/12th graders like tennis (\(35 > 15\))" without accounting for different group sizes. Use percentages to compare fairly.
Association = Causation
Concluding that one variable causes the other. Two-way tables show association, not cause-and-effect.

Quick Reference Summary

Question Asks Numerator Denominator Type
"What fraction of all students...?" Joint cell Grand total Joint relative
"What fraction are in group X?" Row/col total Grand total Marginal relative
"Given group X, what fraction...?" Joint cell Row/col total Conditional relative
"Is there an association?" Compare conditional frequencies across rows or columns Association test

Question 1 of 5

What is the joint relative frequency of apartment dwellers who own a cat?

Question 2 of 5

Given that a customer lives in a house, what is the probability they own a dog?

Question 3 of 5

Is there evidence of an association between housing type and pet type? Which comparison best supports the answer?

Question 4 of 5

What is the marginal relative frequency of students who passed?

Question 5 of 5

A student claims: "Flashcards cause students to pass because \(70\%\) of flashcard users passed." Which response best evaluates this claim?