Appendix 3 Markov Chain Monte Carlo and Gibbs Sampling