Metropolis Algorithm javascript program, by Jeffrey Rosenthal. Description at the bottom.

This program displays a Metropolis algorithm on a very simple target distribution, with possible annealing or adapting. The target density is shown in blue, the empirical density in black, and the annealing (powered) target in green. Keyboard shortcuts (you might need to click on the canvas first):

It may be cited as: J.S. Rosenthal (2020), Metropolis Algorithm javascript program. Available at: probability.ca/met


This program is written by Jeffrey Rosenthal. See also my other JavaScript, my Stochastic Processes book, and my Java Applets.