Variance and standard deviation
The standard deviation measures the typical distance of values from their mean; the sample version divides the sum of squares by n − 1.
- Sample variance and sample standard deviation.
- Deviation of value from the sample mean.
- Degrees of freedom: the deviations sum to zero, so only are free.
- Population variance and standard deviation.
- Population mean and size.
When to use
- Quantitative data, alongside the mean. For skewed data or outliers also report the IQR or MAD.
- Use (divisor ) when the data are a sample used to learn about a larger population — almost always. Use (divisor ) only when the data are the entire population of interest.
How to interpret
The SD is in the units of the data ("delivery times vary by about 4 minutes around the mean"). The variance is in squared units and is mainly a building block. For roughly bell-shaped data about 68% of values lie within 1 SD of the mean and about 95% within 2 SD. Dividing by makes an unbiased estimator of .
Common mistakes
- Using the population formula for sample data (spreadsheet STDEV.P instead of STDEV.S); it underestimates spread, especially for small .
- Forgetting the square root (reporting the variance as the SD).
- Confusing the SD (spread of individual values) with the standard error (spread of a statistic).
- Expecting the 68–95 rule to hold for strongly skewed data.
Example
Data 2, 4, 4, 4, 5, 5, 7, 9: , sum of squared deviations . Sample: , . Population formula: , .