Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Statistics · Unit 1 · Step-Through Animation

Tabular Representation and Summary Statistics for One Categorical Variable

Twice as Many Walkers, Half as Many Walkers

You'll learnto build a frequency and a relative frequency table, and to see why only the second one can compare two groups of different sizes.

Northgate has 300 students who walk to school. Riverside has 150. Twice as many walkers at Northgate — and Riverside is the school where walking is common, at 30 percent against 15. Both sentences are true, because Northgate has four times as many students. This animation builds the frequency table for both schools, divides every count by its own total, and reads the two tables side by side: two rows where the counts and the shares disagree outright, one row where they agree, and one row with four times the count at exactly the same share. Then it divides by the wrong total and watches the wrong answer come back. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · FREQUENCY TABLE · RELATIVE FREQUENCY · UNEQUAL GROUPS · THE DENOMINATOR · v2

300 walkers against 150, and 15% against 30% — one table, two answers.
Before you start
What you're looking at
Two schools of very different sizes — Northgate 2,000 students, Riverside 500 — and how each school's students get to school.
The question
Which school walks more? The counts and the percentages give different answers, and only one of them answers the question asked.
Step 1 / 12

Read all 12 steps as text
Step 1

Two schools, and how everyone gets there

Two schools were asked how their students get to school. A frequency table counts the observational units into the categories of one categorical variable — here the variable is commute mode and the categories are walk, bike, bus and car.

Two rules make it a table rather than a list. Every student lands in exactly one category, and every student lands in some category. That is why each column adds up to its own school's size, and the total row is the check.

Step 2

The bigger school has the bigger count

Now look at the two schools together. Northgate has 2,000 students and Riverside 500, which is four times the size.

Every single Northgate count is larger than its Riverside neighbor, and that would still be true no matter what the students actually did. If the bigger school always wins, the counts cannot be telling you anything about the schools.

Step 3

Divide every count by its own school total

The relative frequency of a category is its count divided by the total number of units — the fraction of the group that falls in that category.

\(\text{relative frequency} = \dfrac{\text{count in the category}}{\text{total in the group}}\)

The words its own are doing the work. Northgate's 300 walkers go over Northgate's 2000; Riverside's 150 go over Riverside's 500. Two different denominators, because they are shares of two different wholes — and each column of shares now adds to 100%, which is the check on your own table.

Step 4

Twice the walkers, half the walking rate

Read the walk row both ways and the two readings point in opposite directions.

By count: Northgate 300, Riverside 150 — Northgate has twice as many walkers.
By share: Northgate 15.0%, Riverside 30.0% — Riverside walks twice as much.

Neither number is wrong. They answer different questions — how many and how common — and with one school four times the size of the other, those come apart. The bike row does the same thing: 120 against 60 by count, 6.0% against 12.0% by share.

Step 5

The claim that does not follow

So the sentence that fails is "more students walk at Northgate, so Northgate walks more". The first clause is a fact. The second does not follow from it.

What follows from a raw count in a bigger group is, mostly, that the group is bigger. Every count in the Northgate column is inflated by the same four times, and none of that inflation is about walking.

Step 6

Four times the count, the very same share

The car row is the cleanest thing in the table. Northgate has 400 car passengers and Riverside 100 — four times as many, exactly the ratio of the two schools.

\(\dfrac{400}{2000} = 0.20 \qquad \dfrac{100}{500} = 0.20\)

Identical shares. On this variable the two schools behave the same way, and the only reason the counts differ at all is that one school is bigger. That is what a relative frequency removes: the part of a count that is just group size.

Step 7

The bus row does not reverse

Dividing is not a reflex that flips every answer. The bus row is 1180 against 190 by count and 59.0% against 38.0% by share — Northgate is ahead either way.

One data set, four different outcomes: two rows reverse, one agrees, one ties. If every row flipped, "flip the answer" would be the lesson, and that would be a new wrong rule rather than no wrong rule.

Step 8

Draw the raw counts as bars

Put the raw counts in a grouped bar chart and every blue bar towers over its pink neighbor. It looks like an answer.

It is really a picture of enrolment. Northgate is four times the size, so its bars come out about four times as tall whatever its students do — and the tallest thing on the chart is the bus row simply because 1180 students is the biggest number in the table.

Step 9

Rescale to shares and two pairs swap

Now rescale each bar to a share of its own school. Nothing about the data changed — every count is exactly where it was, only the denominator under each bar moved.

Two of the four pairs swap over, and the chart starts answering the question that was asked. Both charts are legitimate displays of a categorical variable, with gaps and no order implied; what differs is what the height means, and only one of the two heights can be compared between schools.

Step 10

Divide everybody by the combined total

There is a way to do the division and still get the old answer, and it is common enough to be worth running.

Put both schools together — 2500 students — and divide every count by that. It feels even-handed: one denominator, applied to everyone, no school getting special treatment.

Step 11

One denominator for all cannot reorder

Northgate's walkers are now 300 / 2500 = 12.0% and Riverside's are 150 / 2500 = 6.0%, and Northgate is back on top.

Of course it is. Dividing every count by the same number scales the whole table by a constant, so the biggest count is still the biggest share. The wrong denominator does not blur the comparison; it restores the wrong answer wearing a percent sign.

A share is a share of a group. If the denominator is not the group you are making the claim about, the number is not that group's share of anything.

Step 12

A share is always a share of a group

The exam wants a claim a reader can verify without your table, and that takes three pieces: the count, the share, and the group the share is of.

"150 of Riverside's 500 students walk to school — 30.0%."

Drop the group and you have "30.0% walk", which is a share of nobody in particular. Drop the share and you have the claim beat 5 struck through. Drop the count and a reader cannot tell whether it came from 500 students or from ten.

One more habit: the largest category is not a majority. Walking is Riverside's biggest single mode at 30.0%, and everything else is 70.0%.