4.9.25 · D2Probability Theory & Statistics

Visual walkthrough — Monte Carlo simulation — law of large numbers basis

1,797 words8 min readBack to topic

The characters, before any maths

Let me introduce every symbol so nothing arrives unannounced.


Step 1 — What one random draw looks like

WHAT. Before averaging anything, look at a single draw . It's one dot landing somewhere, scattered around the true centre .

WHY. You cannot understand an average of many things until you see one thing. The spread of that one dot is exactly what measures — the typical distance from .

PICTURE. Below, the yellow line is the true mean . Blue dots are individual draws ; they land all over, sometimes far from . The red band shows one of typical spread.

Figure — Monte Carlo simulation — law of large numbers basis

Each single draw is noisy. A single poke tells you almost nothing. The magic is in the averaging.


Step 2 — The average sits exactly on (unbiased)

WHAT. We compute the expected value of the sample mean: on average, where is centred?

WHY. An estimator is only trustworthy if it doesn't systematically aim too high or too low. We must confirm it points at the right target before worrying about spread.

Term by term: the is a constant, so it slides out of the expectation. Linearity of expectation lets the pass through the sum. Each of the pieces equals , giving , and the 's cancel.

PICTURE. The blue dots scatter, but their balance-point (the green marker, the average) sits right on the yellow line — no matter how few or many dots.

Figure — Monte Carlo simulation — law of large numbers basis

Step 3 — Averaging shrinks the spread by (in variance)

WHAT. We compute the variance of the sample mean — how far itself typically strays from .

WHY. Unbiased alone isn't enough: a dart-thrower centred on the bullseye but wild everywhere is useless. We need to prove the wildness of falls as grows.

Term by term: pulling the constant out of a variance squares it (rule: ), so it becomes . Independence is what kills all the cross-covariance terms — without it this step is false (see the degenerate case in Step 6). Each , and of them give . The downstairs beats the single upstairs, leaving .

PICTURE. Three stacked clouds of the average dot: for , , . As climbs, the cloud of averages collapses toward .

Figure — Monte Carlo simulation — law of large numbers basis

Step 4 — From variance to a guarantee: Chebyshev's inequality

WHAT. We convert "small variance" into a hard statement about probability: how often can land far from ?

WHY. Variance is an average of squared distances — helpful, but we want a promise like "the chance of being off by more than is tiny." Chebyshev's Inequality is exactly the bridge from variance to probability of a large miss, and it needs nothing but the variance.

Term by term: (Greek "epsilon") is a tolerance we choose — "how close is close enough". The left side is the probability of missing by that much or more. Chebyshev caps it by variance divided by . Substituting Step 3's gives the final bound.

PICTURE. The bell of possible values, with a tolerance band shaded green. Chebyshev bounds the red tail area outside the band by .

Figure — Monte Carlo simulation — law of large numbers basis

Step 5 — Let : the tail is crushed to zero

WHAT. Hold fixed and let the sample size grow without bound.

WHY. This is the finish line. If the bound itself goes to , the probability it caps is squeezed to too — that is convergence.

Term by term: and are frozen constants; only in the denominator grows. A fixed number over something exploding to infinity goes to . Since a probability can't be negative, it's trapped at exactly . This is the Weak Law of Large Numbers: .

PICTURE. The bound plotted against — a curve diving toward the axis. Overlaid: the actual bell of narrowing to a spike on .

Figure — Monte Carlo simulation — law of large numbers basis

Step 6 — The degenerate case: what breaks the guarantee

WHAT. Every step above secretly relied on two things: independence and a finite variance. Watch what happens when either fails.

WHY. The contract says cover every case. A reader who uses correlated samples or a heavy-tailed integrand and never saw this will be blindsided.

  • Correlated draws. In Step 3, independence deleted the cross-terms. If draws are correlated, extra covariance terms survive, and the variance is larger than — sometimes it never shrinks. The averaging barely helps.
  • Infinite variance. In Step 4, Chebyshev needed a finite . For a heavy-tailed variable (e.g. a Cauchy-like ), and the bound is useless. The sample mean can wander forever and never settle.

PICTURE. Two running-average traces vs . Green: independent, finite variance — converges smoothly to . Red: heavy-tailed — jumps and never settles.

Figure — Monte Carlo simulation — law of large numbers basis

The one-picture summary

Everything on one canvas: single noisy draws (Step 1) → their average lands on (Step 2) → averaging tightens the spread as (Step 3) → Chebyshev caps the tail (Step 4) → crushes it to zero (Step 5), except when independence or finite variance fails (Step 6).

Figure — Monte Carlo simulation — law of large numbers basis
Recall Feynman retelling — the whole walkthrough in plain words

Imagine sprinkling dots around a hidden centre line. One dot alone is a wild guess. But if you take the balance-point of a handful of dots, that balance-point already sits on the centre — averaging never leans one way (Step 2). Now sprinkle more and more dots: their balance-point stops wobbling, because the wobble in variance shrinks like one-over-the-count (Step 3). A clever inequality (Chebyshev) turns "small wobble" into "almost never far away" (Step 4), and as the count runs to infinity that "almost never" becomes "never" — the average locks onto the true centre (Step 5). Two fine-print rules: your dots must be genuinely unrelated, and single dots can't be insanely wild (infinite spread). Break either and the average may drift forever without ever settling (Step 6). And the punchline hiding in the square root: wobble in distance falls like one-over-the-square-root-of-count, which is why quadrupling your work only halves your error.


Active Recall

Question: The variance of the sample mean is
.
Question: The typical error (a distance) shrinks like
, since distance is the square root of variance.
Question: Chebyshev's inequality requires which property of to be finite
the variance .
Question: Independence is used in which step of the derivation
Step 3 — it kills the cross-covariance terms so the variances simply add.