TactivergeLite

Lite / Intelligent Robotic Systems / Week 20

The standard error: how sure is the average?

To make an average twice as trustworthy, do you need twice as many readings, or four times?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Engineers report a mean with an uncertainty so others can judge whether two results really differ. The standard error is that uncertainty for an average, and its square-root law tells you how much testing a result is worth.

Predict

Readings have σ = 4. How does the spread of the mean of 16 readings compare?

  1. Still 4
  2. 1, a quarter as big
  3. 0.25, a sixteenth as big
Guess first, then reveal

The mean of n independent readings spreads by σ/√n = 4/√16 = 1. Sixteen times the data buys four times the certainty, not sixteen.

Discover

Switch to 'Means of 200 batches'. With σ = 4, compare n = 1, 4, 16 and 64: write down the spread of the means each time next to σ ÷ √n. Then add a bias of +5. What happens to the means' centre, and to their spread?

What the interactive shows (text version)

In 'Means of 200 batches' mode the histogram shows 200 averages. With σ = 4: n = 1 gives a spread of about 4, n = 4 about 2, n = 16 about 1 and n = 64 about 0.5, matching σ ÷ √n. Adding bias +5 shifts the whole histogram 5 units right without changing its width.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Watch for the moment the video separates the standard deviation of the measurements from the standard deviation of the means: they are different quantities with different uses.

Separates the spread of individual readings from the spread of their average, which is exactly the difference between σ and σ/√n.

“The standard error, Clearly Explained!!!” by StatQuest with Josh Starmer (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Two spreads, two jobs

σ (or its estimate s) describes one reading: use it to judge how far a single measurement might be off. SE = σ/√n describes the average of n readings: use it to judge how well you know the true value. Mixing them up is one of the most common errors in lab reports.

Error bars that mean something

An error bar must say what it shows: ±1 SE, ±2 SE or ±1 s. Roughly, the true value lies within ±2 SE of the mean about 95% of the time, if errors are random, independent and unbiased. State n alongside it so readers can convert.

What standard error cannot see

SE only measures random scatter. A miscalibrated sensor gives a beautifully small SE around the wrong value. Readings taken too quickly may not be independent (the same vibration affects several), and then the real uncertainty is larger than σ/√n.

Explain it another way

Intuitive

One person's guess of a jar of sweets can be wildly off. The average of a hundred guesses is far better, but not a hundred times better: about ten times.

Technical

For independent, identically distributed errors with variance σ², Var(x̄) = σ²/n. In practice σ is estimated by s, giving SE ≈ s/√n; for small n a t-distribution widens the confidence interval slightly.

Mathematical

SE ∝ n^(−1/2). On log–log axes, SE against n is a straight line of slope −1/2: every factor of 100 in n buys a factor of 10 in SE.

Applied

Test plans in engineering use n = (σ/SE)² to budget trials: if each drop test of a gripper's grasp force varies by σ = 2 N and you need the mean to ±0.25 N (1 SE), you need 64 tests.

Derivation: Why the mean wobbles by σ/√n
  1. Each reading is xᵢ = μ + εᵢ, where the errors εᵢ are independent, have mean 0 and variance σ² (variance is the standard deviation squared).

  2. The mean is x̄ = (x₁ + … + xₙ)/n = μ + (ε₁ + … + εₙ)/n.

  3. For independent errors, variances add: Var(ε₁ + … + εₙ) = nσ².

  4. Dividing a quantity by n divides its variance by n²: Var(x̄) = nσ²/n² = σ²/n.

  5. Take the square root: the standard deviation of the mean, the standard error, is SE = σ/√n.

  6. Rearranged for planning: to reach a target SE you need n = (σ/SE)², rounded up. Halving SE needs four times the readings.

  7. Bias b adds to every reading, so x̄ = μ + b + (noise): the mean's centre stays shifted by b however large n is.

Worked example 1

A gyroscope's drift rate is measured 25 times: mean 0.84 °/s, s = 0.30 °/s. Report the result.

SE = 0.30 ÷ √25 = 0.06 °/s. Report 0.84 ± 0.06 °/s (±1 SE, n = 25), or about 0.84 ± 0.12 °/s for an approximate 95% interval. Note that this excludes any calibration bias in the reference.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

mm

readings

°C

Practice 4. Your mean has SE = 0.4 from 10 readings. How many readings for SE = 0.2?
Practice 5. You want to know how far a single future reading might be from the truth. Which spread do you quote?
Practice 6. 1000 readings give a mean of 20.03 ± 0.01 °C (1 SE), but a reference thermometer reads 21.0 °C. What is the likely explanation?

Apply it

Plan a test: a lidar's noise is σ = 3 cm and you must report a wall's distance to ±0.5 cm at about 95% (±2 SE). How many independent readings do you need? Then explain what extra test would show whether the readings are really independent.

Reflect

Why do you think the square-root law makes 'just collect more data' an expensive habit?

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

Research mode: limits and open questions

The proposed TV-01 study will need trial counts chosen this way before data is collected, so that differences between conditions can be told apart from noise (no results exist yet).

← Mean, spread and the histogramWhere noise comes from →