Standard Deviation Calculator

Paste a list of numbers: the mean, the standard deviation and the variance, for a sample and for a whole population, with the working.

Count

8

Mean

5

Sample SD

2.13809

s, divides by n − 1

Population SD

2

σ, divides by n

Sum
40
Sample variance
4.571428571
Population variance
4
Median
4.5
Lowest
2
Highest
9

Step by step

  1. The mean is the sum divided by the count: 40 ÷ 8 = 5.
  2. Subtract the mean from each number and square the result:
    xx − mean(x − mean)²
    2-39
    4-11
    4-11
    4-11
    500
    500
    724
    9416
  3. Add up the squares: Σ(x − mean)² = 32.
  4. For a sample, divide by one less than the count (n − 1 = 7) to get the variance: 32 ÷ 7 = 4.571428571.
  5. The standard deviation is the square root of the variance: √4.571428571 = 2.138089935.

Sample or population?

Use the sample standard deviation, s = √(Σ(x − x̄)² / (n − 1)), when your numbers are a sample of a larger group, such as a survey or a set of measurements: dividing by n − 1 corrects for the sample's mean sitting closer to its own numbers than the true mean does. Use the population standard deviation, σ = √(Σ(x − μ)² / n), when you have every member of the group, such as all the scores of one class.

Related