Some simulations, mostly written in Python 2.7.12 (originally written by Wilfred Kendall, adapted by Stephen Connor, with minor modifications by us).

We recommend copying the whole folder to your own computer.  The .pyw files can then be run with your favourite Python (2.x) interpreter. Some of them have versions that have over the years been very slightly modified by some of the lecturers (the ones with the filename appended with initials) to run on different Python setups, so if one version doesn't work for you, try another.
 
The other .py and .pyc files are auxiliary files and should not be run directly.

There are also four folders called "ising", "noise_reduction_ising", "metropolis_hastings_rw" and "metropolis_hastings_cts" which contain simulations written in Processing (processing.org), not Python. You can download Processing for free and run the scripts (the .pde files within the folders). These were written by Matt Roberts, and some are commented better than others. They should be relatively easy to understand though, so go ahead and play around with the parameters and see what happens.

All these files are provided as-is and we cannot offer technical support in running them. Enjoy!

Nicholas Georgiou & Matt Roberts
20-03-2023