Method and source check
Last checked:
Editorial check of method and sources; this is not professional review or advice.
Method
The calculator finds the mean and squared deviations, then reports both population standard deviation (divide by N) and sample standard deviation (divide by n − 1).
σ = √(Σ(xᵢ − μ)² / N)
s = √(Σ(xᵢ − x̄)² / (n − 1))
Variables and units
- xᵢ
- each observed value
- μ / x̄
- population mean / sample mean
- N / n
- population size / sample size
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, population standard deviation is 2, and sample standard deviation is about 2.1381.
Limitations
The mean, population variance, population and sample standard deviations, source data, deviations and squared deviations are numerically rounded to four decimal places. Calculated statistics and deviations are displayed with four decimal places; source data omit trailing zeros. The data-point count is exact.
- Use the population result only when the values are the complete population. Use the sample result when the values are a sample; neither result proves that data are normally distributed.
- Input 2, 4, 4, 4, 5, 5, 7, 9 returns mean 5.0000, population variance 4.0000, population standard deviation 2.0000, sample standard deviation 2.1381, and count 8.
- Input 1, 3 returns mean 2.0000, population variance 1.0000, population standard deviation 1.0000, and sample standard deviation 1.4142.
- A single number fails validation because both standard deviations require at least two values; a nonfinite token also fails validation.