Skip to content
Tactiverge

School/◇ Explorer/Week 32

Planning a fair test

Your new design beat the old one, but the new one was tested on a cool, cloudy day and the old one in a heatwave. Did your design win, or the weather?

About 30 min · 3 goals · Checked by automated tests; not yet reviewed by an educator

1.Why should I care?

'Evidence of experimentation' is a capstone requirement, and evidence only counts if the test was fair. A fair test lets you say 'my change caused the improvement', not just 'something changed and things got better'.

  • ◇ Name the variable you change, the one you measure and the ones you keep the same.
  • ◇ Plan a fair comparison between two designs.
  • ◇ Explain why testing on new cases is fairer than testing only on the cases you tuned for.

2.Predict

You want to know whether narrow drippers deliver more evenly than wide ones. Which test is fair?

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

3.Discover

Choose settings and submit. The server tests them on your batch AND on two batches you haven't seen. Why is that a fairer test than only the batch you tuned on?

Can't use the interactive? Read a description instead

The sorting-machine level asks you to choose the belt speed, the red threshold and the size limit so that at least 96% of items are sorted correctly at 120 or more per minute. The server then tests your settings on your own batch and on two batches you haven't seen, which shows whether they work in general or only on the items you tuned them for.

4.Watch

→ Listen for why you change only one thing between tests, and why you repeat each test.

Shows why you change one thing at a time and repeat a test before trusting the result.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

5.Understand

Three kinds of variable

The independent variable is the one thing you deliberately change (dripper size). The dependent variable is what you measure (mL delivered per hour). Controlled variables are everything you keep the same (tank level, tube length, room, timing). Write all three down before you start.

Fair comparisons

Change one thing at a time. Test both designs under the same conditions, ideally alternating (A, B, A, B) so slow changes like a draining tank affect both equally. Decide what you'll measure, and how, before you see any results, so you can't move the goalposts.

Test on new cases

If you tune a design on one set of situations, it may only be good at those. The sorting machine checks your settings on two batches you haven't seen. For your capstone, keep back one or two test situations you didn't use while designing, and test on those at the end.

Explain it another way

A fair race: same distance, same start signal, same track. If one runner starts 10 metres ahead, the result tells you nothing about speed.

Worked example 1

Plan a fair test: does a lid keep a lunchbox colder?

Independent: lid on or off. Dependent: temperature inside after 4 hours, with the same thermometer. Controlled: same box, same ice pack frozen for the same time, same room, same start time. Repeat each condition three times, alternating.

Common mix-ups

  • One test is enough if you're careful.
    ✓ Repeat it. One result can be a fluke; several show the pattern and the spread.
  • Changing several things at once saves time.
    ✓ Only until you need to know which change worked.

6.Practice

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

Practice 1

Testing whether bigger wheels make a toy cart roll further: which is the dependent variable?

Practice 2

Why alternate trials A, B, A, B instead of A, A, B, B?

Practice 3

You tuned your sorter's settings on batch 1. Which result is the best evidence that it works?

Practice 4

Between trials of design A and B you changed the dripper AND the tube length, and B did better. What can you conclude?

7.Apply it

Plan a fair test for your capstone. Write the independent, dependent and controlled variables, how many times you'll repeat each condition, the order you'll run them in, and which test case you'll keep back for the end. Put the plan in the 'How I tested it' section of your Design Studio project before running anything.

8.Reflect

Concepts: Variables, controls and confounders · Overfitting and held-out tests