Markov Chain Monte Carlo (MCMC) is a class of algorithms for drawing samples from a target distribution by constructing a Markov chain whose stationary distribution is . Because the chain must mix before its output approximates the target, MCMC trades the independence of direct Monte Carlo for the ability to sample from distributions that have no closed-form and resist other approximations. After a burn-in period the chain's draws are used to estimate posterior means, variances, quantiles, and marginal densities.
Cycle through each block drawing from its full conditional . A special case of MH with acceptance probability 1 (when conditionals are available in closed form). See Gibbs Sampler for full details: convergence proof via fixed-point equation, Rao-Blackwell density estimator, blocked sampling, Adaptive Rejection Sampling (ARS) for log-concave conditionals, data augmentation strategy.
Draw a proposal from and accept with probability . Requires only the ability to evaluate up to a normalising constant. See Metropolis-Hastings Algorithm for full details: five candidate families, Product of Kernels principle, Metropolis-within-Gibbs, prefetching (Strid 2010).
Embed MH steps for non-conjugate blocks inside a Gibbs sweep. The combined kernel has as its invariant distribution by the Product of Kernels principle: if and each leave invariant, so does . Used in Time-Varying Parameter VAR (TVP-VAR), Markov-Switching GARCH (MS-GARCH) (Das-Yoo 2004), hierarchical Seemingly Unrelated Regression (SUR) (Chib-Greenberg 1995b), and stochastic volatility samplers.
Augment with fictitious momentum . Define with and . Each HMC step: (1) resample ; (2) run leapfrog steps with stepsize to get proposal ; (3) accept with probability . The leapfrog integrator is symplectic — it exactly preserves phase-space volume, eliminating the Jacobian correction, and approximately conserves so distant proposals are accepted with high probability (~65% optimal). Scaling advantage: the total arithmetic cost per independent sample scales as for HMC versus for random-walk Metropolis — a improvement (HMC uses gradient evaluations per sample, RWM density evaluations, each costing ). Requires differentiable ; cannot handle discrete parameters directly. The No-U-Turn Sampler (NUTS, Hoffman-Gelman 2011) automates stepsize and trajectory-length tuning and is the default in Stan. See Hamiltonian Monte Carlo for full details: leapfrog derivation, three key properties (reversibility, volume preservation, energy conservation), mass matrix preconditioning, variations (windowed HMC, partial momentum refreshment, tempered trajectories), and Riemannian extensions.
See Reversible Jump MCMC for full details. Extends MH to variable-dimension parameter spaces (Green 1995): proposes moves between models of different sizes via dimension-matching bijections with Jacobian correction . Used for Bayes factor computation when model dimension varies (Han-Carlin 2001 benchmark: RJ for AIDS CD4 model where Gibbs-based methods fail) and for nonparametric regression with unknown dimension (Perron-Mengersen 2001: birth/death/move over spline knot count ).
Propagate a weighted population of particles forward in time; resample to avoid weight degeneracy. Outside the scope of current wiki sources but referenced in Carvalho-Johannes-Lopes-Polson (2010) particle learning.
Run chains from overdispersed starting points. Compare within-chain variance and between-chain variance : . Values near 1 indicate convergence; signals poor mixing. Requires multiple parallel chains.
Split a single chain into an early fraction (first 10%) and a late fraction (last 50%). Compute a -statistic for the difference in means using spectral variance estimates. Under convergence . Reports the Relative Numerical Efficiency (RNE) = ; RNE 1 indicates autocorrelation loss.
Given a desired quantile , accuracy , and probability , derives the minimum number of MCMC draws and required thinning via a two-state Markov chain approximation. Useful for pre-run planning; implemented in CODA.
Three criteria ( anchored ratio, difference, ratio) that detect convergence to the wrong distribution — the failure mode standard diagnostics miss. Core identity: ; violations signal non-stationarity or multimodality. Applied to bimodal posteriors and misspecified models.
Inefficiency factor (Chib 2001, eq. 13): ratio of numerical variance to the variance under i.i.d. sampling. Estimated by batch means (batch size chosen so first-order autocorrelation of batch means ); inverse is Geweke's Relative Numerical Efficiency. Values signal severe autocorrelation and motivate improved blocking or reparameterization.
Thinning is never beneficial (MacEachern-Berliner 1994): for any stationary Markov chain, the variance of the full-chain mean is ≤ the variance of any systematic subsample mean. The only legitimate reason to thin is storage or downstream processing cost. Preferred alternatives: batching and spectral variance estimation. See Gibbs Sampler for the proof and the stationary time-series trap.
Blocking: drawing multiple parameters jointly (block Gibbs) reduces the effective autocorrelation by cutting the number of successive conditioning steps. Critical for high-dimensional problems where single-site updates mix slowly.
Rao-Blackwellisation: replace a Monte Carlo estimate with its conditional expectation . Always reduces variance (Casella-George 1992); especially useful for binary indicators in mixture/variable-selection models.