PHYS366: Statistical Methods in Astrophysics
Lesson 4: Inference in Practice: Sampling Techniques
Goals for this session:
- Brainstorm, implement, and test methods of accelerating the convergence of Metropolis-based MCMC.
- Explore the common and uncommon failure modes of MCMC.
- Learn about the advanced techniques that address these problems (or don't!), and the available software packages implementing them.
- Ivezic section 5.8
- MacKay chapters 29-30
- Gelman chapters 11 and 13
- Online resources (reading and software)
About this session
By now, you know that the main practical challenge of doing Bayesian inference is obtaining samples from the posterior distribution. Today's class is all about the nuts and bolts of sampling from probability distributions that, in general, we don't know very much about ahead of time. We'll start out by playing around with a case where we know the right answer analytically, namely the posterior from fitting a linear model to data with Gaussian uncertainites.
- recap generative model
- generate some data
- review likelihood function
- review analytic posterior
Accelerating Metropolis sampling
More advanced sampling techniques