LLN & the central limit theorem
Two theorems carry the entire statistical edifice of trading. The law of large numbers says averages settle down — a real edge must emerge from noise if you take enough trades. The central limit theorem says how fast and in what shape: errors shrink like and are asymptotically Gaussian, which is why t-stats, confidence intervals, and Sharpe-ratio standard errors look the way they do. This chapter states both precisely, proves what can be proved at this level, and — just as important in practice — maps out exactly when the CLT fails: fat tails, dependence, and non-identical terms.
Flip a coin with unknown bias once and you learn almost nothing. Flip it times and the sample frequency pins the bias down to within about . That square root is the single most consequential exponent in applied statistics: to halve your uncertainty you must quadruple your data. The LLN is the promise that the estimate converges at all; the CLT is the precise accounting of the residual error — its size and its bell shape. Every backtest t-stat in the gauntlet is these two theorems wearing work clothes.
Modes of convergence#
“” can mean three different things for random variables, and the two big theorems live at different rungs. Let and be random variables.
- Almost surely (a.s.): — the realised sequence of numbers converges, with probability one. This is the strong law’s mode.
- In probability: for every , — large deviations become rare, but any single path may misbehave infinitely often. The weak law’s mode.
- In distribution: at every continuity point of — only the shapesconverge. The CLT’s mode.
The hierarchy is strict: almost sure in probability in distribution, and neither arrow reverses (with one useful exception: convergence in distribution to a constant upgrades to convergence in probability).
In probability but not a.s.: let , independent. Then , so in probability. But , so by the second Borel–Cantelli lemma infinitely often with probability one — the path never settles.
In distribution but not in probability: let and for all . Each is exactly standard normal, so in distribution trivially — yet never shrinks. Distributional convergence says nothing about the variables being close.
The law of large numbers#
Let be i.i.d. with mean , and write .
Assume . By linearity and independence,
Chebyshev’s inequality (proved in Inequalities & tail bounds) then gives, for any ,
The strong law is genuinely harder (Kolmogorov’s proof uses maximal inequalities or backward martingales) and needs only a finite first moment — we state it and move on. The counterexample to keep in mind: the Cauchy distribution has no mean at all, and its sample average never converges — see below.

Worked example (by hand). A strategy wins with probability and loses with probability . Per trade, and . How many trades until Chebyshev guarantees ? Solve : . Chebyshev is crude — the CLT will say roughly suffices for the same confidence (solve ) — but the qualitative message stands either way: hundreds of trades, not dozens, before an average is trustworthy.
A per-trade edge of against per-trade noise of is a signal-to-noise ratio of 10:1 against you on every single trade. The LLN is the only thing on your side, and it works at rate : the t-statistic of the observed mean is roughly , so you cross only near . A 30-trade backtest of this strategy is statistically silent — which is precisely why backtests lie and why the gauntlet demands sample sizes first.
The central limit theorem#
The LLN says . The CLT magnifies that vanishing error by and finds a universal shape.
Nothing about the shape of survives except its first two moments — skewed, discrete, bimodal, it does not matter, provided the variance is finite. That universality is why the normal distribution is everywhere: it is the unique fixed point of averaging.
Assume the MGF exists near 0 (the honest proof uses characteristic functions, which always exist; the algebra is identical). Center and scale: let , so , , and . By independence,
which is the MGF of ; MGF convergence implies convergence in distribution. The whole theorem is Taylor expansion plus : averaging kills every moment beyond the second at rate faster than , and only the quadratic term survives.

How fast is “asymptotic”? The Berry–Esseen theorem gives a uniform, non-asymptotic rate: if , then
The error decays like , with the skewness-like ratio as the constant. Symmetric, thin-tailed summands converge fast (coin flips are excellent by ); heavily skewed summands — option-selling P&L, for instance — can need thousands of terms before the Gaussian approximation is honest in the tails.
Worked example (by hand). Roll a fair die 100 times; what is ? Per roll , , so with . Because is integer-valued, apply the continuity correction: treat as :
Skipping the correction gives — small here, but for coin-flip problems near the mean the half-unit shift is often the difference between a right and a wrong answer.

The delta method — errors of functions of averages#
Most quantities you report are not averages but functions of averages: a Sharpe ratio, a log growth rate, an implied probability. The delta method pushes the CLT through any smooth function.
Suppose and is differentiable at with . Expand: . Multiply by ; the remainder vanishes in probability (Slutsky’s theorem cleans up), leaving
In words: to first order an estimator’s error passes through scaled by the local slope. Uncertainty is a vector; stretches it by .
Application — the standard error of a Sharpe ratio. With i.i.d. normal-ish returns, the two-dimensional delta method applied to gives the classic Lo (2002) result
Plug in numbers: a strategy with true annual Sharpe 1.0 observed over one year of daily data (, daily ) has daily-scale se — annualised, . One year of daily data measures a Sharpe of 1 to within ±1. The measurement is barely one standard error from zero. The same delta method gives the se of a compound growth rate via : relative errors of the mean become absolute errors of the log, which is why log-return standard errors are the clean ones to quote.
When the CLT fails#
Good prep questions push in this direction, and markets live in it. The CLT has three hypotheses — finite variance, independence, identical distribution — and each one fails in a characteristic, tradable way.
1. Infinite variance — fat tails. If (tail index , e.g. a Cauchy, or a Student-t with 2 or fewer degrees of freedom), sums converge — after different scaling — to stable laws, not the normal. The extreme case is Cauchy: if are standard Cauchy, the characteristic function gives — the sample mean of a million Cauchy draws is exactly as spread out as a single draw. Averaging buys you nothing; the LLN itself fails because no mean exists. Real returns are not Cauchy, but their tails are heavy enough (–) that tail probabilities converge to their Gaussian limits punishingly slowly — see the distribution zoo and extreme value theory.

