The Chi-Squared Distribution
What you get when you square and sum independent standard normals — the distribution behind sample variance, goodness-of-fit tests, and confidence intervals on volatility itself.
Prerequisites: The Normal Distribution, Expectation, Variance & Moments
You estimate a stock's daily volatility from 30 trading days of returns. That estimate is itself a random number — a different 30 days would give a slightly different volatility estimate. How much slack should you put around it? Answering that requires knowing the distribution of a sum of squared normal deviations — which is exactly what the chi-squared distribution is built to describe.
The analogy: total distance from the bullseye, across many darts
Imagine throwing darts at a target, where each dart's horizontal miss and vertical miss are independent, standard-normal-sized errors. If you square each individual miss distance and add them all up across throws, the total is chi-squared distributed with "degrees of freedom." It measures accumulated squared error from a bunch of independent, zero-centered noise sources — which is precisely the situation you're in every time you compute a sample variance: you're summing squared deviations from a mean.
Writing it down
If are independent standard normal random variables, then
In words: the chi-squared distribution with degrees of freedom is exactly the distribution of a sum of squared independent standard normals. It has mean and variance — each squared standard normal contributes 1 to the mean and 2 to the variance on average, so both scale linearly with how many you add. The connection to sample variance: if is the sample variance of i.i.d. normal observations,
In words: take your sample variance, rescale it by the true variance and by , and the result follows a chi-squared distribution with degrees of freedom — which is the entire basis for building a confidence interval on volatility itself, not just on the mean.
Picture squaring every draw from this curve and summing of them: with the result piles up near zero with a long right tail (a single squared normal is usually small, occasionally large); as grows the sum's distribution shifts right and becomes more symmetric — the chi-squared distribution's shape moving from heavily skewed toward roughly normal as degrees of freedom increase.
Worked example 1: confidence interval on volatility
You compute a daily return standard deviation of from days. Using , the 2.5th and 97.5th percentiles are roughly 16.05 and 45.72 (standard table values). A 95% confidence interval for is
Taking square roots, lies in roughly with 95% confidence — a genuinely wide band from only 30 days of data, illustrating how noisy short-window volatility estimates really are.
Worked example 2: a goodness-of-fit check
A model predicts trades should split 40/35/25 across three venues. Over 200 trades, you observe 95, 65, 40. The chi-squared goodness-of-fit statistic sums across categories: expected counts are .
With 2 degrees of freedom (3 categories minus 1), the 95th percentile of is 5.99. Since , you fail to reject the model — the deviation, while visible, is within what random noise alone would produce.
Try a low positive exponent here — that rising-then-flattening shape mirrors a chi-squared density with few degrees of freedom: a fast climb from zero followed by a long decaying tail, which flattens toward something more symmetric as degrees of freedom (like exponent here) increase.
What this means in practice
- Volatility confidence intervals. Any time you report a realized volatility number, the chi-squared distribution is what tells you how much to trust it, especially with short lookback windows.
- Goodness-of-fit and independence tests. Checking whether observed trade routing, defaults, or category counts match a model's prediction routinely uses a chi-squared test statistic.
- Building block for other distributions. The -distribution and -distribution, both central to regression inference, are constructed directly from ratios involving chi-squared variables.
The chi-squared distribution with degrees of freedom is the distribution of a sum of squared independent standard normals — it's the natural distribution of squared deviations, which is why it governs the uncertainty in any estimated variance.
Degrees of freedom is not "sample size" — it's sample size minus the number of parameters already estimated from the same data (like the mean, when computing sample variance). Using instead of degrees of freedom in the volatility confidence interval above silently understates the true uncertainty, because you spent one degree of freedom estimating the mean before computing the deviations.
Related concepts
Practice in interviews
Further reading
- Casella, Berger, Statistical Inference (ch. 5)
- Wasserman, All of Statistics (ch. 5)