Standard deviation
Range uses two values and IQR uses the middle half. Standard deviation uses every value and measures how far values typically lie from the mean.
How standard deviation is built
1 · distance
x − mean
2 · square
(x − mean)²
Positive and negative deviations cannot cancel.
3 · average
variance
4 · square root
standard deviation
The units return to the original data units.
Variance first, then standard deviation
Key idea
Symbols
- = number of values (observations)
- = sum of the values (data unit)
- = sum after squaring each value (data unit squared)
- = mean (data unit)
The variance is in squared units. Take its positive square root to return to the data unit.
- Standard deviation can never be negative.
- It is zero only when every value is the same.
- It uses every value, so an extreme value can change it strongly.
Worked example
Standard deviation of four values
For 2, 4, 4 and 6, , and .
The mean is 4. Substituting before taking the square root gives the variance.
Common mistake
Frequency tables use weighted totals
- Build two weighted columns. Calculate and . The second means .
- Add the columns. Record , and clearly.
- Keep the exact mean. Do not round before squaring it.
- Root only at the end. The formula inside the root is the variance.
Worked example
A discrete frequency table
Values 5, 15 and 25 have frequencies 2, 5 and 3. Then , and .
For grouped continuous data, use class midpoints for . The result is an estimate because the exact values inside each class are unknown.
Use the calculator as the fast main route
For a straightforward raw-data, frequency-table or grouped-data question on a calculator-permitted paper, one-variable statistics is normally the fastest main method. You do not need to calculate every total by hand first.
- Enter values in the one-variable statistics mode.
- Enter each value once; when frequencies are given, use the frequency column. For grouped data, enter class midpoints as the values and class frequencies beside them.
- Read the population standard deviation , not the sample value .
- Write the requested mean, variance or SD from the display, rounded only at the end. For variance, square .
Use the calculator as the main route when the full data or a frequency table is available. Switch to equations and totals when the question gives totals or coded totals, asks you to show a result, combines data sets, asks for a missing value, or needs visible method marks.
- Use the range for a quick full-width description.
- Use the IQR when extremes should have less effect.
- Use standard deviation when every value should contribute and the mean is a suitable centre.
Values 1, 3, 5 and 7 have frequencies 2, 1, 4 and 3. Find the mean, variance and population standard deviation.
Show worked answer
, and , so .
