LLN Running Mean & Central Limit Theorem Sampling Animator
Draw single or batched samples of size n from skewed and bimodal populations and watch sampling means tighten into N(μ, σ²/n).
Watch sample averages from skewed, uniform, and U-shaped populations morph into a tight Gaussian bell at speed 1/√n.
Why Monte Carlo estimates converge, why election polling margins shrink with √n, and why sum-of-errors noise looks Gaussian.
Why do sample averages from strongly skewed or U-shaped populations converge to a symmetric Normal bell whose width shrinks like ?
While the Law of Large Numbers guarantees the running mean locks onto true mean , the Central Limit Theorem reveals the exact shape of fluctuations around : rescaled averages approach .
Because , standard error shrinks as —meaning cutting sampling error in half requires four times as many observations.
If individual wait times are heavily right-skewed, why do the averages of 30 wait times suddenly line up in a symmetric bell curve?
Pick a non-normal parent (Exponential, Uniform, U-Shaped, Bimodal), adjust sample size n, click 'Draw 1' or 'Simulate 1,000', and track both LLN running-mean stability and the CLT bell.
To cut Standard Error σ/√n in half, you must quadruple sample size n! Next, Chapter S.3.3 shows what happens when σ itself is unknown and must be estimated from the sample.
Individual customer calls might be horribly right-skewed: most last 2 minutes, a few drag on for 9! Now suppose you record the average of n = 25 random calls, repeat that hundreds of times, and make a histogram of those sample averages . Even though the individual calls looked nothing like a bell curve, extreme low and high calls inside each batch cancel each other out—causing the averages to pile symmetrically around true in a clean Gaussian Bell Curve! Select U-Shaped (Arcsine) or Heavily Right-Skewed below and hit Simulate +1,000 to watch it happen live!
Shape of ALL individual measurements (). Can be flat, skewed, U-shaped, or bimodal—increasing never changes its parent shape!
The teal dots drawn right now. It gives us ONE sample mean (vertical orange pin).
The histogram of MANY sample means across repeated surveys. THIS is what turns Normal with spread !
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Because independent random draws fluctuate in opposite directions, variances add linearly (), making the average's standard error shrink at the square-root rate .
Law of Large Numbers (LLN): tells you where the running mean goes (it locks onto true as draws grow).
Central Limit Theorem (CLT): tells you the bell-curve shape and width () of those sample means at moderate/large !
Suppose individual daily noise has . Compare averaging n = 4 vs n = 100 measurements:
Need 4× more data just to cut error in half!
Look at the upper plot above: the parent population stays skewed even at n = 50. Only the averages (lower plot) turn Normal—and if the population has infinite variance (like heavy-tailed Cauchy), even CLT fails!
Real life never hands us true —we must plug in noisy sample . Chapter S.3.3 shows how that extra wobble births Student's t, , and !
Averaging independent draws divides total variance by , forcing the probability of missing by any margin to zero regardless of parent shape!
In Fourier frequency space, rescaling sums by kills skewness () and kurtosis (), leaving only the quadratic variance term that exponentiates to .
To halve sampling error, you must collect the data. And if (Cauchy tails), averaging fails to concentrate at all: the average of 1,000 Cauchy draws is just as wild as one draw!
Draw single or batched samples of size n from skewed and bimodal populations and watch sampling means tighten into N(μ, σ²/n).
Tracks running mean as total raw draws k grow—locking onto true .
Individual observations pile near 0 with a long tail to 10—yet their averages still form a symmetric bell by n ≈ 25!