Report the difference, not two averages
'Baseline 1.79, new 0.86.' What's missing from that sentence that a sceptical reader would demand?
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
The question a reader really asks is 'how much better, and how sure are you?' Two bare averages answer neither. A difference with its uncertainty answers both.
- ◇ Compute the difference between two conditions with its standard error.
- ◇ Use paired seeded trials to compare methods per seed.
- ◇ Write a one-sentence comparison with metric, conditions, uncertainty and n.
2.Predict
Over 10 paired seeds, the new method wins on all 10. Over 10 different seeds per method, means differ by the same amount. Which is stronger evidence?
Guess first. Being wrong here is how the surprise works.
3.Understand
Difference ± uncertainty
For independent conditions: difference = x̄₁ − x̄₂, with SE = √(SE₁² + SE₂²). A difference of several SEs is unlikely to be luck; one of about one SE could easily be. Also give the percentage improvement relative to the baseline.
Paired trials
With shared seeds, compute the difference per seed, then its mean and SD. Because shared conditions cancel, these differences usually vary much less than either method alone, giving a tighter estimate. Also report how many seeds the new method won on.
The reporting sentence
Template: 'On [task and conditions], [method] reduced [metric] from [baseline mean ± SD] to [method mean ± SD] (n = …, same seeds), a difference of [Δ ± SE] ([%] improvement).' Everything a reader needs to check the claim is in one place.
Explain it another way
Comparing two runners on the same day on the same track tells you more than comparing their times from different races.
The paired difference removes between-trial variance shared by both conditions (common random numbers). The paired t-test formalises this; at this level, the mean and SD of differences is enough.
Unpaired: SE₁ = 0.13/√10, SE₂ = 0.09/√10; SE of difference ≈ √(0.0017 + 0.0008) ≈ 0.05. Δ = 0.93 ≈ 18 SE: overwhelming in this simulation.
Simulation benchmarks increasingly report per-seed or per-scenario results so readers can see where a method wins and where it loses.
Worked example 1
Write the reporting sentence for the tuned-P vs PI lab results.
'On the simulated first-order speed loop with noise and a random load step, PI reduced IAE from 1.79 ± 0.13 to 0.86 ± 0.09 (mean ± SD, n = 10 shared seeds), a difference of 0.93 ± 0.05 (SE), about 52 % lower; PI was lower on all 10 seeds.'
Common mix-ups
- If the averages differ, the methods differ.
✓ Averages always differ a little by chance. Compare the difference with its uncertainty.
4.Discover
In the Code Lab, enter two lists of 10 per-seed results. Compute each mean and SD, the difference of means, its standard error √(SE₁² + SE₂²), the per-seed differences and their mean and SD. Compare the two uncertainties.
Can't use the interactive? Read a description instead
In the Code Lab, two lists of per-seed results are summarised as means, standard deviations, the difference of means with its standard error, and the mean and standard deviation of the per-seed differences.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1 · a fresh version every time
A baseline path follower has a mean tracking error of 40 mm. The new method has 38 mm under the same conditions. What is the percentage improvement (lower error is better)?
6.Watch
→ Watch for why matched pairs reduce the noise you compare the difference against.
Shows how to judge a difference between two conditions against the noise, including why paired comparisons are so powerful.
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.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Condition A has SE 0.3 and condition B has SE 0.4 (independent). What is the SE of the difference?
Practice 3 · a fresh version every time
Over 10 seeded trials each, the baseline controller's settling time averaged 24 s and the new controller's 19 s. Both conditions have a standard deviation of 5 s, so the pooled SD is 5 s. What is the effect size d = (difference in means) / pooled SD?
Practice 4
Which sentence reports a comparison properly?
Practice 5
Why also report 'won on 9 of 10 seeds'?
8.Apply it
Write the reporting sentence for your own P vs PI comparison, including per-seed wins. Swap with a partner and try to find anything missing from theirs.
9.Reflect
Concepts: Comparing conditions with uncertainty · Evaluation metrics