Download Note

Transcript
bound). So you might like to check for yourself9 that one way to sample from (3) is to draw a
uniformly distributed object from A, and accept it with probability c{t(x∪{ξ})−t(x)} or try again.
(In case anyone wonders why we do not apply rejection sampling for the whole process – for
the sort of datasets we are interested in the probability of acceptance would be astronomically
small.)
There are all sorts of practical considerations, but this provided us with a way to simulate our
process for the sort of parameter values in which we were interested that was just about fast
enough for our limited computing resources as lowly students, and hence to begin to answer
our questions.
Be aware that there are often a lot of choices in designing MCMC methods – the one I have
sketched is good for c < 1, but not for c > 1, for example. People have since found ways
using MCMC to simulate it exactly (Berthelsen & Møller, 2003).
So far I have described using a Markov chain to obtain a single sample from a stochastic
process by running it for an infinite number of steps. In practice we run it for long enough to
get close to equilibrium (called a ‘burn-in’ period) and then start sampling every m ≥ 1 steps.
We can estimate any distributional quantity via the law of large numbers
N
1 X
h(Xmi ) → E h(X)
N i=1
for any m, so if h() is cheap to compute we may as well average over all steps. In practice
we often take m large enough so that samples are fairly dissimilar—in the spatial process we
used m = 2n.
There are many practical issues. Where do we start? How do we know when we are ‘close
to equilibrium’? And so on. Note that the issue of whether we are yet close to equilibrium
is critical if we are simulating to get an idea of how the stochastic process behaves – Geman
& Geman (1984) based all their intuition on processes which were far from equilibrium, but
incorrect intuition led to interesting statistical methods.
References
MCMC can be approached from wide range of viewpoints – from theoretical to practical,
as a general technique or purely Bayesian, and at different levels (especially in probability
background). Texts which have interesting perspectives include Gamerman & Lopes (2006)
Gelman et al. (2004), Gilks et al. (1996) and Robert & Casella (2004). As a topic in simulation, it is covered in Ripley (1987) and Dagpunar (2007), and as a method of integration in
Evans & Swartz (2000). The simulation books, Gilks et al. (1996) and Gamerman & Lopes
(2006) are perhaps the most approachable unless you have a strong probability background
(when I suggest Robert & Casella (2004)).
For those unfamiliar with applied Bayesian work, Albert (2009) and Gelman et al. (2004) provide accessible introductions to the computational aspects with non-trivial worked examples.
9
this is an example of rejection sampling, so you need write it in the standard form (as given for example in
Appendix A) and check the distribution it samples from is indeed the correct one.
5