Law of Large Numbers: Convergence to the Mean
Problem
Roll a fair die repeatedly. Show how the running average converges to 3.5 as the number of rolls increases.
Explanation
The Law of Large Numbers (LLN)
As the number of trials increases, the sample mean converges to the expected value. More trials → closer to the theoretical average. This is the mathematical foundation of why statistics works.
Step-by-step example: rolling a fair die
Step 1 — Compute the expected value.
Step 2 — Roll and compute running averages:
- After 1 roll (got a 4): average (far from 3.5)
- After 10 rolls: average (closer)
- After 100 rolls: average (quite close)
- After 1,000 rolls: average (very close)
- After 10,000 rolls: average (nearly exact)
What the LLN does NOT say
- ❌ "If you get 5 heads in a row, tails is 'due'." (The gambler's fallacy — each flip is independent!)
- ❌ "The average will be exactly 3.5 after enough rolls." (It converges, but never equals exactly.)
- ✅ "The average will get arbitrarily close to 3.5 as grows."
Why this matters
The LLN is why casinos are profitable (they play millions of games at a slight edge), why insurance works (averaging over many policyholders), and why polls with larger sample sizes are more accurate.
Try it in the visualization
Watch the running average line stabilize as rolls accumulate. Early on, it swings wildly. After thousands of rolls, it locks onto 3.5. Toggle "5 independent trials" to see multiple lines all converging to the same value.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.