Data Imputation: Choose and Validate a Method for Missing Values
Learn how simple fills, regression imputation, predictive mean matching, and multiple imputation differ; choose a method for inference or prediction; and check assumptions, diagnostics, pooling, and reporting.
Data imputation is a way to supply plausible values for unobserved entries using observed information and stated assumptions, without pretending that the missing values are known. Methods range from putting one mean into every blank to creating several plausible completed data sets and carrying the resulting uncertainty into the analysis. The right choice depends less on the percentage missing than on whether the goal is statistical inference or prediction, the kinds of variables involved, and how values came to be missing.
Imputation does not recover the actual missing value
An imputed value is not a recovered fact about an entry that was never observed. It is a plausible value under a selected model and the information supplied to that model. Treating imputed rows exactly like observed data can hide what remains unknown. For statistical inference, the analysis may need to account both for uncertainty about each missing value and for uncertainty in the fitted imputation model. A common one-time fill does not pass this uncertainty through to the result; it can make standard errors too small or distort variation and relationships among variables. A CDC-hosted study of fully conditional multiple imputation explains how single imputation can underestimate uncertainty.
Not every blank should be imputed. A structural absence such as “not applicable” is different from an unobserved measurement, so first check what the variable means instead of inserting a mean or prediction. Likewise, -999 could be an error code or a real value until the codebook confirms its meaning. Define the analytical goal, variable units, and reason for each kind of absence before choosing a method.
How do simple fills differ from multiple imputation?
The table summarizes common approaches. “Single imputation” here means filling each missing entry with one value to produce one completed data set.
| Method | How values are produced | When it may fit | Main limitation |
|---|---|---|---|
| Mean, median, mode, or constant | Fill from a column summary or a chosen constant. | A simple prediction baseline or meeting an algorithm’s input requirements. | Repeating a value can compress variation and weaken relationships. It does not carry uncertainty about missing values into inferential estimates. |
| Deterministic regression imputation | Fill with a conditional mean predicted from other variables. | When auxiliary variables should inform the fill instead of a single overall summary. | Inserting only predicted means removes residual variation, making the completed distribution too narrow. |
| Donor method or predictive mean matching (PMM) | Draw an observed value from cases with similar predicted values. | When a numeric variable is skewed or values must stay within plausible bounds. | Suitable donors must exist; results depend on which variables define similarity. |
| Multiple imputation (MI) | Draw several plausible values for each missing entry, make multiple completed data sets, analyze each, and combine the results. | When reporting uncertainty in a mean, regression coefficient, or other estimate. | The variable models, data structure, and missingness assumptions must fit, and convergence and plausibility must be checked. |
The simplest choice is not automatically the safest. Suppose observed spending has a long right tail. Filling every missing cell with the same overall mean creates an artificial clump and reduces variation. Regression imputation can account for differences in age or plan type, but inserting only the conditional mean removes real differences among otherwise similar people. For inference, ask how the procedure affects uncertainty and relationships, not just whether it removes blanks.
Multiple imputation analyzes several data sets and then combines results
MI is not a way to discover one correct answer for each missing entry. It is an inferential procedure that represents several plausible possibilities for what was missing. A typical workflow has three stages:
Imputation: draw missing values using the observed data and an imputation model to create m completed data sets. Observed cells stay the same; imputed cells vary across sets.
Analysis: fit the same target model to every completed data set. For example, use the same regression formula and target population in each one.
Pooling: combine the m estimates and their standard errors to obtain one estimate and its uncertainty.
If the estimates from the completed data sets are Q₁,…,Qₘ, their average is Q̄=(Q₁+…+Qₘ)/m. Total variance includes both the average variance within each data set and the variation between data sets. Under a normal approximation, Rubin’s basic pooling formula is T=Ū+(1+1/m)B. Here Ū is the average within-data-set variance, B is the variance among the m estimates, and T is the total variance that includes uncertainty about the missing values. Averaging the estimates but calculating the standard error from only one data set misses the central point of MI. The three stages and pooling logic are described in van Buuren and Groothuis-Oudshoorn’s MICE methods paper.
There is no single correct value of m for every data set. When the fraction of missing information or the between-imputation variation is large, a small number of imputations can leave substantial Monte Carlo error. Start with a reasonable number, then check whether key estimates and standard errors stabilize as m increases. Document the amount of missing information, computing limits, and precision you need instead of treating one small number as a universal rule.
Match the imputation model to variable type and analysis goal
Fully conditional specification (FCS), commonly called MICE, is one form of MI. It defines a conditional model for each variable with missing values, using other variables as predictors. For example, a numeric spending variable might use a linear model or predictive mean matching; a binary response might use logistic regression; ordered or unordered categories need models suited to those scales. The ability to choose a model per variable is useful, but the choice can change the results. The abstract of White, Royston, and Wood’s practical guidance on MICE identifies model specification, checking, and the number of imputations as key practical issues for categorical, continuous, and skewed variables.
With PMM, cases whose regression predictions are close become possible donors, and the method draws one donor’s observed value. That can help keep a skewed continuous variable within realistic ranges, compared with inserting a predicted mean directly. But copying an observed value does not make uncertainty correct by itself. The method still depends on the prediction model, the variables it uses, and having suitable donors.
At minimum, review variables in the final analysis and auxiliary variables that help predict incomplete values. In inferential analyses where predictors are imputed, the outcome should also be included in the imputation model so the observed predictor–outcome relationship is more likely to be preserved. Observed variables associated with the chance of missingness can help as well. If a plan effect may differ by age group, entering age and plan alone may not preserve that interaction. Consider how the imputation will represent nonlinear terms, interactions, repeated measures, institution or region clustering, and derived variables such as totals. If important relationships in the analysis model are absent from the imputation model, a completed table can look plausible while the target estimate shifts.
MICE joins conditional models in an iterative cycle, so the imputations do not always come from one coherent joint distribution. A small sample with too many variables, or empty category combinations, can make models unstable. The MICE methods paper lists incomplete predictors, circular dependencies, collinearity, empty cells, nonlinear relationships, and impossible combinations as practical challenges. MICE is flexible, but it is not an automatic solution for every missing-data problem.
Check assumptions and diagnostics before interpreting the result
Conventional MI is often used under the missing-at-random (MAR) assumption: observed variables can explain the missingness pattern. If the chance of missingness still depends on the unobserved value itself after conditioning on what was observed, an approach that assumes only MAR may remain biased. The name “multiple imputation” does not solve missing-not-at-random (MNAR) concerns. Addressing MNAR requires specifying additional assumptions about how unobserved values differ and using sensitivity analyses to show how conclusions change. The CDC-hosted FCS application recommends checking the imputation model and comparing results under alternatives.
After imputation, check at least the following:
Do algorithm traces settle without a sustained trend or drift?
Are imputed values within valid ranges, units, logical relationships, and the real context?
When you compare observed, imputed, and completed distributions, do unexplained extremes or artificial piles appear?
Are estimates, predictions, and standard errors overly sensitive to reasonable changes in missing-data handling or imputation models?
How plausible is the missingness assumption given the recorded reasons, and have alternative scenarios for unseen values been considered?
A difference between observed and imputed distributions is not automatically evidence of failure. Under MAR, observed values may represent groups or ranges with different response probabilities, so imputation can reproduce those differences. The CDC-hosted study explains that similar observed and imputed marginal distributions are expected under MCAR, whereas they can differ under MAR. Interpret diagnostic plots together with the missingness process, variable relationships, and model. On the other hand, out-of-range values, unstable traces, or large result changes after a modest model adjustment call for model revision or sensitivity analysis, not automatic acceptance.
Keep prediction preprocessing separate from statistical inference
In machine learning, the goal may be predictive performance for new cases. Mean, median, or mode filling and multivariate imputation should be compared using held-out data. A more complex method does not guarantee better predictions. The scikit-learn guide to imputation notes that the predictive value of single versus multiple imputation depends on context and that simple imputation can perform as well as or better than more complex imputation with a strong estimator.
Do not calculate imputation values from the full data set before splitting it. Information from validation or test cases can leak into the imputer and make performance appear better than it will be on new cases. Split first, fit the imputer on the training partition, and apply the learned transformation to validation and test partitions. Within cross-validation, fit the imputer separately inside each training fold, usually by placing it in a pipeline. scikit-learn’s data-leakage guidance explicitly applies this rule to preprocessing such as SimpleImputer.
For inference, predictive score alone is not enough to choose a method. Consider how uncertainty is carried forward, whether relationships in the target analysis are preserved, and whether the missing-data assumptions are credible. Do not assume a software object that iteratively predicts missing entries automatically creates multiple statistical imputations and pools results. For example, the scikit-learn guide distinguishes an iterative imputer that returns one completed matrix by default from repeated stochastic imputations configured separately.
Follow this order in an analysis
Imagine, hypothetically, that monthly spending is missing for 40 of 200 subscription-survey participants and the goal is to estimate the relationship between plan type and spending. These numbers and circumstances are illustrative, not observed data. Assume spending is right-skewed and that plan, tenure, and prior-month payment are observed.
Confirm that the blanks are genuine missing values. Decide whether “no payment” should be zero, and distinguish skipped questions from measurement failures. Keep “not applicable” separate from missing values.
Write down the target and design: population, spending variable, plan effect, analysis model, needed interactions, and any cluster structure.
Select a conditional model that fits the variable and distribution. With a long-tailed spending variable, PMM might be a candidate because it draws observed spending from similar predicted values. Include plan, tenure, variables in the final analysis, and useful predictors of missingness.
Generate multiple imputations and check stability and valid ranges. Look for identical values in all missing cells, implausible amounts, and distributions inconsistent with the data context.
Fit the same plan–spending analysis to every completed data set and pool estimates and standard errors. Compare with mean imputation or complete-case analysis, but investigate why results differ instead of treating one method as ground truth.
If MAR seems weak, vary plausible assumptions about how spending among nonrespondents differs from spending among respondents. Report which conclusions change under which scenario.
Record the number and proportion missing, target variables, method and model form, predictors, number of imputations, convergence and distribution checks, pooling procedure, missingness assumptions, alternative models, and sensitivity results. Preserve the original values and a separate indicator for imputed entries; do not present an imputed value as a new measurement.
Conclusion
Imputation is not a formatting step that removes blanks. It is a modeling procedure that connects assumptions about unobserved values to the data and the final result. A simple single fill can be useful for prediction, but statistical inference may require carrying uncertainty from both missing values and the imputation model. Choose according to variable type, data structure, analytical goal, and missingness assumptions; then finish with diagnostics and sensitivity analyses that show how far the result can be trusted.
References
van Buuren & Groothuis-Oudshoorn, “mice: Multivariate Imputation by Chained Equations in R”
scikit-learn User Guide: Imputation of missing values
scikit-learn User Guide: Common pitfalls and recommended practices