HomeArticlesProbability & Statistics

The Law of Large Numbers and the Central Limit Theorem

Why a running average of dice rolls settles on 3.5, and why averages of almost anything end up bell-shaped no matter how skewed the original data was.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

Two laws, two questions

The Law of Large Numbers (LLN) and the Central Limit Theorem (CLT) are the two results that make averaging meaningful. The LLN answers "where does the average go?" — as you take more and more independent samples from any distribution with a finite mean, the running average converges to that true mean. The CLT answers a different question, "what does the average look like along the way?" — the distribution of sample means, taken over many repeated samples of size n, approaches a normal (bell-shaped) curve as n grows, regardless of what shape the original distribution had.

live demo · running average converging, sample means forming a bell curve● LIVE

Why the average of dice rolls has to settle near 3.5

A fair six-sided die has expected value E[X] = (1+2+3+4+5+6)/6 = 3.5. After a handful of rolls the running average can sit almost anywhere — three rolls of 6, 6, 1 average to 4.33. But every additional roll is an independent draw from the same distribution, and the variance of the average of n rolls shrinks as 1/n:

Weak Law of Large Numbers:
  For any ε > 0,   P( |X̄_n − μ| > ε )  →  0   as n → ∞

Var(X̄_n) = σ² / n     →   the average's own spread shrinks with n

Strong Law of Large Numbers:
  X̄_n → μ   almost surely (with probability 1)

The distribution of the running average gets narrower and narrower around 3.5 as n grows, which is why it looks like convergence on a graph even though, technically, nothing forbids an enormous run of sixes at any point — such a run just becomes vanishingly unlikely, and any early streak gets diluted by the overwhelming number of later rolls.

A common misreading: the gambler's fallacy

The LLN is frequently, and wrongly, invoked to justify the belief that a coin "owes" you tails after a run of heads. The die and the coin have no memory: every roll is drawn from the same distribution independent of what came before, and the sequence 6,6,6,6,6,6 is exactly as likely as any other specific sequence of six rolls. The average returns to 3.5 not because future rolls compensate for past ones, but because a long run gets swamped by the sheer volume of new, independent data that follows it — dilution, not correction.

The Central Limit Theorem, precisely

Take samples of size n from any distribution with finite mean μ and finite variance σ² — it can be a fair die, a heavily skewed income distribution, or anything else — compute the mean of each sample, and look at how those sample means are themselves distributed:

Central Limit Theorem:

  X̄_n  ≈  Normal( μ,  σ²/n )     for large n

  standard error of the mean:  SE = σ / √n

This is a remarkable, almost universal result: the shape of the original distribution — uniform like a die, exponential, wildly skewed — essentially disappears from the distribution of the sample mean, which converges toward the same bell curve regardless. It is the theoretical foundation for confidence intervals, margin-of-error calculations in polling, and most of classical hypothesis testing, all of which lean on the assumption that a sample mean is approximately normally distributed even when the underlying data obviously is not.

Diminishing returns: why the standard error shrinks so slowly

Because the standard error scales as σ/√n rather than σ/n, cutting your uncertainty in half requires quadrupling your sample size, not doubling it. That square-root law is the quiet reason polling organisations need thousands of respondents to bring a margin of error down to a couple of percentage points, and why doubling the length of a physics measurement run only shrinks statistical noise by about 41%, not 50%.

Frequently asked questions

Isn't the gambler's fallacy just the Law of Large Numbers?

No — they are almost opposites. The gambler's fallacy is the false belief that a fair coin is 'due' for tails after a run of heads, as though the coin remembers past outcomes and future flips must correct the average. The LLN makes no such promise. It only says the average converges as n grows because the past run gets diluted by an enormous number of new, independent flips, not because the coin adjusts. Any finite run, however long, can be diluted this way without ever being corrected.

How large does a sample need to be for the CLT to 'kick in'?

There is no universal threshold; it depends on how far the underlying distribution is from symmetric and bell-shaped already. For roughly symmetric distributions with light tails, n around 30 is a common rule of thumb for the sample-mean distribution to look reasonably normal. Heavily skewed distributions, or ones with very heavy tails, need much larger n, and a distribution without a finite variance can break the classical CLT altogether.

Why does the standard error shrink with the square root of n instead of n itself?

Because variance of a sum of n independent samples adds directly, so Var(sum) = n * sigma-squared, giving Var(mean) = sigma-squared / n after dividing by n. Standard deviation is the square root of variance, so the standard error of the mean is sigma / sqrt(n). Halving your uncertainty therefore requires four times as much data, not twice as much — the diminishing-returns behaviour behind why polls and experiments need very large samples to shave a small amount off their margin of error.

Try it live

Everything above runs in your browser — open Law of Large Numbers and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Law of Large Numbers simulation

What did you find?

Add reproduction steps (optional)