Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

AC 2.7: Variance and standard deviation

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

65 minutes

Which runner is steadier?

Two runners both average 60 seconds for a lap. One is always within 2 seconds of that. The other swings between 50 and 70.

The coach wants one number that says how steady each runner is. That number is the standard deviation.

Key words

WordWhat it means
Dataseta collection of records held together for analysis
Meanthe total divided by how many values there are
Deviationhow far one value is from the mean
Variancethe mean of the squared deviations
Standard deviationthe square root of the variance: a typical gap from the mean, in the data's own units
Populationall of the values you care about, not just a sample
Samplea smaller group taken from the population

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can work out the variance and standard deviation of a small dataset, and say what a large or small one means.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The idea in four steps

Standard deviation says how far values typically are from the mean.

  1. Find the mean.
  2. Find each value's gap from the mean, and square the gap, so that gaps below the mean do not cancel gaps above it.
  3. Take the mean of the squared gaps. This is the variance.
  4. Take the square root of the variance.

Worked example: eight lap times

TimeGap from mean (5)Squared gap
2-39
4-11
4-11
4-11
500
500
724
9416
Total32

The cells students fill in are left blank in this preview.

Worked example: from squares to the answer

StepWorkingResult
Mean40 divided by 85
Variance32 divided by 84
Standard deviationThe square root of 42

The cells students fill in are left blank in this preview.

Try it: standard deviation in Python

Code: python
times = [2, 4, 4, 4, 5, 5, 7, 9]
mean = sum(times) / len(times)
total = 0
for t in times:
    total = total + (t - mean) ** 2
variance = total / len(times)
print("variance", variance)
print("standard deviation", variance ** 0.5)

# Change every time to 5. What is the standard deviation?

What the number means

A small standard deviation means values sit close to the mean: a steady runner. A large one means they are spread out: an unsteady runner.

It is in the same units as the data, so 2 here means about 2 seconds. A standard deviation of 0 means every value is the same.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.