The Settling Average

A Law of Large Numbers demo: repeat a random experiment many times and watch the running average settle down near the long-run expected value.

Experiment

Pick a random experiment. The yellow dots are individual outcomes. The blue curve is the running average.

Trials per click/run
trials100
slowfast
Display
maximum visible trials500
zoomed inlong run
Run the experiment

At first the average jumps around a lot. After many trials, each new outcome has less power to move the average.

Student challenge

Try stopping after 10 trials, 100 trials, and 1000 trials. When does the running average begin to look stable?

True expected value
—
Number of trials
0
Current average
—
Current total
0
Distance from expected
—

Running average over time

The blue line is the average after each trial. The green line is the theoretical long-run value.

running average expected value outcomes

The Law of Large Numbers, in plain English

The Law of Large Numbers says that as we repeat the same random experiment more and more times, the average of the outcomes tends to get closer to the true expected value.

It does not mean every short run will look perfect. Short runs can be wild. The point is that the long-run average becomes more stable.

average ≈ expected value
In symbols, the sample average is often written as x̄. The expected value is often written as μ. The Law of Large Numbers says that, over many repeated trials, x̄ tends to move closer to μ.