1Parent population
Drag on the chart to draw your own population.
2Draws so far· path 1
Every value drawn so far in path 1. As n grows the bars take the shape of the population.
Law of Large Numbers Simulator
Drag on the chart to draw your own population.
Every value drawn so far in path 1. As n grows the bars take the shape of the population.
What you see. Each path is one long sequence of draws from the population in panel 1 — think of one person rolling a die again and again. Panel 2 shows every value drawn so far in path 1. Panel 3 plots each path's running mean x̄ₙ (the mean of its first n draws) against n. Panel 4 checks the convergence.
The law of large numbers. As n grows, x̄ₙ gets close to μ and stays there. Precisely (the weak law): for any margin ε, the chance that x̄ₙ misses μ by more than ε goes to 0. Panel 4 estimates that chance from all the paths and compares it with Chebyshev's bound σ²/(nε²) and the normal approximation 2(1 − Φ(ε√n/σ)).
Things to try.
Colours. Red ochre is the population, tin grey the draws, dark blue the running means and dark green the convergence check. The bold line is path 1; dashed lines are theory.