Let be a nonnegative target kernel and a proposal distribution. At state , propose , draw an independent uniform , and move to ifOtherwise keep . This is the Metropolis–Hastings algorithm. Start on the positive target support, with the usual zero-ratio conventions. The unknown normalizing constant cancels.
An unnormalized kernel is sufficient, provided . A genuinely improper target with infinite integral is not a probability density and cannot supply a stationary target probability distribution. The acceptance formula can still be written formally, but cannot be said to generate samples from that nonexistent probability law.
Because rejected proposals leave the state unchanged, the Markov kernel includes an atom:Detailed balance with a probability measure means the measure identityWhere both sides have ordinary densities, this reads . The measure formulation also includes the rejection atom. Integrating it shows that is invariant.
For the off-diagonal moves, the Metropolis–Hastings acceptance probability givesThis expression is unchanged by interchanging and . The rejected-move measure is supported on the diagonal and is also symmetric. Therefore the whole transition measure satisfieswhich proves detailed balance, including the atom that an off-diagonal density alone would omit. Consequently the Metropolis–Hastings algorithm kernel preserves the normalized target measure.
For coordinate , keep the other coordinates fixed and propose from the full conditional . This is a Metropolis–Hastings algorithm proposal on that coordinate fibre, with deterministic equality . Its acceptance ratio isThus the coordinate update has acceptance probability one and is exactly a single-coordinate Gibbs sampler update.
A systematic sweep through coordinates is the composition of these kernels. Its joint transition density isThe already updated coordinates are new values, and the not-yet-updated coordinates are old values. Each coordinate kernel preserves , so their composition also preserves it. Systematic Gibbs sampling need not be reversible: each individual coordinate kernel is reversible, but their ordered composition need not be reversible; invariance is the property needed here. A random-scan mixture of the coordinate kernels is reversible.
Use the ergodic theorem for a positive Harris recurrent Markov chain: for an invariant distribution and an integrable function , the time average converges almost surely to under the usual ergodicity conditions. This is the relevant theorem for correlated Metropolis–Hastings algorithm output, rather than the strong law of large numbers. Here is integrable. Indeed, puttingwe have , which bounds the unnormalized density by a constant times an integrable Gaussian density and also gives finite first moments.
For a proposal scale , initialize anywhere in . At each step draw independent random variables with the standard normal distribution and an independent uniform , propose , and accept whenOtherwise set . The normal proposal is symmetric, so its density cancels; the target normalizing constant also cancels. Include every state in the average, including repeated states after rejection. The ergodic theorem for a positive Harris recurrent Markov chain then givesA fixed discarded initial segment does not change this limit.
Small proposal variance gives high acceptance but tiny moves and strong serial dependence. Large variance gives more ambitious moves, but many proposals enter very low-density regions and are rejected, creating long runs at one state. An intermediate scale should be assessed by exploration and effective sample size of a Markov chain, not acceptance rate alone.
This density has two modes, at and their interchange. To see this, stationary points satisfy , implying either or . The unequal solutions have and are local minima of ; the equal solution is a saddle. Mode switching is therefore a material part of proposal-scale selection: a chain confined to one mode can have high acceptance and a misleading finite-run estimate.
Two modes of the quartic target density, with the diagonal saddle between them, explaining slow mode switching in random-walk Metropolis-Hastings
. Details. Articles by others on the same topic
There are currently no matching articles.
