Skip to content

The Standard Deviation

The measure that tells you whether the mean truly represents your data, or hides it.

📊 Statistics

Formula used

s=Qn-1

The standard deviation is the square root of the mean of the squared deviations from the mean.

What is this formula?

A mean alone cannot describe a data set. Two sets averaging 50 might have one whose values all sit between 49 and 51, and another ranging from zero to a hundred. The standard deviation is what tells them apart.

The idea is to measure each value's distance from the mean, then summarise those distances in one number. But adding them directly always gives zero, because positive deviations cancel negative ones exactly — that is the mean's defining property.

The solution is to square each deviation before summing. Squaring removes the sign and gives larger deviations more weight, which is intended: one value ten units out is far more troubling than ten values one unit out.

The square root at the end serves a practical purpose. Squaring changed the unit into its square; the root brings it back to the data's own unit. That is why "a standard deviation of 5 kilograms" is meaningful while a variance of "25 kilograms squared" is not tangible.

Dividing by (n − 1) rather than n for a sample is Bessel's correction. A sample clusters around its own mean rather than the population's, so it systematically understates the true spread; shrinking the denominator compensates. The effect is noticeable in small samples and nearly vanishes in large ones.

Variables

Q Sum of squared deviations
Each value's difference from the mean, squared, then added up (the data's unit squared)
n Count
The sample size; at least two are needed for a sample (dimensionless)
s Standard deviation
How far values sit from their mean on average, in the data's unit (the data's unit)

Units

Use (n − 1) for a sample and n for a full population. The difference matters at 5 values and is negligible at 500.

Rearranged forms

V=Qn-1

The variance alone, before the root — what statistical machinery uses internally.

Q=s2⁢(n-1)

To recover the sum of squared deviations from a known standard deviation.

Worked example

A set of eight values has a sum of squared deviations of 32. What is its sample standard deviation?

  1. V=Qn-1
  2. V=327
  3. s=V

The variance is 4.571 and the standard deviation about 2.14 — values sit roughly two units from their mean on average.

Where it is used

  • Measuring the consistency of a production process or a repeated laboratory measurement.
  • Computing a z-score to compare a result against its group.
  • Setting quality limits beyond which values count as outliers.

Assumptions

  • The data is quantitative on a continuous scale.
  • Dividing by (n − 1) assumes the data is a sample of a larger population.

Related formulas