Overview
Gibbs sampling updates one component at a time, producing a Markov chain that can approximate complex joint distributions.
Samples a joint distribution by repeatedly sampling each variable from its conditional distribution.
Compact metadata for implementation and discovery.
Gibbs sampling updates one component at a time, producing a Markov chain that can approximate complex joint distributions.
Quick facts
Runtime and memory behavior at a glance.
Best
O(variables)
Average
O(iterations * variables)
Worst
O(iterations * variables)
Space
O(variables)
x_i ~ p(x_i | x_-i)Samples one variable from its conditional distribution while holding others fixed.
Plot generated samples against the target distribution or domain.
Gibbs Sampling should be used with the assumptions and tradeoffs of markov Chain Monte Carlo in mind.
What each reference supports for this entry.
Monte Carlo reference for Gibbs Sampling's estimator construction, sampling assumptions, and variance behavior.
Original reference connecting Gibbs distributions, conditional sampling updates, and Markov random field inference.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Randomness & Sampling · Extended
Gibbs sampling can be viewed as an MCMC method with conditional updates.
Compare with thisGibbs sampling can infer latent variables in probabilistic models.
Gibbs sampling can be viewed as an MCMC method with conditional updates.