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

Variables

A Column Full of Digits Is Not Yet a Quantity

You'll learnthe test that decides a variable's type — whether arithmetic on its values means anything — and what goes wrong downstream when the digits are allowed to decide instead.

Ten students, one row each. Two of those columns hold nothing but digits — jersey number and height in centimeters — and a spreadsheet will happily average either one. This animation averages both, then applies the test that tells them apart: change the labels and see which summary survives. The same ten players are renumbered 1 to 10 and the mean jersey number falls from 16.5 to 5.5 with nothing about the team altered. The same ten heights are converted to inches and the mean transforms by exactly the rule every value did. Then five real zip codes are averaged, and the answer is a place none of the five students is anywhere near. One of those columns was measuring something; the other was wearing a costume. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · OBSERVATIONAL UNIT · THE ARITHMETIC TEST · DISCRETE vs CONTINUOUS · WHICH DISPLAY · v2

Renumber the same ten players and the mean jersey falls 16.5 to 5.5.
Before you start
What you're looking at
Ten students, one row each. Every row is one person; every column is one thing recorded about them.
The question
Jersey number and height are both digits and both average fine. So what makes only one of them a quantity?
Step 1 / 12

Read all 12 steps as text
Step 1

Ten students, one row each

Ten students, and the table fills in one at a time. Each row is an observational unit — who was measured. Each column is a variable — what was recorded about them.

Every column is grey for now. Which of them are really quantities is the question this animation exists to answer, and being shown the answer first would spoil the test.

Step 2

Each row is a unit, each column a variable

The two words do different jobs and are easy to swap. The unit is who was measured; the variable is what was recorded about them.

A single recorded entry — Chen's 158 — is a datum, and the whole table together is a data set. Four variables are recorded here, and three of the four are written entirely in digits.

Step 3

Three of the four columns are only digits

The rule most students actually use is: digits means quantitative, words means categorical. Apply it here and three columns are quantitative, one is categorical, and you are done in four seconds.

Eye color is the only column nobody would try to average. Hold on to why — the reason is not that it is spelled with letters.

Step 4

Every digit column averages, and that settles nothing

So compute those three means. Mean jersey number 16.5. Mean height 169.1 cm. Mean siblings 1.1. Every one computed without complaint, because a spreadsheet has no idea what the digits stand for.

That is the whole problem with the digit rule: the arithmetic never contradicts it. The mean jersey number is a real number that a real calculation produced, and it is not a fact about anything.

Step 5

The team reissues its jersey numbers

Here is a test with teeth. Relabel, and watch what happens to the summary.

The team reissues jerseys — numbers 1 to 10, in alphabetical order. This is a perfectly ordinary thing for a team to do, it is one-to-one, and it carries exactly the same information: every player still has a unique number and you can still say which is which. Nothing whatsoever about the team has changed.

Step 6

Nothing changed, and the mean moved anyway

The mean jersey number falls from 16.5 to 5.5, and not one thing about the team is different.

A summary that moves when nothing about the subject moves was never a summary of the subject. The jersey column was a set of labels spelled in digits all along.

Step 7

Now do the same to the heights

Convert every height to inches. The mean goes from 169.1 cm to 66.57 in — and it gets there by the rule every value took.

Divide the mean by 2.54, or convert all ten values and then average them: both give the same answer. The summary traveled with the values, because it is a summary of the values. The jersey mean did not, because it never was.

Step 8

Five real students, five real places

Zip codes are the classic case, because they look more numeric than almost anything. Here are five real ones, each beside the city it belongs to.

The leading digit of a US zip is a region, so each of these five can be placed on a map: the west coast, Illinois, the southeast, New England, the west coast again.

Step 9

A zip code is a label written in digits

\(\dfrac{90210 + 60614 + 33109 + 02139 + 98101}{5} = 56834.6\)

These five students live in regions 9, 6, 3, 0 and 9. Their "average" is in region 5, the upper midwest. Nobody is anywhere near it, and it is not even a whole number, which no zip code has ever been.

There is a second tell, visible before any arithmetic. 02139 stored as a number is 2139. The leading zero is simply gone. A quantity cannot lose information by being stored as a quantity; a label can, because its digits were never a magnitude.

Step 10

Counts repeat and stack; measurements do not

Two of these columns passed the test, and they are still not the same kind of thing.

Siblings is discrete: its possible values are separated, here the whole numbers. Ten students produce only four distinct values, so the dots stack. Nobody has 1.4 siblings, and no finer instrument would find anyone who does.

Height is continuous: its possible values fill a range. All ten are distinct, and they are whole centimeters only because the ruler stopped there — a better one would give 171.4, then 171.38.

Step 11

Redraw the bars in any order you like

The type is not bookkeeping. It picks the display, and the display makes a claim.

Eye color is nominal — categories with no order at all. So its bar chart can be drawn in any order you like. Watch it redraw from the order the data arrived in to rarest first. Both are correct and neither is more correct, and nothing about the data was lost in the move.

The bars also carry gaps, and the gaps mean something: there is no value between brown and blue for anything to sit at. A histogram's bins touch, because there is always a height between 165 and 170. Reorder a histogram's bins and you have destroyed the variable underneath them.

Step 12

Settle the type, then name the summary

A variable's type is decided by one question, and it is never about the characters in the column: would arithmetic on these values mean anything? Jersey number and zip code fail it visibly; height and siblings pass.

Only then do the scope words apply. Mean height for every student in the school is a parameter. Mean height for these ten is a statistic — the same summary of the same variable, computed for the sample. Nothing about the calculation says which it is; the scope does.

There is no parameter of eye color that is a mean, because eye color has no mean. Choose the wrong type and you do not get a wrong number; you get a summary that does not exist.