The formulas
The mean is the centre of your data, the standard deviation is how spread out individual values are, and the standard error is how precisely the mean itself is known.
Where they come from
The mean is the value that balances the data: the deviations above it cancel the deviations below it, because .
Spread. Since signed deviations always sum to zero, we square them so they can’t cancel. Averaging the squared deviations gives the variance, and its square root brings us back to the original units. If your numbers are the entire population, that average uses :
Why for a sample. Usually your numbers are a sample, and the true mean is unknown, so you measure deviations from instead. But is calculated from the same data, which puts it closer to those points than is. In fact is exactly the value that minimises , so deviations from it are systematically too small. On average the shortfall is exactly one value’s worth of variance:
Dividing by instead of (Bessel’s correction) cancels that bias. Another way to see it: once is fixed, only deviations are free to vary, because the last one must make them sum to zero.
Standard error. The mean of independent values has variance , because variances of independent values add, and dividing a sum by divides its variance by :
Taking the square root and estimating with gives . That is why quadrupling your sample size only halves the standard error.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9: the mean is , the squared deviations sum to 32, so
Which one to report
- Standard deviation describes your data: how much individual measurements vary.
- Standard error describes your estimate of the mean. Use it, or better a confidence interval, when comparing means.
- Error bars in figures should say which one they show; they differ by a factor of .
Last checked