Skip to main content

A-level maths · ages 16 to 18 · ~15 min

Mean, Variance and Standard Deviation

Summarise a set of data by its average and by how spread out it is.

Try it

Statistics: mean, variance and standard deviation

x̄ ± σ (17.17 to 22.83)mean x̄ = 20.00x1 = 16x2 = 18x3 = 20x4 = 22x5 = 24-10-50510152025303540
Mean, x̄
20.00
sum 100 ÷ 5
Range
8
highest 24 − lowest 16
Variance, σ²
8.00
∑(x − x̄)² ÷ 5
Standard deviation, σ
2.83
√variance

For the readings [16, 18, 20, 22, 24], the mean is x̄ = 100 ÷ 5 = 20.00. The squared distances from the mean add up to 40.00, so the variance is σ² = 40.00 ÷ 5 = 8.00 and the standard deviation is σ = √8.00 = 2.83.

Population variance divides by n = 5 because these five readings are treated as the complete set of sensor measurements.

Mission 5: Read the starlightStep 2 of 4

Why this mission needs it: Every telescope and detector has random noise: mean, variance and standard deviation separate a real stellar signal from background scatter.

The idea

σ2=∑(x−xˉ)2n\sigma^2 = \frac{\sum (x - \bar{x})^2}{n}
σ\sigma
Standard deviation, the same unit as the data
How far the values typically are from the mean. Its square, σ2\sigma^2, is the variance.
xˉ\bar{x}
Mean, the same unit as the data
The total of the values divided by how many there are. Say it "x bar".
xx
A data value, the same unit as the data
Each single measurement in the data set. ∑\sum (the Greek capital letter sigma) means "add up for every value".
nn
Number of values, no unit (a count)
How many values there are in the data set.

Three kinds of average

The mean is the total divided by the number of values, xˉ=∑xn\bar{x} = \dfrac{\sum x}{n}. The median is the value in the middle once the data is sorted from smallest to largest. The mode is the most common value.

Key point: A single extreme value can drag the mean a long way, but it hardly moves the median.

Standard deviation measures spread

The readings 99, 100, 100, 101 and the readings 50, 80, 120, 150 both have a mean of 100, but the second set is far more spread out. The simplest measure of spread is the range: the largest value minus the smallest. The standard deviation, σ\sigma, puts a number on that spread, using every value.

Key point: A small standard deviation means the values sit close to the mean. A large one means they are widely spread.

Spotting outliers

An outlier is a value far from the rest of the data. A common rule treats a value as an outlier if it is more than 2 standard deviations from the mean.

Key point: Find out why an outlier is there before you remove it. It may be a mistake, or it may be the most interesting result.

Where you’ll see this: In July 2012 two teams at CERN announced the discovery of the Higgs boson. Each team waited until its signal was about five standard deviations away from what chance alone would give, the standard particle physicists set for claiming a discovery.

Worked example

Find the mean xˉ\bar{x} and the standard deviation σ\sigma of the data 2,4,4,4,5,5,7,92, 4, 4, 4, 5, 5, 7, 9.

  1. 1Find the mean: xˉ=2+4+4+4+5+5+7+98=408=5\bar{x} = \dfrac{2+4+4+4+5+5+7+9}{8} = \dfrac{40}{8} = 5.
  2. 2Square each distance from the mean: (2−5)2=9(2-5)^2 = 9, (4−5)2=1(4-5)^2 = 1 (three times), (5−5)2=0(5-5)^2 = 0 (twice), (7−5)2=4(7-5)^2 = 4, (9−5)2=16(9-5)^2 = 16.
  3. 3Add them up: 9+3+0+4+16=329 + 3 + 0 + 4 + 16 = 32.
  4. 4Divide by nn to get the variance: σ2=328=4\sigma^2 = \dfrac{32}{8} = 4.
  5. 5Take the square root to get the standard deviation.

Answerxˉ=5,σ=4=2\bar{x} = 5, \quad \sigma = \sqrt{4} = 2

Practice

