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 . That reuse is the problem: is, by construction, the number that makes the sum of squared deviations smallest for this particular sample, so deviations measured from are systematically a bit smaller than deviations from the true (unknown) mean would be. Dividing by the sample size therefore slightly underestimates the true variance on average.
Bessel's correction fixes this by dividing by instead of :
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 an unbiased estimator of the true population variance. The "" is often described as the "degrees of freedom" lost to estimating the mean.
For a small sample of five daily returns with sample mean and sum of squared deviations equal to 20, dividing by gives a variance of 4, while dividing by gives 5 — a 25% difference that matters a lot at small sample sizes and shrinks toward negligible as grows large.
Bessel's correction divides the sum of squared deviations by rather than 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