Missing Data
MCAR, MAR, MNAR and principled imputation.
A missing value is not just a hole to fill: the reason it is missing can carry as much information as the value would have. This lesson formalizes Rubin's missingness mechanisms, proves when the mechanism can be ignored, shows why filling in single values understates uncertainty and how multiple imputation and EM repair it, confronts data missing not at random with sensitivity analysis, and then turns to prediction, where the rules change.
What you’ll learn
- Define MCAR, MAR and MNAR through the distribution of the missingness indicators, and prove Rubin's ignorability theorem for likelihood inference.
- Show when complete-case analysis is unbiased, and how mean, regression and stochastic imputation distort variances, correlations and standard errors.
- Derive Rubin's rules for combining multiple imputations, and the E-step of EM for a bivariate normal with missing values.
- Explain why data missing not at random need untestable assumptions, and run a -adjustment sensitivity analysis.
- State what is known about prediction with missing values: pattern-wise Bayes predictors, consistency of impute-then-regress, missingness indicators and trees.
Mechanisms and ignorability
| Mechanism | Example | What it implies |
|---|---|---|
| MCAR | blood samples lost at random in transit | complete cases are a random subsample: unbiased, just smaller |
| MAR | older patients skip a questionnaire item more often, and age is recorded | the observed data, used properly (likelihood, multiple imputation), can correct the bias |
| MNAR | people with high incomes decline to report income; a sensor saturates above its range | nothing in the observed data reveals the bias: assumptions are unavoidable |
The observed data are and . Their likelihood integrates the unobserved values out of the full model:
Under MAR the second factor does not depend on , so it leaves the integral:
The likelihood factorizes into a part with alone and a part with alone. With distinct parameters, maximizing over , or forming its posterior, never involves the second factor.
Two caveats. First, MAR cannot be tested from the observed data: Molenberghs, Beunckens, Sotto & Kenward (2008) showed that every MNAR model has an MAR counterpart that fits the observed data exactly as well. MAR is an assumption justified by knowing how the data were collected, and made more plausible by recording the variables that drive missingness.
Second, the definition comes in versions. Seaman, Galati, Jackson & Carlin (2013) distinguish realized MAR, holding at the data actually observed, from everywhere MAR, holding for every possible dataset. Realized MAR suffices for direct-likelihood and Bayesian inference to ignore the mechanism; frequentist guarantees over repeated samples, such as standard errors from the observed information, need everywhere MAR (and the expected information is safe only under everywhere MCAR).
In a clinical study, patients with more severe symptoms at baseline are more likely to drop out before the final measurement. Severity is recorded at baseline, and once it is known, the final outcome itself does not affect dropout. Which mechanism describes the missing final outcomes?
- MCAR, because dropout is a random event
- MAR, because dropout depends only on the observed baseline severity
- MNAR, because sicker patients drop out
- None: dropouts must be removed from the study
Show the answer
B. MAR, because dropout depends only on the observed baseline severity
Missingness depends on an observed variable, baseline severity, and not on the unobserved outcome given that variable: the definition of MAR. Complete cases are biased toward milder patients, but a likelihood or multiple-imputation analysis that conditions on severity can correct it.
Complete cases and single imputation
Dropping incomplete rows is unbiased under MCAR. It can also be unbiased for a regression in a surprisingly broad case: whenever missingness is independent of the outcome given the covariates, even if it depends on the covariates, and even if a covariate is MNAR.
Let mark complete rows. The regression a complete-case analysis estimates is the conditional distribution of given among those rows. By Bayes' rule:
If , then , and the selection cancels:
So a correctly specified regression fitted to complete cases is consistent, at the cost of lost data. If missingness depends on given , as when people drop out because of the outcome, the selection factor stays and the complete-case regression is biased. Means and marginal distributions of are another matter: under MAR they are biased whenever missingness depends on the covariates.
| Single imputation | Fills a gap with | Distortion |
|---|---|---|
| Mean or median | one constant per feature | variance shrinks by , correlations by (MCAR, fraction missing) |
| Regression | the prediction from the other features | imputed points lie on the regression surface, so correlations are inflated: with correlation 0.5 and 36% missing completely at random, |
| Stochastic regression | the prediction plus a random residual | preserves the joint distribution under MAR if the model is right; standard errors still too small |
| Hot deck, -NN | a value from a similar complete row | plausible values; same understatement of uncertainty |
| Constant plus a missingness flag | a constant, and a 0/1 indicator feature | for estimating regression coefficients generally biased, even under MCAR, when features are correlated; often helpful for prediction (step 5) |
Multiple imputation, chained equations and EM
Multiple imputation (Rubin, 1987) draws completed datasets from the predictive distribution of the missing values given the observed ones, including the uncertainty about the imputation model's parameters ("proper" imputation). Each dataset is analyzed with ordinary complete-data methods, giving an estimate and its squared standard error (), and the results are pooled with Rubin's rules:
Treat the quantity of interest from a Bayesian point of view. By the law of total variance over the unknown , its posterior variance has two parts:
The within part is the uncertainty you would have with complete data; the between part is the extra uncertainty from not knowing the missing values. Single imputation reports only the first. And averages only draws, which adds simulation variance :
Five imputations give coefficient estimates 0.52, 0.61, 0.47, 0.58 and 0.55, each with standard error 0.05. What is the pooled standard error ?
Show the answer
0.078
, , and the sample variance of the five estimates is . So and , more than half as large again as the 0.05 that any single completed dataset reports. With degrees of freedom the 95% interval is .
Chained equations. With many incomplete variables of mixed types, a joint model is hard to write down. MICE, multivariate imputation by chained equations (van Buuren & Groothuis-Oudshoorn, 2011), instead specifies one conditional model per variable (linear, logistic, ordinal...), and cycles: impute each variable from the current values of all the others, with parameters drawn from their posterior, for a number of iterations; repeat to get datasets. The conditionals need not be compatible with any joint distribution, so there is no general convergence guarantee, but the method works well in practice. The imputation model must be at least as rich as the analysis: leave the outcome out when imputing a covariate and its association with that covariate is biased toward zero, an instance of what Meng (1994) called uncongeniality.
EM (Dempster, Laird & Rubin, 1977) instead maximizes the observed-data likelihood directly, alternating between expected complete-data sufficient statistics and parameter updates; the likelihood never decreases (Why EM Works). For a bivariate normal with always observed and missing at random in some rows, the E-step shows exactly what regression imputation forgets:
E-step. For a row with missing, the conditional distribution of given under the current parameters is normal with mean and residual variance :
The sufficient statistics need , which is not : plugging in , as regression imputation does, drops the conditional variance and understates :
M-step. Recompute the means, variances and covariance from the completed sums. Iterate to convergence to the maximum-likelihood estimates under MAR.
Missing not at random
When missingness depends on the missing values themselves, the observed data cannot identify the answer without extra assumptions. Two families of models make the assumptions explicit:
- Selection models factor : a model for the data and a model for who goes missing given the data. Heckman's (1979) model for sample selection is the classic example, with jointly normal errors in the outcome and selection equations; identification leans on that normality, ideally helped by a variable that affects selection but not the outcome.
- Pattern-mixture models factor : a separate distribution of the data for each missingness pattern. The distribution of among non-responders is never observed, so it must be tied to the responders' by an assumption, which is exactly what makes the assumption easy to state and vary.
Because an MAR model always fits the observed data as well as any MNAR one, the honest output of an MNAR analysis is a sensitivity analysis: how the conclusion changes as the departure from MAR grows.
DELTA-ADJUSTMENT SENSITIVITY ANALYSIS (pattern-mixture)
for delta in a grid of plausible departures (e.g. -20% ... +20% of the outcome's sd):
impute the missing values D times under MAR
shift every imputed value by delta # non-responders differ by delta
analyze each completed dataset; pool with Rubin's rules
record the estimate and its interval
report the curve of estimates against delta
report the tipping point: the smallest |delta| that changes the conclusionIf the conclusion survives every that experts find plausible, the MAR analysis can be trusted for this question; if a small reverses it, the data cannot settle the question without better information about the non-responders.
Graphical models offer another route. Drawing the missingness indicators into a causal graph, an m-graph, Mohan & Pearl (2021) give conditions under which a quantity remains recoverable, that is consistently estimable, from the observed data, including under some MNAR mechanisms, and derive testable implications of missingness models. The answer depends on the query: a joint distribution may be unrecoverable while a particular conditional distribution is recoverable.
Think first A survey asks for household income, and high earners decline more often. A colleague proposes multiple imputation with age, region and occupation as predictors and reports the mean income with a confidence interval. What is missing from that analysis?
The MAR assumption, that nonresponse depends only on age, region and occupation, is doing all the work, and here it is doubtful: refusal depends on income itself. The imputations will be too low and the interval will not reflect that. Add a sensitivity analysis (for example, non-responders earn % more than similar responders, over a range of informed by external data such as tax statistics), and report how the mean moves. Collecting auxiliary variables that predict both income and refusal makes MAR more plausible, but nothing in the survey data alone can confirm it.
Prediction is different
Inference asks for unbiased parameters with honest uncertainty. Prediction asks for something else: a function that predicts well on new rows, which will have missing values too. With missingness pattern and observed coordinates , the Bayes-optimal predictor under squared loss is
a different regression for each of up to patterns. Two consequences stand out. MNAR is not an obstacle for prediction: if the mechanism is the same at training and at deployment, the fact that a value is missing is just more information. And imputation does not have to be accurate, only useful to the learner.
Trees can skip imputation altogether. Missing incorporated in attributes (MIA; Twala, Jones & Hand, 2008) lets each split also choose where the missing values go: left, right, or split "missing versus observed". XGBoost's sparsity-aware split finding learns a default direction for missing values at every node (Chen & Guestrin, 2016), and CART uses surrogate splits (CART in Depth). Josse et al. recommend MIA because it handles both informative and uninformative missingness. On eight health databases, Perez-Lebel, Varoquaux, Le Morvan, Josse & Poline (2022) found that native missing-value handling in gradient-boosted trees predicted at least as well as state-of-the-art imputation, at a fraction of the computational cost, and that when imputing, adding missingness indicators mattered, a sign that the values were not missing at random.
Key takeaways
- MCAR, MAR and MNAR describe how missingness depends on the data. Under MAR with distinct parameters, likelihood and Bayesian inference may ignore the mechanism; MAR itself cannot be tested from the observed data.
- Complete cases are unbiased under MCAR, and for regressions whenever missingness is independent of the outcome given the covariates. Every single imputation understates uncertainty.
- Multiple imputation pools analyses with ; MICE builds the imputations variable by variable, and must include the outcome; EM needs the conditional variance that regression imputation drops.
- MNAR requires assumptions the data cannot check: state them, and show how conclusions move with a sensitivity parameter.
- For prediction the target is : simple imputation plus a flexible learner can be consistent, missingness indicators help when missingness is informative, and trees can route missing values natively.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Under which conditions may likelihood-based inference about the data model ignore the missingness mechanism?
- Only if the data are MCAR
- Whenever fewer than 5% of values are missing
- If the data are MAR and the data-model and missingness-model parameters are distinct
- Always, since the likelihood uses only observed values
Show the answer
C. If the data are MAR and the data-model and missingness-model parameters are distinct
Under MAR the observed-data likelihood factorizes into a part and a part, and with distinct parameters the part is irrelevant to inference about (Rubin, 1976). MCAR is sufficient but not necessary.
Four imputations give an average within-imputation variance and a between-imputation variance . What is the total variance ?
- 0.04
- 0.0525
- 0.05
- 0.0625
Show the answer
B. 0.0525
with . The between-imputation part carries the uncertainty about the missing values, inflated by because only four draws were averaged.
In which situation does complete-case analysis give an unbiased estimate of the regression of on (with a correct model)?
- When missingness depends on but not on given
- Only when data are MCAR
- When missingness depends on
- Never: deleting rows always biases a regression
Show the answer
A. When missingness depends on but not on given
If , then : selecting rows by their covariates does not distort the conditional distribution of the outcome. This holds even if the covariates themselves are MNAR. Selection that depends on given does distort it.
Further reading
- D. B. Rubin, "Inference and missing data," Biometrika 63(3), 581–592 (1976).
- D. B. Rubin, Multiple Imputation for Nonresponse in Surveys (Wiley, 1987).
- R. J. A. Little & D. B. Rubin, Statistical Analysis with Missing Data, 3rd ed. (Wiley, 2019).
- S. van Buuren & K. Groothuis-Oudshoorn, "mice: Multivariate Imputation by Chained Equations in R," Journal of Statistical Software 45(3), 1–67 (2011).
- J. Josse, J. M. Chen, N. Prost, G. Varoquaux & E. Scornet, "On the consistency of supervised learning with missing values," Statistical Papers 65(9), 5447–5479 (2024).