University of Free Knowledge
QA 276.12 · fol. 1

Four Kinds of Data

A variable is either categorical or quantitative, and its level of measurement decides which summaries are even allowed on it. · 11 min

Statistics begins before any calculation, with a plain question: what did you write down? A variable is a characteristic you record for each subject in a study — a person's height, a city's name, a film's star rating. Every variable falls into one of two families. Some record a category the subject belongs to; some record a quantity you could count or measure. The distinction sounds trivial. It is not: it silently decides which summaries you are allowed to compute later. Averaging is honest for one family and nonsense for the other.

Guess before you learn

A spreadsheet lists, for each player: jersey number, height in centimetres, and team colour. For which one does computing an average make honest sense?

THE DEPTH DIAL — the same idea, younger or deeper
9–12

9–12

Statisticians grade a variable on four levels of measurement, each permitting more arithmetic than the last. Nominal: unordered labels — species, ZIP code, colour. Ordinal: labels with a rank but undefined spacing — letter grades, ratings from poor to excellent. Interval: numbers with equal gaps but an arbitrary zero — Celsius, calendar year. Ratio: numbers with a true zero, so ratios mean something — height, weight, count, income.

The level is not decoration; it is a permission slip. Nominal data admits only counts and a mode. Ordinal adds a median. Interval permits a mean and a standard deviation but not ratios — 20°C is not twice as warm as 10°C, because zero Celsius is a convention, not an absence of heat. Only ratio data lets you say one value is three times another. Read the level first; it names which summaries are legal.

level of measurement

How much arithmetic a variable honestly permits, on a ladder of four rungs: nominal (labels), ordinal (ranked labels), interval (equal gaps, no true zero), ratio (a true zero, so ratios mean something).

Nominal — no order (colour)Ordinal — ranked (size S, M, L)Categorical — a groupDiscrete — counted (siblings)Continuous — measured (height)Quantitative — an amountVariable
PLATE I Every variable lands in one family, then one branch — and the branch fixes what you may compute.
Retrieval Gate — answer before you continue 0 / 4

1.A survey records each respondent's blood type (A, B, AB, O). What kind of variable is blood type?

2.Match each variable to its level of measurement.

House number on a street
Film rating, 1 to 5 stars
Temperature in °C
Weight in kilograms

3.Which of these is an ordinal variable?

4.A coach reports that the team's average jersey number is 7.4. In one sentence, say what is wrong with that statistic.

Naming the level is not bookkeeping for its own sake. It fixes which summary of a whole column is even defined. A summary you are not entitled to compute will still return a number — a calculator never refuses — but that number describes nothing real. So the safe habit runs backward from most people's instinct: decide the level first, and let it hand you the shortlist of legal summaries second.

LEVELEXAMPLELEGAL SUMMARY OF CENTERRATIOS MEANINGFUL?NominalEye colourMode onlyNoOrdinalStar ratingMode, medianNoInterval°C temperatureMode, median, meanNo — zero is arbitraryRatioHeight, incomeMode, median, meanYes — true zero
PLATE II Climb the ladder, earn a tool. Each level keeps every summary below it and adds one of its own.

Ink That Thinks — guess first; the answer draws itself.
Drag the four levels of measurement into order, from the one that permits the least arithmetic to the one that permits the most.

  1. Nominal — bare labels (colour)
  2. Ordinal — ranked labels (S, M, L)
  3. Interval — equal gaps, no true zero (°C)
  4. Ratio — true zero, real ratios (kg)
Reorder, then commit.
PLATE III Four levels, least to most permissive — the ladder in your own hand.
Why is this true?

A dataset codes blood type as 1, 2, 3, 4. Why is the mean blood type of 2.7 meaningless?

Because the codes are arbitrary name tags: relabel them 1, 5, 6, 9 and the same people yield a different average, though nothing about them changed. A summary that shifts when you merely rename the categories is measuring the code, not the world.

Retrieval Gate — answer before you continue 0 / 4

1.A survey answer runs from strongly disagree to strongly agree — an ordinal variable. Which measure of center is defensible?

2.Why is it wrong to say 30°C is twice as hot as 15°C?

3.Of the four levels — nominal, ordinal, interval, ratio — on how many is the mean a legitimate summary of center?

4.Without looking back: name the four levels in order, and give the lowest level on which a mean becomes legal.

That is the whole discipline of this folio: every column belongs to a family and a level, and the level tells you which tools are honest before you reach for one. Next folio takes the first of those tools — the center of a quantitative variable — and shows how its three versions can quietly disagree.

Note

Unsure whether a column is a code or a count? The Atlas — every subject, by age and field — links back to a short refresher on reading data tables.

Practice — new ink and old, interleaved

1.A form asks for your number of siblings. What is this variable?

2.Match each level to the strongest summary of center it permits.

Nominal
Ordinal
Interval
Ratio

3.Put these variables in order of measurement level, from lowest to highest.

  1. Favourite colour
  2. Hotel star rating
  3. Year of birth
  4. Distance run, in metres

4.A streaming app stores each show's genre, its 1–5 star rating, and its runtime in minutes. In one sentence, name the strongest legal measure of center for each.

The Call Slip — search everything Ctrl·K / ⌘K