About this calculator
The standard deviation measures how far the values typically lie from their mean; the variance is its square. Use the sample formula (divide by n − 1) when the data are a sample used to estimate a larger population — for example 30 parts measured from a production run. Use the population formula (divide by n) only when the list contains every member of the population.
Formula
x̄ = Σxi ÷ n
Sample: s² = Σ(xi − x̄)² ÷ (n − 1) Population: σ² = Σ(xi − x̄)² ÷ n
CV = s ÷ |x̄| × 100% SE = s ÷ √n
The standard deviation is the square root of the variance. The calculation subtracts the mean first (two-pass method), which avoids the loss of precision of the “sum of squares minus square of sum” shortcut.
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8).
- Mean = 40 ÷ 8 = 5
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → Σ = 32
- Population: σ² = 32 ÷ 8 = 4, σ = 2
- Sample: s² = 32 ÷ 7 = 4.5714, s = 2.138
Assumptions and limitations
- The standard error of the mean always uses the sample standard deviation s, because it estimates the uncertainty of the mean.
- Values are separated by commas, spaces or semicolons; use a dot for decimals.
- Results are shown to 10 significant figures.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6 (measures of scale).
- Montgomery, D. C. & Runger, G. C. Applied Statistics and Probability for Engineers.
