STA102 · Probability simulations

Order out of chaos

Each ball takes a wildly unpredictable path through the pegs. The pile they make is predictable, and it is always the same shape.

From the slides: Why should anyone care about chance?.

The Galton board

At every peg a ball bounces right with probability p and left otherwise. After R rows its bin is the number of rightward bounces.

Balls landed
0
Average bin
—
Most common bin
—

bars: balls landed in each bin   dots: the expected number, n·C(R,k) pk(1−p)R−k

Show the numbers

The same picture, in dice

Roll n fair dice and take their average. With one die every value from 1 to 6 is equally likely; with more dice the averages crowd around 3.5 in a bell shape that gets narrower as n grows.

Rolls
0
Average of the averages
—
exact 3.5
Spread (standard deviation)
—

What to notice