Write the plan before the runs
After 40 runs you notice the new sorter wins on accuracy but loses on throughput. Which metric were you testing?
About 30 min · 2 goals · Checked by automated tests
1.Why should I care?
Deciding what counts as success after you see the data is the easiest way to fool yourself, and others. A short plan written first protects the result and makes the report half-written already.
- ◇ Write a test plan with question, hypothesis, metrics, conditions, trials and analysis before running.
- ◇ Explain how choosing metrics after seeing results biases a comparison.
2.Predict
You test 6 metrics and report only the one where your method won. What is the risk?
Guess first. Being wrong here is how the surprise works.
3.Understand
What goes in a test plan
Question and hypothesis. Primary metric (one) and secondary metrics. Conditions: what changes, what is held fixed, seeds. Trials: how many per condition, and why. Analysis: what you will compute (mean ± SD, difference, effect size) and what result would count as support. Stopping rule: when you stop collecting.
Why first?
Choosing the metric, the seeds or the number of trials after peeking at results lets chance pick your conclusion. Writing them first, dated, makes the test honest. You can still explore afterwards; just label exploration as exploration.
Plans can change, openly
If you discover the plan was wrong (a metric is broken), change it, note the change and the reason in the report, and say which results came before and after.
Explain it another way
Calling your shot in pool: naming the pocket before you hit makes the shot count.
Pre-specifying hypotheses, primary outcomes and analysis controls the false-positive rate that grows with every extra comparison or flexible decision.
Clinical trials register their primary outcome publicly before starting; engineering verification plans name pass criteria before testing for the same reason.
Worked example 1
Write a primary metric for 'does majority voting help the sorter survive a lying sensor?'
'Proportion of parts sorted correctly over 200 parts per run, mean over 10 seeded runs, with glare on.' Secondary: throughput in parts per minute.
Common mix-ups
- Planning in advance is only for big research projects.
✓ A half-page plan takes ten minutes and protects even a small Build investigation from self-deception.
4.Discover
Read the Level 5 investigation task. Before touching any setting, write a one-page test plan: question, hypothesis, primary metric, conditions held fixed, number of runs, and how you will compare results.
Can't use the interactive? Read a description instead
The sorting-machine Level 5 task asks for an investigation changing one setting across recorded runs; this lesson asks for a written test plan before any run.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which belongs in a test plan written before the runs?
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Why name one primary metric?
Practice 3
Halfway through, you realise your metric ignores jammed parts. What should you do?
Practice 4 · a fresh version every time
Pilot runs suggest a trial-to-trial standard deviation of 4 cm. How many trials do you need so the standard error of the mean is at most 1.5 cm? (Give the smallest whole number.)
Practice 5 · a fresh version every time
A metric has a sample standard deviation of 4.5 across n = 16 independent trials. What is the standard error of the mean?
7.Apply it
Write and date a test plan for this term's controller comparison project before running anything. Keep it unchanged; you will check your report against it in week 35.
8.Reflect
9.Go further
Research mode: limits and open questions
Registered reports, where the plan is reviewed before data collection, are increasingly used in research fields that worry about selective reporting.
Concepts: Experimental design and test protocols · Honest reporting and research integrity