marblesexact binomial expectationpegs (right with probability p)
Couldn't start the 3D scene.

Galton Board Bias Lab: Binomial Pegs, Chi-Square Fit and the Central Limit Theorem, 3D

Drop marbles through a Blender-built bean machine. At every peg a marble goes right with probability p, so the bin it lands in is Binomial(n, p). Change the number of rows, the bias, the release rate and the slow-motion factor, and watch the histogram grow towards the binomial and normal curves while live mean, variance and chi-square fit statistics are compared with n p, n p (1 - p) and the exact distribution. Independent numerical checks include a brute-force enumeration of all paths, a Monte Carlo run and a Berry-Esseen bound.

Made with 🟠 Blender · Three.js