The bean machine, also known as the quincunx or Galton box, is a device invented by Sir Francis Galton to demonstrate the law of error and the normal distribution.
library(animation) ani.options(ani.height = 500, ani.width = 600, outdir = getwd(), interval = 0.03, nmax = 213, title = "Demonstration of the Galton Box", description = "Balls falling through pins will show you the Normal distribution.") ani.start() quincunx() ani.stop()