Understanding standard deviation
Two groups can have the same average and be nothing alike. One class averages 80 on a test because nearly everyone scored between 75 and 85; another averages 80 because half the class scored near 95 and half near 65. The average is identical.
Formula and method
Squared distance for each value = (xᵢ − x̄)²
Population variance (σ²) = the sum of the squared distances ÷ n
Sample variance (s²) = the sum of the squared distances ÷ (n − 1)
For a dataset x₁, x₂, …, xₙ with mean x̄: Population standard deviation (σ): the square root of the population variance Sample standard deviation (s): the square root of the sample variance Squaring the distances matters: without it, the distances above the mean and below the mean would cancel each other out and always sum to zero. Squaring makes every distance positive, and the final square root brings the result back into the original units — so if your data is in points, the standard deviation is in points too. The only difference between the two versions is the divisor: n for a population, n − 1 for a sample. The n − 1 adjustment is called Bessel's correction. A sample's values tend to cluster slightly closer to the sample mean than to the true population mean, so dividing by the smaller number n − 1 corrects that underestimate. With large datasets the two answers are nearly identical; with small ones they differ noticeably.
Worked example
Example 1 — Six small numbers, step by step Dataset: 4, 8, 6, 5, 3, 7. Mean: (4 + 8 + 6 + 5 + 3 + 7) ÷ 6 = 33 ÷ 6 = 5.5 Distances from the mean: −1.5, 2.5, 0.5, −0.5, −2.5, 1.5 Squared distances: 2.25, 6.25, 0.25, 0.25, 6.25, 2.25 — sum = 17.5 Population variance: 17.5 ÷ 6 = 2.92; population standard deviation: √2.92 = 1.71 Sample variance: 17.5 ÷ 5 = 3.5; sample standard deviation: √3.5 = 1.87 The values sit, on average, about 1.7 to 1.9 units from the mean of 5.5. The sample value (1.87) is larger than the population value (1.71) because n is small — with only six values, the n − 1 correction makes a visible difference.