- Introduced by
- Tanner & Wong (data augmentation); extended by Gelfand & Smith, Rubin
- Year
- 1987
- Type
- Bayesian computational method
- Family
- Bayesian / computational
What does it do?
MCMC with missing data is a Bayesian computational strategy in which unobserved values are treated as additional unknown quantities and sampled alongside the model parameters.
The sampler alternates between drawing the missing values given the current parameters and drawing the parameters given the completed data, so the resulting posterior reflects uncertainty about the missing values as well as about the parameters. This construction is commonly called data augmentation.
The intuition behind the method
Standard MCMC needs a complete dataset, which real data seldom provide. Data augmentation avoids this requirement by treating each missing value as a latent variable and sampling it within every iteration, alongside the model parameters. Tanner and Wong (1987) describe the scheme as augmenting the observed data with latent data. The augmented chain has joint stationary distribution p(θ, z | y), and its marginal for the parameters is the observed-data posterior p(θ | y) that the scheme is designed to approximate. Inferences about the parameters therefore carry forward the uncertainty about what the missing values could have been, rather than treating imputed values as known.
History
Tanner and Wong (1987) introduced the data augmentation scheme for computing posterior distributions, treating missing values as latent data sampled alongside the parameters. The same augmentation device is used in the EM algorithm of Dempster, Laird and Rubin (1977) for maximum likelihood problems. Little and Rubin's textbook Statistical Analysis with Missing Data (2002) is the standard reference for missing-data methodology.
When to use it
Choose this method when you already work within a Bayesian framework and the data are missing at random (MAR) or missing completely at random (MCAR), a common situation in longitudinal studies, clinical trials and survey research. Under MAR, and therefore under MCAR, the missingness mechanism is ignorable for likelihood-based Bayesian inference provided the parameters of the missingness model are distinct from those of the data model (in the Bayesian case, a priori independent), so the sampler can omit a model of why values are missing (Little and Rubin, 2002). MAR cannot be confirmed from the observed data alone, so the conclusions should be checked with a sensitivity analysis. The method is preferable to deletion or single imputation when missingness uncertainty must flow into the final credible intervals. Do not use it for data missing not at random (MNAR) unless the missingness mechanism is modelled explicitly. A complete-case analysis may be adequate when missingness is very small, and a frequentist multiple imputation workflow may be the better choice when computation is constrained and that workflow answers the question.
Limitations and considerations
- Relies on the MAR or MCAR assumption; under MNAR the missingness mechanism must be modelled explicitly.
- Considerably more computationally intensive than standard MCMC on complete data, especially when a large share of values is missing.
- Convergence can be slow when the fraction of missing data is large or when missingness is strongly informative about the parameters.
- Misspecification of the missing-data distribution can bias the posterior, and the joint specification means the bias can enter the parameter estimates directly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Propagates missingness uncertainty into posterior distributions and credible intervals.
- Works within a Bayesian hierarchical or regression model without a separate imputation stage.
- Can accommodate multivariate missingness patterns, because each missing value is sampled as an unknown quantity.
- Produces one joint posterior rather than pooling results across several separately imputed datasets.
- Lets the missing-data model share information with the analysis model through a joint specification.
Applications
- Longitudinal clinical trials with dropouts or protocol deviations.
- Survey research where item non-response creates multivariate missing patterns.
- Epidemiological cohort studies with partially observed covariates.
- Educational assessments with missing test scores across measurement occasions.
- Ecological modeling with incomplete species observation records.
How it works
How it works
The joint distribution of observed and missing data given the parameters is factored into the observed-data likelihood and the conditional distribution of the missing values given the observed data and parameters. This makes the missing values explicit unknowns that the sampler must draw, rather than fixed inputs. The factorization is an identity: it describes the joint distribution of observed and missing data but contains no model of the missingness indicator. Under MAR that indicator model can be omitted, as explained under when to use.
Formula
p(\mathbf{y}_{obs}, \mathbf{y}_{mis} \mid \theta) = p(\mathbf{y}_{obs} \mid \theta)\, p(\mathbf{y}_{mis} \mid \mathbf{y}_{obs}, \theta)Within each iteration, the missing values are drawn from their predictive distribution conditional on the observed data and the current parameter draw. This is the imputation (I) step of data augmentation, and it produces a completed dataset for the current parameter state.
Formula
\mathbf{y}_{mis}^{(t)} \sim p(\mathbf{y}_{mis} \mid \mathbf{y}_{obs}, \theta^{(t-1)})Given the completed dataset, the parameters are drawn from their posterior as if the data were complete. This posterior (P) step alternates with the imputation step, and the original data augmentation paper describes the alternation as successive substitution toward a fixed point.
Formula
\theta^{(t)} \sim p(\theta \mid \mathbf{y}_{obs}, \mathbf{y}_{mis}^{(t)})After a burn-in period the chain is expected to reach its stationary distribution. The stationary distribution of the augmented chain is the joint posterior over parameters and missing values, p(θ, z | y), and its marginal for the parameters is the observed-data posterior p(θ | y) that Tanner and Wong target. Convergence is typically checked with R-hat, effective sample size, and trace plots for both the parameters and a set of imputed values. Discarding the sampled missing values and keeping the parameter draws gives the posterior for the parameters of interest.
Common pitfalls
- Assuming MAR without justification; under MNAR the posterior can be biased even when this method is used, so conclusions should be checked with a sensitivity analysis over plausible missingness models.
- Treating MAR as established: it cannot be confirmed from the observed data, so it should be justified on substantive grounds and its consequences examined with a sensitivity analysis.
- Failing to check convergence diagnostics (R-hat, ESS) for both the parameters and the imputed values.
- Using an imputation model that is incompatible with or narrower than the analysis model, or that omits predictors of missingness or variables used in the analysis, which can distort the posterior.
- Ignoring the sensitivity of conclusions to the prior placed on the missing-data model parameters.
Frequently asked questions
How is this different from multiple imputation (MI)?
Multiple imputation generates several complete datasets, analyzes each separately, then pools results using Rubin's rules. MCMC with missing data handles imputation and inference within a single joint model and sampler, avoiding the need for pooling. Because the imputation and analysis models are specified jointly, they are congenial when the full joint model is correctly specified; a misspecified joint model can still bias inference.
Does this work if data are missing not at random (MNAR)?
Not automatically. Under MNAR the probability of a value being missing depends on the unobserved value itself, so the missingness mechanism must be modelled explicitly as part of the joint model. Without this, the posterior can be biased, and the direction and size of that bias depend on the model and the data.
How much missing data is too much?
No universal threshold exists. The pattern and the information content matter as much as the proportion missing: heavy missingness, or missingness strongly related to the quantities being estimated, slows mixing and widens posteriors. Monotone missingness, as in dropout, is generally easier to handle than arbitrary multivariate missingness.
Can I use this in Stan or PyMC?
Yes. Stan requires missing values to be declared as parameters, and PyMC can represent them through masked arrays or explicit latent nodes. In either case the sampler treats the missing values as additional unknowns.
How do I know if the MCMC has converged with missing data?
Check R-hat and effective sample size for both the model parameters and a representative set of the imputed values, and inspect trace plots for good mixing. Higher missingness often requires longer chains, so run longer than you would on complete data and recheck the diagnostics.
Related methods
Sources
Little, R. J. A. & Rubin, D. B. (2002). Statistical Analysis with Missing Data (2nd ed.). Wiley.
ISBN: 978-0471183860Tanner, M. A. & Wong, W. H. (1987). The calculation of posterior distributions by data augmentation. Journal of the American Statistical Association, 82(398), 528-540.
Open DOI reference