Handling Missing Data in Descriptive Statistics
Why Missing Data Matters
Real-world data sets rarely arrive complete. Survey respondents skip questions, sensors malfunction, and records get corrupted. When values are missing, every summary statistic — including the five number summary — can shift. Understanding how to handle these gaps determines whether an analysis is trustworthy or misleading.
Three Types of Missing Data
Statisticians classify missing data into three categories, each requiring a different response:
- Missing Completely at Random (MCAR): The probability of a value being missing is unrelated to any variable in the dataset. Example: a lab technician accidentally spills a sample. The missingness is pure chance.
- Missing at Random (MAR): The probability of missingness depends on observed variables but not on the missing value itself. Example: younger respondents are less likely to report income, but among people of the same age, the missingness is random.
- Missing Not at Random (MNAR): The probability of missingness depends on the missing value itself. Example: people with very high incomes are less likely to disclose their income. This is the most problematic type.
Key Distinction
MCAR data can be safely excluded without biasing results. MAR and MNAR data require more careful handling — simply deleting rows can distort the five number summary.
How Missing Data Affects the Five Number Summary
Each component of the five number summary responds differently to missing values:
- Minimum and Maximum: If extreme values are missing, the reported range shrinks artificially. A missing minimum makes the data appear less spread out than it truly is.
- Median: Dropping observations changes the position of the median. If data is MNAR (extreme values are selectively missing), the median shifts toward the centre of the remaining data.
- Quartiles (Q1 and Q3): Fewer data points mean Q1 and Q3 are computed from a smaller sample, increasing their variability. The IQR may widen or narrow unpredictably.
Numerical Example
Consider the dataset: 5, 8, 12, 15, 20, 25, 30, 45, 60, 80.
Five number summary: 5, 12, 22.5, 45, 80. IQR = 33.
Now suppose the two highest values (60, 80) are missing:
Remaining data: 5, 8, 12, 15, 20, 25, 30, 45.
New five number summary: 5, 10, 17.5, 27.5, 45. IQR = 17.5.
The median dropped from 22.5 to 17.5, the maximum fell from 80 to 45, and the IQR nearly halved. If these high values were missing because of MNAR (say, censored readings on a sensor), the remaining summary severely underestimates the data's spread.
Common Approaches to Missing Data
Listwise Deletion (Complete Case Analysis)
The simplest approach: remove any observation with a missing value and analyse only complete cases. This is what most calculators and spreadsheet functions do by default.
- When it works: The data is MCAR, and the proportion of missing values is small (<5%).
- When it fails: Large amounts of missing data, or MNAR patterns where deletion introduces bias.
Mean or Median Imputation
Replace each missing value with the mean or median of the observed values. This preserves the sample size but has a significant drawback: it artificially reduces variability. The IQR will shrink because imputed values cluster around the centre.
Warning
Median imputation makes the five number summary unreliable. Adding median values to a dataset pulls Q1 and Q3 toward the median, narrowing the IQR and potentially hiding outliers.
Multiple Imputation
A more principled approach: generate several plausible datasets by imputing different values drawn from the estimated distribution of the missing data. Compute the five number summary for each imputed dataset and pool the results. This captures the uncertainty introduced by the missing values.
Multiple imputation is the recommended method when the proportion of missing data exceeds 5–10% and the mechanism is MAR.
Sensitivity Analysis
When the missing data mechanism is unknown or suspected to be MNAR, a sensitivity analysis is appropriate. Calculate the five number summary under different assumptions about the missing values (best case, worst case, and plausible scenarios) and report the range of results.
How Software Handles Missing Data
Excel
Excel's QUARTILE.INC and MEDIAN functions automatically ignore blank cells but treat cells containing text or errors as problems. Ensure missing values are truly blank, not zero or a placeholder like "N/A".
Python (pandas)
import pandas as pd
import numpy as np
data = pd.Series([5, 8, np.nan, 15, 20, np.nan, 30, 45])
# Default: ignores NaN
print(data.describe())
# Check how many are missing
print(f"Missing: {data.isna().sum()} of {len(data)}")
# Median imputation (if chosen)
data_filled = data.fillna(data.median())R
data <- c(5, 8, NA, 15, 20, NA, 30, 45)
# fivenum ignores NA by default
fivenum(data)
# Explicit control
summary(data, na.rm = TRUE)
# Count missing
sum(is.na(data))Best Practices
- Report the extent of missing data. Before presenting any summary statistics, state how many values are missing and what proportion they represent.
- Investigate the mechanism. Determine whether data is MCAR, MAR, or MNAR. A simple test: compare the characteristics of complete cases versus incomplete cases.
- Choose the method appropriate to the mechanism. MCAR → listwise deletion is acceptable. MAR → multiple imputation. MNAR → sensitivity analysis.
- Avoid mean/median imputation for the five number summary. It distorts exactly the statistics being reported.
- Document everything. State which method was used and why. Reproducibility requires transparency about how missing data was handled.
Reporting Standard
Academic journals increasingly require a "missing data statement" describing the extent, mechanism, and handling strategy. Include this even for class assignments to build good habits.
When Is Too Much Data Missing?
There is no universal threshold, but guidelines exist:
- <5% missing: Listwise deletion is generally acceptable.
- 5–20% missing: Imputation methods should be considered. Report results with and without imputation.
- >20% missing: The five number summary (and any summary statistics) should be reported with strong caveats. Consider whether the data supports meaningful analysis at all.
Verify Your Calculations
Use the free five number summary calculator to check your work.
Open CalculatorWritten by Oge Nwaozuzu
Statistics educator and data analyst. Creator of 5numbersummarycalculator.app.