Why We Divide by n − 1
Sample variance underestimates the population variance on average, and the standard fix is to divide by n − 1. The reason: estimating the mean costs exactly one sample's worth of bias, leaving n − 1 residual degrees of freedom. The next post extends this idea to full-rank linear least squares.