21.01.2015 Views

Metropolis-Hastings algorithm

Metropolis-Hastings algorithm

Metropolis-Hastings algorithm

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General <strong>Metropolis</strong>-<strong>Hastings</strong> <strong>algorithm</strong><br />

• Sample values from target distribution generated by taking a random<br />

walk through the multidimensional parameter space.<br />

– At each time step:<br />

• Having generated proposed new position, decision made whether to<br />

accept or reject it based on movement rule:<br />

p<br />

move<br />

<br />

<br />

<br />

min <br />

P<br />

<br />

proposed<br />

P <br />

<br />

,1<br />

<br />

<br />

<br />

<br />

current<br />

<br />

• Random number r generated from uniform interval [0, 1].<br />

• If r is between 0 – p move , move is accepted.<br />

– Process repeated.<br />

– In the long run: positions visited by the random<br />

walk will closely approximate the target distribution.<br />

θ 2<br />

θ 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!