Quant Memo
Core

Bessel's Correction and Unbiased Variance

When estimating a population's variance from a sample, dividing by n-1 instead of n corrects a small systematic bias caused by the sample mean itself being fit to the data — the reason every stats package's default variance formula uses n-1.

Prerequisites: Standard Deviation

If you know a return series' true population mean exactly, computing its variance is simple: average the squared deviations from that known mean. In practice you never know the true mean — you have to estimate it from the same sample, using the sample average xˉ\bar{x}. That reuse is the problem: xˉ\bar{x} is, by construction, the number that makes the sum of squared deviations smallest for this particular sample, so deviations measured from xˉ\bar{x} are systematically a bit smaller than deviations from the true (unknown) mean would be. Dividing by the sample size nn therefore slightly underestimates the true variance on average.

Bessel's correction fixes this by dividing by n1n - 1 instead of nn:

s2=1n1i=1n(xixˉ)2.s^2 = \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2 .

In plain English: shrinking the denominator by one inflates the estimate just enough to offset the bias introduced by estimating the mean from the same data, making s2s^2 an unbiased estimator of the true population variance. The "n1n-1" is often described as the "degrees of freedom" lost to estimating the mean.

For a small sample of five daily returns with sample mean xˉ\bar{x} and sum of squared deviations equal to 20, dividing by n=5n = 5 gives a variance of 4, while dividing by n1=4n - 1 = 4 gives 5 — a 25% difference that matters a lot at small sample sizes and shrinks toward negligible as nn grows large.

Bessel's correction divides the sum of squared deviations by n1n-1 rather than nn when estimating variance from a sample, because using the sample's own mean (rather than the true, unknown mean) systematically understates the spread — the correction is largest for small samples and fades away as sample size grows.

Related concepts

Practice in interviews

Further reading

  • Wasserman, All of Statistics, ch. 5
ShareTwitterLinkedIn