MCMC Robot applet

Markov chain Monte Carlo (MCMC) is a form of computer simulation that can be used to create a topographical map of a probability density surface. This applet allows you to create your own two-dimensional “landscape” composed of a mixture of bivariate normal “hills”. A metaphorical “MCMC robot” walks around on this surface, and the rules that it follows about where to step next end up causing it to spend an amount of time in any one spot that is proportional to the probability density of that spot.


This applet makes use of the excellent d3js javascript library. Please see the GitHub site for details about licensing of other libraries that may have been used in the source code for this applet.


Creative Commons Attribution 4.0 International. License (CC BY 4.0). To view a copy of this license, visit or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.