Missing Data
Also known as: missing values, null values, MCAR, MAR, MNAR.
Values that should exist but were not recorded. Why they are missing decides whether ignoring them is harmless or biases the result.
Synthetic dataExamples on this page use synthetic data created for illustration.
Definition
Missing data are values that should exist but were not recorded. How they went missing matters: if the gaps are unrelated to the values, little is lost, but if missingness depends on the value itself, simply ignoring those rows biases the result.
In plain terms
Statisticians distinguish three cases. Missing completely at random: a sensor dropped a reading by chance. Missing at random: the gap depends on something you observed (younger respondents skip a question more often). Missing not at random: the gap depends on the missing value itself (people with the highest incomes leave the income field blank). Only the first is safe to ignore.
In data work there is a second trap: a missing value must be kept distinct from zero, from “not applicable” and from “the parser failed”. Treating an empty price as 0 makes averages wrong and makes “no data” look like “free”.
Example
Five items, three with a price:
| Item | Price | What the cell means |
|---|---|---|
| A | 20 | observed |
| B | 30 | observed |
| C | 10 | observed |
| D | (empty) | not observed |
| E | (empty) | not observed |
| Treatment | Average price |
|---|---|
| Ignore the empty cells | (20 + 30 + 10) / 3 = 20 |
| Treat empty as 0 | (20 + 30 + 10 + 0 + 0) / 5 = 12 |
Treating “not observed” as zero cuts the average by 40% without a single price having changed.
Common misunderstandings
- “Fill the gaps with the average and move on.” That shrinks the variation in the data and can hide the very pattern that caused the gaps.
- “Empty and zero are interchangeable.” Zero is a measurement; empty is the absence of one.
- “Data are missing at random by default.” That has to be argued from how the data were collected, not assumed.
References
- Donald B. Rubin. Inference and Missing Data . Biometrika, 1976. DOI: 10.1093/biomet/63.3.581
- Roderick J. A. Little, Donald B. Rubin. Statistical Analysis with Missing Data . Wiley, 2019. ISBN 978-0470526798.