Standard deviation Formula

The standard deviation measures how spread out values are from the mean.

Standard Deviation Formula

Population Standard Deviation (σ)

Used when you have all values in a population:
$$\sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}}$$
Where:
  • $x_i$ = each individual value
  • $\mu$ = population mean
  • $N$ = total number of values in the population

Sample Standard Deviation (s)

Used when you have a sample (subset) of a population:
$$s = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \bar{x})^2}{n - 1}}$$
Where:
  • $x_i$ = each individual value
  • $\bar{x}$ = sample mean
  • $n$ = number of values in the sample
  • $n - 1$ = Bessel's correction (reduces bias in estimating population variance)

Step-by-Step Calculation

  1. Find the mean - add all values, divide by count
  2. Subtract the mean from each value - these are the deviations
  3. Square each deviation - eliminates negatives
  4. Sum the squared deviations
  5. Divide by N (population) or n-1 (sample)
  6. Take the square root - this converts variance back to original units

Quick Example

Data: 2, 4, 4, 4, 5, 5, 7, 9
StepValue
Mean ($\bar{x}$)(2+4+4+4+5+5+7+9) / 8 = 5
Squared deviations9, 1, 1, 1, 0, 0, 4, 16
Sum of squares32
Variance (sample)32 / 7 = 4.57
Std Dev (sample)√4.57 = 2.14

Key Notes

  • SD = 0 means all values are identical
  • A small SD means values cluster tightly around the mean
  • A large SD means values are widely spread
  • Standard deviation is the square root of variance
  • Always use sample SD (n-1) when working with a sample drawn from a larger population
This is a shared conversation. Sign in to Orris to start your own chat.