Practise with the step-by-step quiz in the Try it panel. Each question is answered one step at a time, with fresh numbers every time, and the questions you miss come back for review.

Notes

Averages and spread

A set of data is usually summarised by two numbers: one for its centre, and one for how spread out it is.

Averages

  • The mean is the total divided by the number of values: xˉ=∑xn\bar{x} = \dfrac{\sum x}{n}, where ∑x\sum x means the sum of all the values.
  • The median is the middle value when the data is in order. With an even number of values, it is halfway between the middle two.
  • The mode is the value that occurs most often.

The mean uses every value, but one extreme value can pull it a long way. The median is hardly affected by extreme values, so it is often better for skewed data (data with a long tail of a few very large or very small values), such as incomes.

Spread

  • The range is the largest value minus the smallest. It depends only on the two extremes.
  • The interquartile range is the upper quartile (three quarters of the way through the ordered data) minus the lower quartile (one quarter of the way): the spread of the middle half of the data.
  • The standard deviation measures how far values typically are from the mean, using every value.

Standard deviation

The variance is the mean of the squared distances from the mean, and the standard deviation σ\sigma is its square root:

σ2=∑(x−xˉ)2n\sigma^2 = \frac{\sum (x - \bar{x})^2}{n}

An equivalent form is easier with summary statistics, when you are given nn, ∑x\sum x and ∑x2\sum x^2 rather than the data:

σ2=∑x2n−xˉ2\sigma^2 = \frac{\sum x^2}{n} - \bar{x}^2

For the data in the worked example, ∑x2=232\sum x^2 = 232, so σ2=2328−52=29−25=4\sigma^2 = \dfrac{232}{8} - 5^2 = 29 - 25 = 4: the same answer by the other route.

Some calculators and textbooks divide by n−1n - 1 instead of nn when estimating from a sample. Use the form your specification asks for.

Outliers

An outlier is a value far from the rest. Two common rules mark a value as an outlier if it is more than 2 standard deviations from the mean, or more than 1.5 interquartile ranges beyond a quartile. A question will tell you which to use. Check an outlier before removing it: it may be an error, or it may be the most interesting result.

Sensor readings in space

A spacecraft's sensors are never perfectly steady. Engineers work out the usual mean and standard deviation of each reading. A reading many standard deviations from the mean is very unlikely to be chance, so the software flags it for a closer look.

Next on the journey

Light itself is an electromagnetic wave: a ripple of electric and magnetic fields. To see what that means, start with how magnets and electric currents affect each other. How can a moving magnet make a current flow? That is the next lesson.

Sources

The topics in these notes follow the Department for Education documents below.

Where this fits in the curriculum(A-level mathematics · 3 DfE statements)Show ▾

A-level mathematics in the curriculum for England. The Department for Education says pupils should be taught to:

  • Key stage 3

    “describe, interpret and compare observed distributions of a single variable through: appropriate graphical representation involving discrete, continuous and grouped data; and appropriate measures of central tendency (mean, mode, median) and spread (range, consideration of outliers)”
  • A-level mathematics: Data presentation and interpretation

    “Interpret measures of central tendency and variation, extending to standard deviation”
  • A-level mathematics: Data presentation and interpretation

    “Be able to calculate standard deviation, including from summary statistics”

Mean, median, mode and range are key stage 3 work. Variance and standard deviation come in at A-level.

Quoted from National curriculum in England: mathematics programmes of study and GCE AS and A level subject content for mathematics (Department for Education, gov.uk), checked on 12 October 2026. This is the content every exam board has to cover. It is not one board’s specification, so use your own for exactly what is examined.

Tick it off once the practice questions make sense.

Next on this mission

Free to use, not free to run: if this lesson helped you, your child or your class, chip in towards hosting and new lessons, or help review a mission.

Chip in on Ko-fi

This lesson was written with AI assistance. Check formulas and figures against your textbook or exam board’s specification before relying on them in assessed work.

Spotted a mistake? Report a problem

Please do not include your name, email or anything else about yourself. We only need to know what is wrong. We use reports only to put mistakes right, and delete them after 30 days. Privacy