Random-Walk Metropolis (MCMC) Java Applet

[Oops, your browser will not display java applets.]

This applet runs a simple random-walk Metropolis MCMC algorithm on a simple target distribution consisting of just a few points. The blue bars represent the target distribution; the black bars represent the chain's empirical distribution. Over time, the black bars should converge in height to the blue bars.

The applet accepts the following keyboard inputs. (You may need to "click" on the applet first.)



Applet by Jeffrey S. Rosenthal (contact me).

[Return to my Applets Page / Home Page]