A quincunx is a device for statistical experiments that demonstrates the Central Limit Theorem (CLT). Specifically, it shows that, with sufficient sample size, the binomial distribution can approximate the normal distribution.
$ cargo run --release -- 11 1000 ./plot/1000.png
10 Particles | 100 Particles | 1000 Particles |
---|---|---|
Results clearly show that as the number of particles increases, the distribution gets more normal. This is a visual proof of CLT which states that as the number of samples increases:
- The mean gets closer to the center
- The spread decreases
- The distribution gets approximately normal