Classifying Variables
& Scales of Measurement
Learn to identify categorical, ordinal, and continuous variables and understand the four scales of measurement that underpin every statistical analysis.
Why Variable Classification Matters
Every dataset is made up of variables: characteristics that vary from one observation to the next. Before you choose a statistical test, graph, or model, you must first know what type of variable you are working with.
The Two Families of Variables
Nominal Variables
Nominal variables represent categories with no natural order. You can label them with names or codes, but ranking them makes no sense.
Ordinal Variables
Ordinal variables have categories that can be ranked, but the gaps between ranks are not guaranteed to be equal.
Discrete vs Continuous
The Four Scales of Measurement
Nominal vs Ordinal: Key Distinction
| Nominal | Ordinal | |
|---|---|---|
| Categories | ✓ | ✓ |
| Natural order | ✕ | ✓ |
| Equal intervals | ✕ | ✕ |
| Meaningful arithmetic | ✕ | ✕ |
| Example | Blood type (A, B, O) | Cancer stage (I, II, III) |
| Central tendency | Mode only | Median, mode |
Interval vs Ratio: The Zero Question
| Interval | Ratio | |
|---|---|---|
| Order | ✓ | ✓ |
| Equal intervals | ✓ | ✓ |
| True zero | ✕ | ✓ |
| Ratios meaningful | ✕ | ✓ |
| Example | Temperature \(^\circ\text{C}\) | Weight (kg) |
How to Classify a Variable
Example 1: Blood Pressure
A patient's systolic blood pressure is recorded as 120 mmHg. What type of variable is this?
Example 2: Patient Satisfaction
A survey asks patients to rate their satisfaction: Very Dissatisfied, Dissatisfied, Neutral, Satisfied, Very Satisfied.
Example 3: Temperature in Two Scales
A lab records temperature as \(37.0\,^\circ\text{C}\). Another records the same measurement as \(310.15\,\text{K}\). Are these the same scale of measurement?
Tricky Cases in Biostatistics
Common Mistakes
Complete Summary Table
| Scale | Category | Order | Equal Gaps | True Zero | Example |
|---|---|---|---|---|---|
| Nominal | ✓ | ✕ | ✕ | ✕ | Blood type |
| Ordinal | ✓ | ✓ | ✕ | ✕ | Pain severity |
| Interval | ✓ | ✓ | ✓ | ✕ | Temp. \(^\circ\text{C}\) |
| Ratio | ✓ | ✓ | ✓ | ✓ | Weight (kg) |
Question 1 of 5
A researcher records patients' marital status as Single, Married, Divorced, or Widowed. What type of variable is this?
Question 2 of 5
A clinical trial measures patient weight in kilograms. What scale of measurement is this?
Question 3 of 5
A nurse records the number of times a patient vomited in 24 hours. This variable is best classified as:
Question 4 of 5
Temperature in degrees Fahrenheit is measured on which scale?
Question 5 of 5
A study records cancer stage as Stage I, Stage II, Stage III, or Stage IV. Why is computing the mean stage inappropriate?