Metropolis–Hastings algorithm
Builds on Markov chainTransition matrixDetailed balanceStationary distributionMarkov chain Monte Carlo
Definition
Let be a countable set and let be a probability distribution on with for all . Let be a transition matrix, the proposal, such that if and only if . For with , the acceptance probability is The Metropolis–Hastings chain is the Markov chain built as follows. Given , draw from . With probability set ; otherwise set . Its transition matrix has for and .
Remarks
For , , which is symmetric in and . So satisfies detailed balance with respect to , and is a stationary distribution. Only the ratio is used, so may be known up to a constant factor. Example: if is symmetric, ; this special case is the Metropolis algorithm. Non-example: the chain that always accepts the proposal has transition matrix , whose stationary law is in general not ; it skips the acceptance step. The chain is a Markov chain Monte Carlo method when it is also irreducible. The same construction works on general state spaces with densities in place of and .
Reading path
To understand this page from the ground up, read these 55 pages in order. The foundations come first.
- Construction of the reals from Cauchy sequences concept
- Detailed balance concept
- Element definition
- Integers object
- Markov chain Monte Carlo concept
- Ordered field definition
- Proposition concept
- Random experiment concept
- Rational numbers object
- Real numbers object
- Stationary distribution concept
- Transition matrix concept
- Set definition
- Ring of integers statement
- Disjunction definition
- Implication definition
- Predicate definition
- Ordered pair definition
- Union definition
- Sample space definition
- Existential quantifier definition
- Universal quantifier definition
- The rationals form a field statement
- Cartesian product definition
- Subset definition
- Uniqueness quantifier definition
- The rationals form an ordered field statement
- Binary relation definition
- Universal set definition
- Power set definition
- Order on the reals definition
- Function definition
- Complement definition
- Interval definition
- Injective function definition
- Preimage of a set definition
- Sigma-algebra definition
- Countable set definition
- Event definition
- Borel sigma-algebra definition
- Probability axioms concept
- Probability measure definition
- Probability space definition
- Conditional probability definition
- Random variable definition
- Independence of two events definition
- Discrete random variable definition
- Stochastic process concept
- Random variable with a density definition
- Conditional independence definition
- Expected value definition
- Conditional expectation definition
- Markov property definition
- Markov chain definition
- Metropolis–Hastings algorithm definition
Further reading
About this page
| Tag | A02K3MKQ3Q |
|---|---|
| URI | m2://A02K3MKQ3Q |
| Kind | definition |
| Writing | W0 stub |
| MSC | 65C05, 60J22, 65C40 |
| Defines | Metropolis–Hastings algorithm |
| Uses | Markov chain, Transition matrix, Detailed balance, Stationary distribution, Markov chain Monte Carlo |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.