2. Dependence — autocorrelation inflates the variance of the mean. Drop independence but keep stationarity, with autocorrelations . Expanding the variance of the sum:
A CLT still holds under mixing conditions, but with this inflated variance. Define the effective sample size . For an AR(1) with the factor is : at that is 3 — your 1000 correlated observations carry the information of 333 independent ones. Ignore this and every t-stat you compute is inflated by . Full treatment in time-series statistics.
3. Non-identical terms. Heterogeneous but independent summands still obey a CLT under the Lindeberg (or cruder Lyapunov) condition — no single term may dominate the total variance. The failure mode to remember: a portfolio of 100 tiny positions plus one whale is notGaussian-ised by aggregation; its distribution is the whale’s. Diversification only normalises when risk is genuinely spread.
import numpy as np
rng = np.random.default_rng(11)
reps = 20_000
# 1) CLT works: standardized means of skewed Exponential(1) draws (mu=1, sigma=1)
for n in (2, 10, 50):
m = rng.exponential(1.0, size=(reps, n)).mean(axis=1)
z = (m - 1.0) * np.sqrt(n) # standardized: should be ~ N(0,1) for large n
# P(Z > 1.645) should approach the Gaussian 5%
print(f"exp n={n:3d} P(Z>1.645) = {(z > 1.645).mean():.4f} (normal: 0.0500)")
# 2) CLT fails: Cauchy sample means never tighten (no mean, infinite variance)
for n in (10, 1000):
m = rng.standard_cauchy(size=(reps, n)).mean(axis=1)
print(f"cauchy n={n:5d} IQR of sample mean = {np.subtract(*np.percentile(m, [75, 25])):.3f}")
# IQR is ~2.0 regardless of n: mean of n Cauchys IS a Cauchy
# 3) Dependence: AR(1) with rho=0.5 -> Var(mean) inflated by 1 + 2*rho/(1-rho) = 3
n, rho = 1000, 0.5
eps = rng.normal(0, np.sqrt(1 - rho**2), size=(reps, n))
x = np.zeros((reps, n))
for t in range(1, n):
x[:, t] = rho * x[:, t - 1] + eps[:, t] # stationary AR(1), Var(x_t)=1
ratio = x.mean(axis=1).var() / (1.0 / n) # observed Var(mean) vs iid sigma^2/n
print(f"AR(1) rho=0.5: variance inflation = {ratio:.2f} (theory: 3.00)")Take a backtest with mean trade (in R multiples) and per-trade standard deviation . The CLT says the observed average is , so the t-stat is . The sample-size arithmetic every quant should do in their head: detecting an edge of at needs trades — 400 trades for a edge, 10,000 for . Then apply the dependence haircut: overlapping positions or clustered signals divide by the inflation factor above. Most “profitable” backtests die in this paragraph — the theme of hypothesis testing and overfitting detection.
Practice problems#
A coin lands heads 5,100 times in 10,000 flips. Roughly how likely is a deviation this large for a fair coin, and what do you conclude?
Solution. Under fairness, : mean 5,000, standard deviation . So 5,100 heads is exactly . With continuity correction, , or two-sided. Borderline: a fair coin does this one time in twenty-odd, so it is weak evidence of bias, not proof — exactly the p-value conversation of hypothesis testing. The natural follow-up is “and 51,000 in 100,000?” — now the same 51% rate is : the rate deviation matters through , and what was noise at ten thousand flips is near-certain bias at a hundred thousand.
A roulette bet pays even money and wins with probability . The casino takes one million independent $1 bets tonight. Estimate the probability the casino loses money.
Solution. Per bet the casino’s profit has mean and variance , so over bets total profit is approximately — standard deviation . Losing money means falling standard deviations below the mean: , effectively zero (). The lesson to state out loud: the house edge is microscopic per bet but the aggregate is deterministic, because signal grows like while noise grows like . A trading firm with a tiny per-trade edge and enough independent trades is this casino — the entire economics of high-frequency trading in one inequality.
You average i.i.d. standard Cauchy random variables. What is the distribution of the sample mean as ?
Solution. It is standard Cauchy for every — it never converges. Slick proof via characteristic functions: , so . No contradiction with LLN or CLT: the Cauchy has no mean and infinite variance, so both hypotheses fail. The trap is answering “normal, by the CLT” on reflex. Follow-up worth volunteering: for tails just inside the boundary — t(2), some crypto returns — the CLT technically holds (t(3+)) or fails (t(2)’s variance is infinite), and convergence near the boundary is so slow that pre-asymptotic behaviour, not the limit, is what your risk model actually samples.
A strategy’s trades have true mean and standard deviation . How many trades do you need before the backtest can distinguish it from zero-edge at the 5% level — and with 80% power?
Solution. The t-stat is . For bare significance set : . But significance if the edge shows up exactly at its mean is a coin flip; for 80% power you need the detection threshold standard errors of true edge:
At 10 trades a week, that is six years of live data. Volunteer the two follow-ons: autocorrelated or overlapping trades shrink and push the number higher still; and if this strategy was the best of tried, the bar rises again (multiple testing). This one computation is the statistical spine of walk-forward validation.
Next: averages are tamed — now for the extremes. The distribution of the maximum, the k-th largest, records, and why the best-looking of anything is a biased estimate: Order statistics & extremes.



