top of page

2.4 Variance and Standard Deviation

A-level Maths Statistics and Mechanics Year 1 (AS) · Edexcel 9MA0 · Chapter 2: Measures of Location and Spread

A free A-level Maths Stats and Mechanics Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: measuring spread about the mean, from raw data, tables and summary statistics. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Calculate the variance and standard deviation of a list of data
  • Use Σ x, Σ x² and Sₓₓ to find the standard deviation from summary statistics
  • Calculate the standard deviation from a frequency table and estimate it for grouped data
  • Interpret the standard deviation in context and work backwards from it

Key words

  • Deviation: How far a value is from the mean, x − x̅. Deviations always add up to 0.
  • Variance: The mean of the squared deviations, σ². Its units are the data units squared.
  • Standard deviation: σ, the square root of the variance. It has the same units as the data.
  • Sₓₓ: The sum of squared deviations: Sₓₓ = Σ(x − x̅)² = Σ x² − ((Σ x)²)/n
  • Summary statistics: Totals such as n, Σ x and Σ x² that let you find the mean and spread without the raw data.

Spread about the mean

The range and IQR use only a few values. The variance uses every value: square each deviation from the mean (so negatives do not cancel positives), then take the mean of those squares. The standard deviation is its square root, which brings the units back to those of the data.

Formula: σ² = (Σ(x − x̅)²)/n = (Σ x²)/n − ((Σ x)/n)² = (Sₓₓ)/n σ = √(σ²)

Worked example: using deviations

Find the variance and standard deviation of 2, 4, 5, 7, 7.
x̅ = 25/5 = 5. Deviations: −3, −1, 0, 2, 2. Squares: 9, 1, 0, 4, 4, total 18
σ² = 18/5 = 3.6, σ = √3.6 = 1.897...

Answer: variance 3.6, standard deviation 1.90 (3 s.f.)

The "mean of the squares minus the square of the mean"

The second form of the formula is quicker, especially with a calculator or with summary statistics. For 2, 4, 5, 7, 7: Σ x² = 4 + 16 + 25 + 49 + 49 = 143, so σ² = 143 ÷ 5 − 5² = 28.6 − 25 = 3.6, as before.

Worked example: from summary statistics

For 20 days, the daily maximum temperature x °C gives Σ x = 364 and Σ x² = 6870.
x̅ = 364/20 = 18.2
σ² = 6870/20 − 18.2² = 343.5 − 331.24 = 12.26
Or: Sₓₓ = 6870 − 364²/20 = 245.2 and σ² = 245.2/20 = 12.26

Answer: mean 18.2 °C, standard deviation √12.26 = 3.50 °C (3 s.f.)

Exam tip: Square the mean after dividing: (Σ x²)/n − x̅². Keep full calculator values until the final answer.

Frequency tables and grouped data

Formula: σ² = (Σ fx²)/(Σ f) − ((Σ fx)/(Σ f))² For grouped data use the class midpoints as x.

Worked example: a discrete frequency table

x: 0, 1, 2, 3, 4 with frequencies 4, 9, 12, 8, 2 (Σ f = 35)
Σ fx = 0 + 9 + 24 + 24 + 8 = 65; Σ fx² = 0 + 9 + 48 + 72 + 32 = 161
σ² = 161/35 − (65/35)² = 4.6 − 3.448... = 1.151...

Answer: σ = 1.07 (3 s.f.)

  • 0 ≤ t < 10; f 6; Midpoint x 5; fx 30; fx² 150
  • 10 ≤ t < 20; f 15; Midpoint x 15; fx 225; fx² 3375
  • 20 ≤ t < 30; f 18; Midpoint x 25; fx 450; fx² 11250
  • 30 ≤ t < 40; f 8; Midpoint x 35; fx 280; fx² 9800
  • 40 ≤ t < 60; f 3; Midpoint x 50; fx 150; fx² 7500
  • Total; f 50; Midpoint x ; fx 1135; fx² 32075

Worked example: grouped times

x̅ = 1135/50 = 22.7
σ² = 32075/50 − 22.7² = 641.5 − 515.29 = 126.21

Answer: mean ≈ 22.7 min, standard deviation ≈ √126.21 = 11.2 min

Like the mean, the standard deviation from grouped data is only an estimate, because the midpoints stand in for the real values.

Interpreting and working backwards

A larger standard deviation means the data are more spread out about the mean; a smaller one means the values are more consistent. Many values lie within one standard deviation of the mean, x̅ ± σ, and very few lie more than 3 standard deviations away.

If you know n, the mean and the standard deviation, rearrange to recover the summary statistics: Σ x = nx̅ and Σ x² = n(σ² + x̅²). This lets you add, remove or correct values.

Worked example: working backwards

Twelve values have mean 8.5 and standard deviation 2.1. Find Σ x and Σ x².
Σ x = 12 × 8.5 = 102
(Σ x²)/12 − 8.5² = 2.1², so Σ x² = 12(4.41 + 72.25)

Answer: Σ x = 102, Σ x² = 919.92

Common mistakes

  • Writing (Σ x²)/n − x̅ (forgetting to square the mean) or ((Σ x)²)/n in place of (Σ x²)/n.
  • Using Σ fx² as (Σ fx)², or squaring f as well as x.
  • Giving the variance when the question asks for the standard deviation (or the other way round).
  • Rounding the mean before squaring it, which can make the answer wrong.
  • Using class end points instead of midpoints for grouped data.

Revision questions

Try these, then check your answers below each one.

Question 1. A data set has n = 25, Σ x = 400 and Σ x² = 6850. Find the standard deviation, to 3 significant figures.

Answer: 4.24

Working: x̅ = 16. σ² = 6850/25 − 16² = 274 − 256 = 18, σ = √18 = 4.24.

Question 2. For 8 values, Σ x = 40 and Σ x² = 230. Find Sₓₓ.

Answer: 30

Working: Sₓₓ = 230 − 40²/8 = 230 − 200 = 30.

Question 3. Lengths are measured in cm. What are the units of their variance? (Choose from: cm; cm²; cm³; It has no units.)

Answer: cm²

Working: Deviations are in cm, so squared deviations are in cm². The standard deviation is back in cm.

Related lessons

Continue in the full course

This lesson is section 2.4 of our free A-level Maths Statistics and Mechanics Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Statistics and Mechanics Year 1 (AS) course.

 

 

 

 

 

 

 

bottom of page