How do I find the standard deviation?
The mean, squared gaps, their average, and a root.
Example
For the data 2,4,4,5,7, find the mean, the median, the variance and the standard deviation.
Answer: =225,median=4,σ2=6625,σ=5√6625≈1.625
Try it yourself: For the data 3,5,8,10, find the mean, the median, the variance and the standard deviation.
Why do I need this?
Two classes both average 80. In one everyone scored 80, in the other half scored 60 and half scored 100. The mean is the same, but the spread is very different.
The idea
Variance and standard deviation measure how spread out the data is around the mean.
Step by step
The mean
Add the data and divide by how many there are.
=2+4+4+5+75=4.4Squared gaps
Find how far each value is from the mean and square it.
5.76+0.16+0.16+0.36+6.76=13.2Variance
Divide the sum of squares by the number of values.
σ2=13.25=2.64Standard deviation
The root of the variance returns to the original units.
σ=√2.64≈1.62
The rule
Variance
- xieach data value
- x̄the mean
- nhow many values
Common mistakes
- Wrong∑(xi−)=0⇒σ2=0Rightσ2=2.64
The plain gaps always add to zero, so square them before adding.
- Wrongσ=13.2/5Rightσ=√2.64
Dividing by the count gives the variance; the standard deviation is its root.