Standard Deviation Calculator
Standard deviation of 8 numbers
Sample SD ≈ 2.13809
Population SD 2, mean 5, sample variance ≈ 4.571429.
- Count
- 8
- Sum
- 40
- Mean
- 5
- Median
- 4.5
- Mode
- 4 (appears 3 times)
- Minimum
- 2
- Maximum
- 9
- Range
- 7
- First quartile (Q1)
- 4
- Third quartile (Q3)
- 5.5
- Interquartile range (IQR)
- 1.5
- Population variance (σ²)
- 4
- Sample variance (s²)
- ≈ 4.571429
- Population standard deviation (σ)
- 2
- Sample standard deviation (s)
- ≈ 2.13809
- Standard error of the mean
- ≈ 0.755929
- Coefficient of variation
- ≈ 42.761799%
Quartiles use the inclusive method (the same as Excel’s QUARTILE.INC): Q1 and Q3 sit at positions (n − 1) × ¼ and (n − 1) × ¾ of the sorted list, counting from 0, and a fractional position is interpolated between its two neighbours. Other methods, such as QUARTILE.EXC, give slightly different quartiles for short lists.
Standard deviation: the working
- Find the mean: 40 ÷ 8 = 5.
- Subtract the mean from each value (its deviation) and square the result. Squaring makes every term positive.
- Add the squared deviations: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
- Population variance, dividing by n = 8: 32 ÷ 8 = 4.
- Sample variance, dividing by n − 1 = 7: 32 ÷ 7 ≈ 4.571429.
- Take the square root of the variance: population SD = √4 = 2; sample SD = √(32 ÷ 7) ≈ 2.13809.
- Values marked ≈ are rounded for display only; the calculation itself is exact.
| Value | Deviation from mean | Squared deviation |
|---|---|---|
| 2 | −3 | 9 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Sum of squared deviations | 32 | |
Frequency and dot plot
| Range | Values | Share |
|---|---|---|
| 2 to under 4 | 1 | 12.5% |
| 4 to under 6 | 5 | 62.5% |
| 6 to under 8 | 1 | 12.5% |
| 8 to under 10 | 1 | 12.5% |
Z-scores
z = (value − mean) ÷ SD, using the sample standard deviation (n − 1).
| # | Value | Z-score |
|---|---|---|
| 1 | 2 | ≈ −1.403122 |
| 2 | 4 | ≈ −0.467707 |
| 3 | 4 | ≈ −0.467707 |
| 4 | 4 | ≈ −0.467707 |
| 5 | 5 | 0 |
| 6 | 5 | 0 |
| 7 | 7 | ≈ 0.935414 |
| 8 | 9 | ≈ 1.870829 |