12.07.2015 Views

Monte Carlo Inference - STAT - EPFL

Monte Carlo Inference - STAT - EPFL

Monte Carlo Inference - STAT - EPFL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Algorithm□ At each iteration the MCMC code then amounts to– attempt a birth move with probability b k– attempt a death move with probability d k– attempt an update move with probability 1 − b k − d kuntil finished.□ Coded in R (around 10 hours), 10 5 steps took around 60 seconds□ The code is a little complex, because– in R arrays cannot start with index 0, so care is needed with subscripts– the state vector is (k,β,α,λ 0 ,...,λ k ,u 1 ,... ,u k ), of length 2k + 4, which keeps changing. socare is needed to ensure the right parameters are used at each step□ Specialised convergence diagnostics are needed, because the meaning of the parameters changes:for example λ 4 only exists when k ≥ 4.<strong>Monte</strong> <strong>Carlo</strong> <strong>Inference</strong> Spring 2009 – slide 212OutputLeft: 20 realisations from the reversible jump chain. Right: average rate λ(u) from the 10 5 realisationsIntensity0 1 2 3 4 5Mean intensity0 1 2 3 4 51880 1920 19601880 1920 1960<strong>Monte</strong> <strong>Carlo</strong> <strong>Inference</strong> Spring 2009 – slide 213205

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

Saved successfully!

Ooh no, something went wrong!