Standard deviation measures how far values typically sit from the mean. Paper 5 gives it to you raw, as totals \(\sum x\) and \(\sum x^2\), as coded totals, or split across two data sets, and expects the same two formulas every time.
\(\text{Variance} = \dfrac{\sum (x - \bar{x})^2}{n} = \dfrac{\sum x^2}{n} - \bar{x}^2\) and standard deviation \(= \sqrt{\text{variance}}\). Coding by subtracting \(a\) shifts the mean by \(a\) but leaves the standard deviation unchanged.
Fig. 1: deviations from the mean for 4, 7, 8, 10, 11. Squared and averaged: (16 + 1 + 0 + 4 + 9) ÷ 5 = 6, so the standard deviation is √6 ≈ 2.45
Section 01
Squared deviations.
Each value's deviation is \(x - \bar{x}\). The deviations always add up to zero, so square them first, average the squares (that is the variance) and then take the square root to get back to the original units. The second form of the formula, \(\dfrac{\sum x^2}{n} - \bar{x}^2\), is quicker and is the one Paper 5 totals are built for.
Answer: Mean 18, standard deviation \(\sqrt{13} = 3.61\) (3 s.f.)
Examiner trap
Writing \(\dfrac{\sum x^2}{n} - \bar{x}\) or \(\dfrac{(\sum x)^2}{n}\). It is the MEAN that is squared and subtracted: \(\dfrac{\sum x^2}{n} - \bar{x}^2\).
Section 02
Frequency tables and grouped data.
With frequencies, every sum gets an \(f\): \(\bar{x} = \dfrac{\sum fx}{\sum f}\) and variance \(= \dfrac{\sum fx^2}{\sum f} - \bar{x}^2\). For grouped data use the class midpoints, and remember the answers are estimates.
Worked example Discrete frequency table
Values \(x = 1, 2, 3, 4, 5\) have frequencies 2, 5, 8, 4, 1. Find the mean and standard deviation.
\(\sum f = 20\) and \(\sum fx = 2 + 10 + 24 + 16 + 5 = 57\), so \(\bar{x} = 2.85\).
Answer: Mean about 17.5 kg, standard deviation about 9.01 kg
Examiner trap
Using \((\sum fx)^2\) or \(\sum (fx)^2\) in place of \(\sum fx^2\). Square the value \(x\) first, then multiply by its frequency.
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
Find the standard deviation of 2, 4, 6.
Quick check+10 XP
5 is added to every value in a data set. What happens to the standard deviation?
Quick check+10 XP
For 10 values, \(\sum x = 50\) and \(\sum x^2 = 290\). Find the variance.
Quick check+10 XP
Which is a correct formula for the variance?
Section 03
Coded totals.
To keep numbers small, data are often given as \(\sum (x - a)\) and \(\sum (x - a)^2\). Subtracting \(a\) slides every value along the number line: the mean moves by \(a\) but the spread does not change at all.
Mean: \(\bar{x} = a + \dfrac{\sum (x - a)}{n}\).
Variance: \(\dfrac{\sum (x - a)^2}{n} - \left(\dfrac{\sum (x - a)}{n}\right)^2\), the same as the variance of \(x\).
Back to \(\sum x\): \(\sum x = \sum (x - a) + na\).
Back to \(\sum x^2\): expand, \(\sum (x - a)^2 = \sum x^2 - 2a \sum x + na^2\).
Scaling: if \(y = kx + b\), then \(\bar{y} = k\bar{x} + b\) and the standard deviation of \(y\) is \(|k|\) times that of \(x\).
Worked example Mean and standard deviation from coded totals
For 12 values, \(\sum (x - 50) = -36\) and \(\sum (x - 50)^2 = 420\). Find the mean and standard deviation of \(x\).
Mean of \(x - 50\) is \(-36 \div 12 = -3\), so \(\bar{x} = 50 - 3 = 47\).
Variance \(= \dfrac{420}{12} - (-3)^2 = 35 - 9 = 26\), unchanged by the coding.
Answer: Mean 47, standard deviation \(\sqrt{26} = 5.10\) (3 s.f.)
Worked example Recovering \(\sum x\) and \(\sum x^2\)
For the same data, find \(\sum x\) and \(\sum x^2\).
Thinking \(\sum x^2 = \sum (x - a)^2 + na^2\). The cross term \(-2a\sum x\) matters; expand the bracket properly or work via the variance.
Section 04
Two data sets together.
To combine two data sets, never average the means or the standard deviations. Turn each set back into \(n\), \(\sum x\) and \(\sum x^2\) (using \(\sum x^2 = n(\sigma^2 + \bar{x}^2)\)), add the totals, and use the formulas once on the combined totals.
Worked example Combined mean and standard deviation
Set A has 10 values with mean 15 and standard deviation 2. Set B has 15 values with mean 21 and standard deviation 3. Find the mean and standard deviation of all 25 values.
The combined standard deviation (3.95) is bigger than both separate ones (2 and 3), because the two means are far apart. Averaging the standard deviations misses this completely.
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Paper 1 to 6 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
For 25 values, \(\sum (x - 20) = 75\) and \(\sum (x - 20)^2 = 1350\). Find the standard deviation of \(x\).
Exam style+20 XP
Set A: 8 values, mean 10, standard deviation 2. Set B: 12 values, mean 15, standard deviation 4. Find the standard deviation of the 20 values combined.
Exam style+20 XP
Ten values have mean 6 and standard deviation 2. Find \(\sum x^2\).
Exam style+20 XP
Temperatures have mean 20 °C and standard deviation 5 °C. They are converted to °F using \(F = 1.8C + 32\). Find the mean and standard deviation in °F.
Skill unlocked
Standard deviation, sorted.
This skill is now recorded on your profile. Keep the chain going.