Current Article  

Metropolis-Hastings Markov Chain Monte Carlo Sampling

The Metropolis-Hastings Markov Chain Monte Carlo Sampling algorithm can draw samples from any probability distribution P(x), requiring only thatdensity can be calculated at x. The algorithm generatessetstates xt which isMarkov chain because each state xt depends only onprevious state xt-1. The algorithm depends oncreation ofproposal density Q(xt;x') which depends oncurrent state xtwhich can generatenew proposed sample x'. For example,proposal density could beGaussian function centred oncurrent state xt

This proposal density would generate samples centred aroundcurrent statevariance σ2I. So we drawnew proposal state from Q(xt,x')then calculatevalue

where

islikelihood ratio betweenproposed sample x' andprevious sample xt, and

isratio ofproposal densitytwo directions (from xtx'vice versa). Thisequal1 ifproposal densitysymmetric. Thennew state xt+1chosen withrule

The Markov chainstarted fromrandom initial value x0 andalgorithmrun forfew thousand iterations so that this initial state"forgotten". These samples, whichdiscarded,known as burn-in. The algorithm works best ifproposal density matchesshape oftarget distribution P(x), butmost cases thisunknown. IfGaussian proposalusedvariance parameter σ2 hasbe tuned duringburn-in period. Thisusually done by calculatingacceptance rate, which isfractionproposed samples thataccepted inwindow oflast N samples. Thisusually setbe around 60%. Ifproposal stepstoo smallchain will mix slowly i.e.will move aroundspace slowlyconverge slowlyP(x). Ifproposal stepstoo largeacceptance rate will be very low becauseproposalslikelylandregionsmuch lower probability density so a1 will be very small.

Copyright 2004. All rights reserved.