Pre-AlgebraData in Two Variables8.SP.A.4

Two-Way Tables

Use row and column totals to look for association in categorical data.

Not started Jump to practice

Some data are categories, not numbers: yes or no, 7th or 8th grade. A two-way table counts how many fall into each pair of categories. Reading it uses the same thinking as compound probability.

Why it works

Counts can mislead when the groups have different sizes. If 30 of 50 seventh graders and 30 of 100 eighth graders play a sport, the counts match but the rates are very different: 60% and 30%. Comparing relative frequencies, the share within each group, puts the groups on equal footing.

Key idea

Add row and column totals. To compare groups, divide each count by its row total (or column total) to get relative frequencies. If the groups’ percents differ a lot, there is an association between the two variables.
A survey of 90 students.
Plays a sportDoes notTotal
7th grade302050
8th grade122840
Total424890

Worked examples

Worked example: Use the totals

In the table, how many students in all play a sport, and how many 8th graders were surveyed?
  1. The column total for “Plays a sport” is $30 + 12 = 42$.
  2. The row total for 8th grade is $12 + 28 = 40$.

Answer: 42 and 40

Worked example: Relative frequencies

What percent of 7th graders play a sport? Of 8th graders?
  1. 7th grade: $\frac{30}{50} = 60\%$.
  2. 8th grade: $\frac{12}{40} = 30\%$.

Answer: 60% and 30%

Worked example: Is there an association?

Is grade level associated with playing a sport in this survey?
  1. 60% of 7th graders play, but only 30% of 8th graders.
  2. The percents are far apart, so yes: in this group, 7th graders were more likely to play a sport.

Answer: Yes

Common mistake

Comparing counts instead of percents. “30 seventh graders play but only 12 eighth graders” sounds convincing, but the groups have different sizes. Always divide by the group total before comparing.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Introductory Statistics 2e, Chapter 3: Probability Topics (contingency tables)
  • Common Core State Standards for Mathematics, Grade 8, 8.SP.A.4 (patterns of association in two-way tables)
@teddyrookbook GitHub