5 values, Bessel's correction
- Input
- 2, 4, 4, 4, 5
- Expected output
- s ≈ 1.0954
Squared deviations sum to 4.8, divided by N−1=4 (not N=5); the result is 12% higher than the population version of the same numbers.
sample standard deviation
Sample standard deviation divides the sum of squared deviations by N−1 instead of N, known as Bessel's correction. The formula is s = √(Σ(xᵢ−x̄)²/(N−1)); use it whenever the data is a sample drawn from a larger group, not the whole group.
Squared deviations sum to 4.8, divided by N−1=4 (not N=5); the result is 12% higher than the population version of the same numbers.
Sample variance 250/4=62.5 cm²; the square root returns the result in the original unit, cm, not cm².
Sample variance 338/4=84.5; the mean is 84, so each grade's typical deviation is close to 9 points.
Population (σ) divides the sum of squared differences by N. Sample (s) divides by N−1 (Bessel's correction), giving an unbiased estimate of population variance when working with a sample.
Because the formula divides by N−1: with N=1 the divisor would be zero, an undefined operation. At least 2 values are needed for there to be any variation to measure.
It never fully disappears, but its effect shrinks as N grows: for N=5, N−1=4 is 20% smaller; for N=50, N−1=49 is only 2% smaller, so the result barely changes.
No; in that case use the population standard deviation (σ), which divides by N. s is specifically for when the data represents only part of a larger group.
All calculations stay in your browser. No data is sent to any server.