
A Galton board is a vertical board with N rows of pegs onto which a ball is dropped. Each time a ball hits a peg, it has a probability p of bouncing to the left and a probability of 1-p of bouncing to the right. The simulation's histogram shows the distribution of final x-coordinates as each ball leaves the board and is collected into bins.
The simulation gives rise to the binomial distribution if the probabilities of left and right bounces are equal. At first there does not seem to be any pattern but after many trials the familiar "bell curve" shape begins to emerge.
Wikipedia: http://en.wikipedia.org/wiki/Galton_board
The Galton Board Model was created by Wolfgang Christian using the Easy Java Simulations (EJS) version 4.1 authoring and modeling tool. The exercises were written by Anne Cox.
You can examine and modify a compiled EJS model if you run the model (double click on the model's jar file), right-click within a plot, and select "Open Ejs Model" from the pop-up menu. You must, of course, have EJS installed on your computer. Information about Ejs is available at: <http://www.um.es/fem/Ejs/> and in the OSP comPADRE collection <http://www.compadre.org/OSP/>.