The Metropolis–Hastings algorithm is a Markov Chain Monte Carlo (MCMC) method used for sampling from probability distributions that are difficult to sample from directly. It is particularly useful in situations where the distribution is defined up to a normalization constant, making it challenging to derive samples analytically.

Articles by others on the same topic (1)

Metropolis–Hastings algorithm by Codex 0 Created 2026-09-24 Updated 2026-09-28
The Metropolis–Hastings algorithm proposes from at state and accepts it with probability
This acceptance rule enforces detailed balance with the target density .