MMath Mathematics with Financial Mathematics

Year of entry: 2023

Course unit details:
Markov Chain Monte Carlo

Course unit fact file
Unit code MATH48122
Credit rating 15
Unit level Level 4
Teaching period(s) Semester 2
Offered by Department of Mathematics
Available as a free choice unit? No


Since the late 1980's MCMC has been widely used in statistics and the range of its applications are ever increasing. This course will introduce MCMC methodology, in particular, the Metropolis-Hastings algorithm which is the basis for all MCMC. The implementation of MCMC will be discussed in detail with numerous examples.


Unit title Unit code Requirement type Description
Probability 2 MATH20701 Pre-Requisite Compulsory
Statistical Methods MATH20802 Pre-Requisite Compulsory
Statistical Computing MATH48091 Pre-Requisite Recommended
MATH48122 pre-requisites

Students are not permitted to take, for credit, MATH48122 in an undergraduate programme and then MATH68122 in a postgraduate programme at the University of Manchester, as the courses are identical.


To introduce the student to computational Bayesian statistics, in particular Markov chain Monte Carlo (MCMC)

Learning outcomes

On successful completion of this course unit students will be able to: 

1. apply various MCMC algorithms, such as the Metropolis-Hastings algorithm and the Gibbs sampler, to obtain samples from complex distributions and for parameter estimation in standard problems, such as regression modelling;

2. employ the Approximate Bayesian Computation (ABC) algorithm for parameter estimation in various problems, including population genetic models;

3. describe the various algorithms in words but also implement the algorithms through statistical software;

4. evaluate the performance of the algorithms using diagnostics and explain how to improve performance when necessary;

5. formulate MCMC/ABC algorithms to perform model selection.



  1. Introduction: Bayesian statistics, Markov chains. [2]
  2. Gibbs Sampler: data augmentation, burn-in, convergence. [4]
  3. Metropolis-Hastings algorithm: independent sampler, random walk Metropolis, scaling, multi-modality. [4]
  4. MCMC Issues: Monte Carlo Error, reparameterisation, hybrid algorithms, convergence diagnostics. [4]
  5. Reversible jump MCMC: known number of parameters. [2]
  6. Hamiltonian Monte Carlo. [2]
  7. Approximate Bayesian Computation: simulation based inference. [4]

Assessment methods

Method Weight
Other 50%
Written exam 50%
  • Biweekly courseworks: 50%
  • End of semester written examination: 50%

Feedback methods

Feedback tutorials will provide an opportunity for students' work to be discussed and provide feedback on their understanding.  Coursework or in-class tests (where applicable) also provide an opportunity for students to receive feedback.  Students can also get feedback on their understanding directly from the lecturer, for example during the lecturer's office hour.

Recommended reading

  • W. R. Gilks, S. Richarson and D. Spiegelhalter, Markov chain Monte Carlo methods in Practice, Chapman and Hall
  • A. Gelman, J. B. Carlin, H. S. Stern, D. B. Dunson, A. Vehtari and D. B. Rubin, Bayesian Data Analysis, Chapman and Hall.

Study hours

Scheduled activity hours
Lectures 24
Practical classes & workshops 22
Independent study hours
Independent study 104

Teaching staff

Staff member Role
Matthew Thorpe Unit coordinator

Additional notes

This course unit detail provides the framework for delivery in 20/21 and may be subject to change due to any additional Covid-19 impact.  

Please see Blackboard / course unit related emails for any further updates.

Return to course details