Skip to content
Tactiverge

School/□ Systems Engineer/Week 28

How sure is your average? The standard error

Ten runs give a mean of 48.3 ms. Ten more give 47.6 ms. Which mean is right, and how far would a third batch wander?

About 40 min · 3 goals · Checked by automated tests

1.Why should I care?

Engineers rarely care about one run; they care about the true average behaviour of a design. The standard error tells you how precisely your sample pins that down, and therefore how many runs you need before a claimed 2% improvement means anything.

  • ◇ Distinguish the spread of the data (SD) from the uncertainty of the mean (standard error).
  • ◇ Compute SE = s/√n and predict how it changes with sample size.
  • ◇ Explain the sampling distribution of the mean and why it is approximately normal.

2.Predict

You quadruple the number of runs from 10 to 40. What happens to the standard error of the mean?

Guess first. Being wrong here is how the surprise works.

3.Discover

Set σ = 4 and n = 4, then n = 16, then n = 64. Watch the dots (each experiment's mean) huddle closer to the true mean of 50. Read the standard error in the readout each time and check it halves.

Loading the interactive…

Can't use the interactive? Read a description instead

The interactive draws 20 experiments, each the mean of n random readings around a true value of 50, and shows each mean as a dot with an interval. With σ = 4 the standard error is 2 for n = 4, 1 for n = 16 and 0.5 for n = 64: the dots cluster twice as tightly each time n is quadrupled.

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

Twenty-five runs have sample SD s = 5 ms. What is the standard error of the mean, in ms?

ms

5.Watch

→ Watch for the moment the video separates 'how spread out are the measurements' from 'how spread out would the means be if we repeated the whole experiment'.

Separates the spread of the data from the uncertainty of its mean, the distinction every benchmark table depends on.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

6.Understand

Two different spreads

The standard deviation s describes individual measurements: how much one run differs from another. It does not shrink as you collect more data; it settles towards the true σ. The standard error SE = s/√n describes the mean: how much the average would differ if you repeated the whole experiment. It shrinks as n grows.

The sampling distribution

Imagine running your 10-run experiment thousands of times and plotting each mean. That histogram is the sampling distribution of the mean. Its centre is the true mean μ and its standard deviation is σ/√n. You never see it directly, but the standard error estimates its width from a single experiment.

Why it is close to normal

The central limit theorem says the mean of many independent random contributions tends towards a normal distribution, whatever the shape of each contribution (as long as its variance is finite). For moderate n (often 20–30 or more, fewer for symmetric data) the sampling distribution of the mean is close to normal. This is what justifies the normal approximation used throughout this term.

Precision costs effort

Because SE ∝ 1/√n, each halving of uncertainty needs four times the data. Decide the precision you need before collecting data. If σ ≈ 3 ms and you need to resolve a 1 ms difference, a quick calculation tells you whether 10 runs could ever be enough (they can't).

Explain it another way

One person's height tells you little about a town's average height. Average 100 people and you're close. Average 10,000 and you're very close, but not 100 times closer: only 10 times.

Worked example 1

s = 3.2 ms from n = 16 runs. Find the SE. How many runs would make the SE 0.4 ms?

SE = 3.2/√16 = 0.8 ms. For 0.4 ms: √n = 3.2/0.4 = 8, so n = 64 runs.

Common mix-ups

  • More data makes each measurement less noisy.
    ✓ More data makes the average more precise. Each run is just as noisy as before.
  • Error bars always show the standard deviation.
    ✓ They might show SD, SE or a confidence interval. Always say which in the caption.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

As you collect more and more runs, what happens to the sample SD and to the SE?

Practice 3 · a fresh version every time

A sensor's readings have standard deviation σ ≈ 4 units. How many repeated readings n do you need so that the 95% confidence interval for the mean has a half-width of at most 1.5 units? Use z = 1.96 and round n up to a whole number.

readings

Practice 4

Your laptop slowly heats up during a benchmark, so later runs are systematically slower. What does this do to s/√n as an estimate of the mean's uncertainty?

Practice 5 · a fresh version every time

You repeat a measurement n = 64 times. The sample standard deviation is s = 2.5 °C. Using the normal approximation (z = 1.96 for 95%), what is the half-width of the 95% confidence interval for the mean, in °C? (3 significant figures.)

°C

8.Apply it

Take the 20 timings from the previous lesson. Compute the SE using the first 5 runs, the first 10 and all 20. Plot SE against n on log–log axes and check the slope is about −½.

9.Reflect

Concepts: Measurement error and uncertainty · Repeated trials and sample size · Confidence intervals