Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Bayesian›Gibbs Sampling with Missing Data
Bayesian methodsBayesian / computational

Gibbs Sampling with Missing Data

Gibbs Sampling with Missing Data Imputation · Also known as: data augmentation Gibbs sampler, Gibbs sampler with data augmentation, Bayesian imputation via Gibbs sampling, MCMC missing data imputation

Gibbs sampling with missing data treats unobserved values as additional unknowns alongside model parameters and samples all of them jointly within a Markov chain Monte Carlo loop. The method alternates between drawing the missing values from their conditional distribution given the parameters and drawing the parameters from their conditional distribution given the completed data, producing a posterior over both simultaneously.

ScholarGate
  1. Bayesian methods
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Gibbs Sampling with Missing Data
Bayesian Hierarchical Mo…Bayesian Inference with…Data AugmentationGibbs SamplingMCMC with missing dataMultiple ImputationBootstrap Simulation wit…Hamiltonian Monte Carlo…Metropolis-Hastings with…Monte Carlo Simulation w…

+2 more

When to use it

Use Gibbs sampling with missing data when you are fitting a Bayesian model and the data contain missing values that should be handled within the model rather than by complete-case analysis or a separate pre-imputation step. It is especially well-suited when the missing-data pattern is complex, when auxiliary variables that predict missingness are available and should be included, or when you need coherent uncertainty propagation through both the imputation and the parameter estimation. Do not use it when the missing-data mechanism is MNAR and you are unwilling to specify a model for it; when missingness is trivially low (under 5%) and you simply want to impute quickly before fitting; or when computation time is the binding constraint and a simpler multiple-imputation procedure would suffice.

Strengths & limitations

Strengths
  • Handles missing data and parameter estimation in a single coherent probabilistic model without a separate imputation stage.
  • Propagates all uncertainty — from both missingness and parameter estimation — into posterior credible intervals.
  • Works for arbitrarily complex missing-data patterns, including multivariate and structured data.
  • Auxiliary variables that predict missingness can be included naturally in the model.
  • Produces multiple imputed datasets as a by-product, usable for secondary analyses.
Limitations
  • Requires specifying a joint model for all partially observed variables, which can be difficult in high dimensions.
  • Valid only under MAR or MCAR; MNAR requires an additional sensitivity model.
  • Computational cost scales with the number of missing values and model complexity.
  • Convergence can be slow when missing-data rates are high or parameters are correlated.

Frequently asked

How does this differ from multiple imputation by chained equations (MICE)?

MICE imputes each variable sequentially using a series of regression models and then fits the substantive model on the completed datasets, combining estimates with Rubin's rules. Gibbs sampling with missing data performs imputation and model fitting simultaneously within a single Bayesian model, giving coherent uncertainty propagation without a separate combination step. The Bayesian approach is more principled but requires specifying a full joint model.

Do I need to worry about the missing-data mechanism?

Yes. The standard approach is valid when data are missing at random (MAR), meaning missingness depends only on observed quantities. If missingness depends on the unobserved values themselves (MNAR), you must model the missing-data mechanism explicitly or conduct sensitivity analyses. Complete-case analysis and standard imputation methods share this requirement.

Can the method handle mixed variable types (continuous, binary, ordinal)?

Yes. Each variable type is given an appropriate conditional model — Normal for continuous, logistic for binary, ordered logit for ordinal — and Gibbs steps are derived for each. In practice, software such as JAGS and Stan handles this by letting you specify the likelihood for each observed node and treating missing nodes as latent variables.

How many iterations are typically needed?

This depends on the model and the missing-data rate. A common starting point is 1 000–2 000 burn-in draws followed by 2 000–10 000 post-burn-in draws per chain, with at least four chains run in parallel. Convergence diagnostics (R-hat below 1.01, bulk and tail effective sample sizes above 400) should guide the final decision rather than fixed rules.

What software supports this approach?

JAGS and Stan allow missing values to be declared as unknowns and sample them automatically during the Gibbs or HMC sweep. The R packages rjags, R2jags, rstan, and brms all support this workflow. In Python, PyMC and NumPyro offer equivalent functionality.

Sources

  1. 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. DOI: 10.1080/01621459.1987.10478458 ↗
  2. Little, R. J. A. & Rubin, D. B. (2002). Statistical Analysis with Missing Data (2nd ed.). Wiley. ISBN: 978-0471183860

How to cite this page

ScholarGate. (2026, June 3). Gibbs Sampling with Missing Data Imputation. ScholarGate. https://scholargate.app/en/bayesian/gibbs-sampling-with-missing-data

Related methods

Bayesian Hierarchical Model with Missing DataBayesian Inference with Missing DataData AugmentationGibbs SamplingMCMC with missing dataMultiple Imputation

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bayesian Hierarchical Model with Missing DataBayesian↔ compare
  • Bayesian Inference with Missing DataBayesian↔ compare
  • Data AugmentationDeep learning↔ compare
  • Gibbs SamplingBayesian↔ compare
  • MCMC with missing dataBayesian↔ compare
  • Multiple ImputationStatistics↔ compare
Compare side by side →

Referenced by

Bayesian Hierarchical Model with Missing DataBootstrap Simulation with Missing DataHamiltonian Monte Carlo with Missing DataMetropolis-Hastings with Missing DataMonte Carlo Simulation with Missing DataSequential Monte Carlo with Missing DataVariational Inference with Missing Data

Similar methods

MCMC with missing dataBayesian Inference with Missing DataMetropolis-Hastings with Missing DataHamiltonian Monte Carlo with Missing DataGibbs SamplingBayesian Hierarchical Model with Missing DataMonte Carlo Simulation with Missing DataMultilevel Gibbs Sampling

Related reference concepts

Gibbs SamplingGibbs Sampling (Statistical Computing)EM AlgorithmBayesian Computation and MCMCMissing Data and AttritionMarkov Chain Monte Carlo

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Gibbs Sampling with Missing Data (Gibbs Sampling with Missing Data Imputation). Retrieved 2026-07-21 from https://scholargate.app/en/bayesian/gibbs-sampling-with-missing-data · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Tanner & Wong (data augmentation), Gelfand & Smith (Gibbs sampler)
Year
1987–1990
Type
Bayesian computational method
DataType
any data with partially observed variables
Subfamily
Bayesian / computational
Related methods
Bayesian Hierarchical Model with Missing DataBayesian Inference with Missing DataData AugmentationGibbs SamplingMCMC with missing dataMultiple Imputation
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account