Imputation — Definition, Formula & Example
Imputation is filling in missing values in a data set with reasonable estimates so you can still analyze all your cases. The estimate might be the mean of the other values, a prediction from a related variable, or a value borrowed from a similar case.
Given a data set in which some entries are missing, imputation applies a specified rule to the observed entries to produce a substitute value for each missing entry. The result is a completed data set. Common rules include mean or median imputation, regression imputation (predicting the missing value from other variables), and hot-deck imputation (copying a value from a similar observed case). Multiple imputation repeats a random version of this process several times to reflect uncertainty about the missing values.
Key Formula
Where:
- = the value filled in for a missing entry (mean imputation)
- = the mean of the values that were actually recorded
- = the number of observed (non-missing) values
- = each observed value
Worked Example
Problem: A runner's watch logged these distances (in miles) over six days: 3, 5, missing, 4, 6, 2. Use mean imputation to fill in the missing day. Then compare the sample standard deviation before and after imputing.
Step 1: Find the mean of the five observed values. This is the imputed value for the missing day.
Step 2: Compute the sample standard deviation of the five observed values. The deviations from 4 are .
Step 3: Now include the imputed 4. The completed data set is 3, 5, 4, 4, 6, 2, and its mean is still . The new value has deviation 0, so the sum of squares stays at 10 while grows from 4 to 5.
Answer: The missing day is imputed as 4 miles. The mean stays at 4 miles, but the standard deviation drops from about 1.58 to about 1.41 miles. Mean imputation makes the data look less variable than it really is.
Why It Matters
Real surveys and experiments almost always have gaps, such as skipped questions or broken sensors. Dropping every incomplete case can shrink your sample and bias results if the people who skipped differ from those who answered. Data scientists and medical researchers use imputation, especially multiple imputation, to keep those cases without pretending the guesses are certain.
Common Mistakes
Mistake: Treating imputed values as if they were real measurements when you report spread, margins of error, or significance.
Correction: Single imputation adds values with no real variability, so the standard deviation and standard errors come out too small. State which values were imputed. Also ask why the data are missing. If the missing values differ systematically from the observed ones, no simple fill-in will remove the bias.
