Answer
What is multiple imputation, and when should you use it for missing data?
The short answer
Multiple imputation replaces each missing value with several plausible values drawn from a model, giving m completed data sets. You run the same analysis on each one and combine the results with Rubin's rules, which add the spread between data sets to the usual standard error. It gives valid answers when data are missing at random given the variables in the imputation model.
Missing completely at random, at random, or not at random
Whether missing data are a problem depends less on how many values are missing than on why they are missing. Rubin's three mechanisms are the vocabulary every method is judged by:
- MCAR (missing completely at random): missingness has nothing to do with any variable, observed or not, such as a lab sample dropped on the floor. Analysing only the complete cases is then unbiased; you just lose precision.
- MAR (missing at random): missingness depends only on things you observed. For example, younger respondents skip an income question more often, and age is recorded for everyone. Complete-case results can then be biased, but multiple imputation and maximum likelihood are valid if they use the variables that predict missingness.
- MNAR (missing not at random): missingness depends on the missing value itself, even after accounting for what you observed, such as high earners declining to report income. No standard method fixes this from the data alone; you need a model for the missingness and sensitivity analyses.
You cannot prove MAR from the data, because the evidence would sit in the values you do not have. In practice you include variables that plausibly predict both missingness and the incomplete variable, which makes MAR more believable. Note also that complete-case analysis is not always biased under MAR: a regression stays unbiased when missingness depends only on its predictors and not on the outcome.
Why filling in one value is not enough
Single imputation fills each gap once and then analyses the data as if they were complete. Mean imputation squeezes the variance and weakens correlations. Regression imputation puts every filled-in value exactly on the fitted line, so the data look less noisy than they are and correlations are inflated. Even adding random noise to a single imputation leaves a deeper problem: the software treats invented values as real observations, so standard errors ignore the fact that you do not know what the missing values were. Confidence intervals come out too narrow and p-values too small.
Multiple imputation keeps that uncertainty visible. Each imputed data set uses a different random draw, both of the noise and of the imputation model's parameters, so the imputed values disagree with each other exactly where the data are uninformative. How much the results vary across data sets is a direct measure of what the missing values cost you.
Impute, analyse, pool: Rubin's rules
- Impute: create m completed data sets by drawing each missing value from its predictive distribution given the observed data. The imputation model should include the analysis variables, the outcome too, and any auxiliary variables that predict missingness.
- Analyse: fit the same analysis to each completed data set, saving the estimate and its standard error.
- Pool: combine the m results with Rubin's rules. Never average the data sets themselves and analyse the average.
Rubin's rules work on the m estimates and their squared standard errors. The pooled estimate is the average of the estimates. The within-imputation variance W is the average squared standard error, the between-imputation variance B is the variance of the estimates across data sets, and the total variance is T = W + (1 + 1/m)B. The pooled standard error is the square root of T. Tests and intervals use a t distribution with Rubin's degrees of freedom, (m − 1)/λ², where λ = (1 + 1/m)B/T is the share of the total variance caused by missing data. Software such as the R package mice uses a small-sample refinement of these degrees of freedom (Barnard and Rubin, 1999).
Pool quantities that are roughly normally distributed: regression coefficients are fine, but pool odds ratios on the log scale and correlations after Fisher's z transformation, then transform back.
How many imputations? Early advice of 3 to 5 was about the efficiency of the point estimate. Standard errors and p-values need more, and computing is cheap, so a common rule of thumb (White, Royston and Wood, 2011) is to use at least as many imputations as the percentage of incomplete cases: 30% incomplete cases means at least 30 imputations.
See it in R and Python
This simulation estimates the mean of y (true value 10) when y is missing more often for people with high x, a MAR mechanism. It compares complete-case analysis, one deterministic regression imputation, and 20 proper imputations: each one draws the residual variance and the coefficients from their sampling distributions before adding noise, the same idea as the norm method in mice. Everything is base R and NumPy, so you can see each step of Rubin's rules.
R
set.seed(2024)
n <- 300
x <- rnorm(n)
y <- 10 + 2 * x + rnorm(n, sd = 2) # true mean of y is 10
miss <- runif(n) < plogis(-0.5 + 1.5 * x) # y missing more often when x is high (MAR)
y_obs <- ifelse(miss, NA, y)
round(mean(miss), 3) # share of y that is missing
# Complete-case analysis: biased here, because missingness depends on x
cc <- y_obs[!miss]
round(c(mean = mean(cc), se = sd(cc) / sqrt(length(cc))), 3)
fit <- lm(y_obs ~ x) # imputation model, fitted to observed cases
X <- cbind(1, x)
# Single deterministic imputation: fill in predicted values
y_det <- ifelse(miss, drop(X %*% coef(fit)), y_obs)
round(c(mean = mean(y_det), se = sd(y_det) / sqrt(n)), 3)
# One proper imputation: draw sigma^2 and beta, then add random noise
impute_once <- function() {
sigma2 <- sum(resid(fit)^2) / rchisq(1, fit$df.residual)
beta <- coef(fit) + t(chol(sigma2 * solve(crossprod(X[!miss, ])))) %*% rnorm(2)
ifelse(miss, drop(X %*% beta) + rnorm(n, sd = sqrt(sigma2)), y_obs)
}
m <- 20
est <- u <- numeric(m)
for (i in 1:m) {
y_i <- impute_once()
est[i] <- mean(y_i) # estimate in completed data set i
u[i] <- var(y_i) / n # its squared standard error
}
# Rubin's rules
q_bar <- mean(est); u_bar <- mean(u); b <- var(est)
t_var <- u_bar + (1 + 1 / m) * b # total variance
lambda <- (1 + 1 / m) * b / t_var # share of variance due to missingness
df <- (m - 1) / lambda^2 # Rubin's (1987) degrees of freedom
round(c(mean = q_bar, se = sqrt(t_var), within = u_bar, between = b,
lambda = lambda, df = df), 4)
round(q_bar + c(-1, 1) * qt(0.975, df) * sqrt(t_var), 3) # 95% CI
Python
import numpy as np
from scipy import stats
rng = np.random.default_rng(2024)
n = 300
x = rng.normal(size=n)
y = 10 + 2 * x + rng.normal(0, 2, n) # true mean of y is 10
p_miss = 1 / (1 + np.exp(-(-0.5 + 1.5 * x)))
miss = rng.uniform(size=n) < p_miss # y missing more often when x is high (MAR)
y_obs = np.where(miss, np.nan, y)
print(round(miss.mean(), 3)) # share of y that is missing
# Complete-case analysis: biased here, because missingness depends on x
cc = y_obs[~miss]
print(round(cc.mean(), 3), round(cc.std(ddof=1) / np.sqrt(len(cc)), 3))
# Imputation model, fitted to observed cases
X = np.column_stack([np.ones(n), x])
Xo, yo = X[~miss], y_obs[~miss]
beta_hat = np.linalg.solve(Xo.T @ Xo, Xo.T @ yo)
rss = np.sum((yo - Xo @ beta_hat) ** 2)
df_res = len(yo) - 2
# Single deterministic imputation: fill in predicted values
y_det = np.where(miss, X @ beta_hat, y_obs)
print(round(y_det.mean(), 3), round(y_det.std(ddof=1) / np.sqrt(n), 3))
# One proper imputation: draw sigma^2 and beta, then add random noise
def impute_once():
sigma2 = rss / rng.chisquare(df_res)
L = np.linalg.cholesky(sigma2 * np.linalg.inv(Xo.T @ Xo))
beta = beta_hat + L @ rng.normal(size=2)
return np.where(miss, X @ beta + rng.normal(0, np.sqrt(sigma2), n), y_obs)
m = 20
est, u = np.zeros(m), np.zeros(m)
for i in range(m):
y_i = impute_once()
est[i] = y_i.mean() # estimate in completed data set i
u[i] = y_i.var(ddof=1) / n # its squared standard error
# Rubin's rules
q_bar, u_bar, b = est.mean(), u.mean(), est.var(ddof=1)
t_var = u_bar + (1 + 1 / m) * b # total variance
lam = (1 + 1 / m) * b / t_var # share of variance due to missingness
df = (m - 1) / lam**2 # Rubin's (1987) degrees of freedom
print([round(float(v), 4) for v in (q_bar, np.sqrt(t_var), u_bar, b, lam, df)])
half = stats.t.ppf(0.975, df) * np.sqrt(t_var)
print(round(q_bar - half, 3), round(q_bar + half, 3)) # 95% CI
[1] 0.427
mean se
9.266 0.185
mean se
10.058 0.128
mean se within between lambda df
10.0615 0.1799 0.0213 0.0106 0.3432 161.3049
[1] 9.706 10.417
The figures come from one seeded run of the R code. Python uses a different random number generator, so its figures differ slightly, but they show the same pattern.
- Complete cases are biased. With 42.7% of y missing, the complete-case mean is 9.266 (SE 0.185). People with high x, and therefore high y, are underrepresented among the complete cases.
- Single imputation fixes the bias but not the uncertainty. Deterministic regression imputation gives a mean of 10.058, but its standard error of 0.128 is too small, because 300 values are treated as observed when many of them were predicted.
- Multiple imputation gets both right. The pooled mean is 10.0615 with a standard error of 0.1799 and a 95% CI of [9.706, 10.417]. The between-imputation variance (0.0106) adds to the within-imputation variance (0.0213), and λ = 0.3432 says about a third of the total variance is due to the missing values.
If you repeat this simulation many times, the multiple imputation intervals cover the true mean close to the nominal 95% of the time, while the single-imputation intervals fall clearly short. That is the whole case for imputing more than once. In real work, use a tested implementation such as mice in R; in Python, scikit-learn's experimental IterativeImputer can draw imputations with sample_posterior=True, but you pool the results yourself.
When to use it, and the FIML alternative
- Use multiple imputation when more than a few cases are incomplete, when missingness plausibly depends on observed variables, or when incomplete variables are predictors you would otherwise lose whole cases for.
- You may not need it when only the outcome is missing and every variable that predicts missingness is already a predictor in your regression. Imputation then adds little beyond the complete-case fit, unless you have auxiliary variables.
- Full information maximum likelihood (FIML) estimates the model directly from all available data, without filling anything in. It rests on the same MAR assumption and, with the same variables and a large sample, gives very similar answers. It is the usual route in structural equation software, for example
missing = "ml"in lavaan. - Choose multiple imputation over FIML when you want auxiliary variables without adding them to the analysis model, when you have many categorical variables, or when several different analyses will use the same data.
- Neither method fixes MNAR. If you suspect it, report a sensitivity analysis that shows how the conclusions change under plausible departures from MAR.
How to report multiple imputation in APA style (7th edition)
Report how much is missing and in which variables, the assumed mechanism, the imputation method and software, the variables in the imputation model, the number of imputations, and that results were pooled with Rubin's rules. Using the R output above:
"Outcome scores were missing for 42.7% of participants. Assuming data were missing at random, we imputed missing scores 20 times with Bayesian linear regression using x as the predictor, and pooled estimates with Rubin's rules. The pooled mean was 10.06 (SE = 0.18), 95% CI [9.71, 10.42], compared with 9.27 in the complete cases."
In tables, label pooled results as such and note m. Reporting the fraction of missing information (here λ = .34) helps readers judge how much the missing data affected the precision of each estimate.
Related tools and guides
- APA 7 formatter for regression
- Which statistical test should I use?
- The mice package on CRAN
- Imputation (Wikipedia)
More answered questions
- Confidence vs prediction interval: mean response or a new observation?
- Do robust standard errors fix floor and ceiling effects?
- How do you simulate a prediction interval from a fitted regression model?
Working with your own data?
General answers only go so far. Send us your situation and we'll reply by email within two business days.
Ask your questionDrafted with AI assistance and reviewed by Nedim Yel, PhD, research methodologist at DASS. This is general information, not advice for your specific data or study. When the results matter, check your approach with a qualified statistician.