Bayesian methodsBayesianBayesian / computationalModel

MCMC with Missing Data

Also known as: MCMC missing data, data augmentation MCMC, Bayesian multiple imputation, MCMC imputation

OriginatorTanner & Wong (data augmentation); extended by Gelfand & Smith, RubinYear1987Sources2Related methods14

MCMC with missing data is a Bayesian computational strategy that treats unobserved values as additional unknown parameters. By alternating between sampling the missing values from their predictive distribution and sampling the model parameters from their posterior, the algorithm produces a valid joint posterior that fully accounts for uncertainty introduced by the missingness.

Key highlights

  • Propagates missingness uncertainty correctly into posterior distributions and credible intervals.
  • Works natively within a Bayesian hierarchical or regression model without a separate imputation stage.
  • Handles arbitrary missing-data patterns including multivariate missingness.
  • Produces a single coherent posterior rather than combining results from multiple imputed datasets.
  • Allows the missing-data model to share information with the analysis model through a joint specification.

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use MCMC with missing data when you are already working within a Bayesian framework and need principled handling of incomplete data under the missing at random (MAR) or missing completely at random (MCAR) assumption — common in longitudinal studies, clinical trials, and survey research. It is preferable to ad hoc deletion or single imputation because it propagates missingness uncertainty through all inferences. Do not use it when data are missing not at random (MNAR) without modeling the missingness mechanism explicitly, or when missingness is negligible (less than 5%) and a complete-case analysis would suffice. Avoid when computational budget is limited and a faster frequentist multiple imputation approach is adequate.

Strengths & limitations

Strengths
  • Propagates missingness uncertainty correctly into posterior distributions and credible intervals.
  • Works natively within a Bayesian hierarchical or regression model without a separate imputation stage.
  • Handles arbitrary missing-data patterns including multivariate missingness.
  • Produces a single coherent posterior rather than combining results from multiple imputed datasets.
  • Allows the missing-data model to share information with the analysis model through a joint specification.
Limitations
  • Requires the MAR or MCAR assumption; MNAR data need an explicit model for the missingness mechanism.
  • Substantially more computationally intensive than standard MCMC on complete data, particularly with high missingness rates.
  • Convergence can be slow when the fraction of missing data is large or missingness is strongly informative.
  • Model misspecification for the missing-data distribution can bias inferences even more than simpler imputation approaches.

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

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 and ensuring the imputation and analysis models are always congenial.

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 you must explicitly model the missingness mechanism as part of the joint model. Without this, the posterior will be biased regardless of which MCMC algorithm is used.

How much missing data is too much?

There is no universal threshold, but missingness above 40-50% substantially degrades posterior precision and slows convergence. The pattern matters as much as the rate: monotone missingness (as in dropout) is generally easier to handle than arbitrary multivariate missingness.

Can I use this in Stan or PyMC?

Yes. Both Stan and PyMC support declaring missing values as latent variables to be sampled. Stan requires declaring them as parameters; PyMC handles them via masked arrays or explicit latent nodes. Either way the sampler treats them as additional unknowns automatically.

How do I know if the MCMC has converged with missing data?

Check R-hat and effective sample size for both model parameters and a representative set of the imputed values. Trace plots should show good mixing. Higher missingness typically requires longer chains; doubling the default iterations and thinning is a reasonable starting point.

Sources

  1. 1.
    Little, R. J. A. & Rubin, D. B. (2002). Statistical Analysis with Missing Data (2nd ed.). Wiley.
    ISBN 978-0471183860
  2. 2.
    Tanner, M. A. & Wong, W. H. (1987). The calculation of posterior distributions by data augmentation. Journal of the American Statistical Association, 82(398), 528-540.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). MCMC with missing data. ScholarGate. https://scholargate.app/bayesian/mcmc-with-missing-data

MCMC with Missing Data | ScholarGate