Imagine you want to know the average height of a mountain range — but you can only take measurements at random spots, and the range is so vast and jagged that you cannot compute the average analytically. You wander around, spending more time in the tall regions and less in the valleys, and eventually your sample reflects the shape of the terrain. That wandering is, in essence, Markov Chain Monte Carlo.
MCMC is a family of algorithms for sampling from a probability distribution when direct calculation is impossible. The workhorse is the Metropolis algorithm, invented in 1953 by Nicholas Metropolis, Arianna Rosenbluth, Marshall Rosenbluth, Augusta Teller, and Edward Teller while simulating the thermodynamics of hard-sphere molecules. Decades later it was recognized as one of the ten most important algorithms of the twentieth century.
The core insight is disarmingly simple: you do not need to know everything about a distribution to sample from it. You only need to compare relative probabilities — is the proposed next state more or less likely than the current one? That ratio is almost always easy to compute, even when the normalizing constant (the total area under the curve) is completely intractable.
This single trick unlocks Bayesian inference, statistical physics, molecular dynamics, and modern machine learning. It is solved algorithmically — the Metropolis–Hastings algorithm is proven to converge to the correct distribution in the limit — but the practical challenge of mixing time (how long the walk must run before its samples are trustworthy) remains an active research frontier.
Comments
Loading comments...