Change one thing
You switch the lift to PI control and also lighten the cabin. Error halves. Was it the controller?
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
Robot results are easy to fool yourself with: a battery that charged overnight, a different floor, a new seed. A fair test isolates the one change you care about, so the result means what you say it means.
- ◇ Identify independent, dependent and controlled variables for a robotics experiment.
- ◇ Spot a confounding variable and redesign the test to remove it.
- ◇ Write a testable hypothesis with a measurable outcome.
2.Predict
In the hook, can you tell whether PI or the lighter cabin reduced the error?
Guess first. Being wrong here is how the surprise works.
3.Understand
Three kinds of variable
The independent variable is what you deliberately change (controller type). The dependent variable is what you measure (levelling error in mm). Controlled variables are everything else that could affect the result and is held fixed (load, trip, seeds). A control condition is the reference you compare against, often the current method.
Confounding
A confounder changes along with the independent variable and also affects the outcome. Changing controller and load together, or running all P trials in the morning and all PI trials after a firmware update, confounds the comparison. Fix it by holding the variable fixed or by varying it equally across conditions.
A testable hypothesis
'PI is better' is not testable. 'With a 450 kg load, PI reduces mean final levelling error compared with tuned P, over the same 10 seeds' names the change, the measure, the conditions and the comparison. It can clearly turn out false.
Explain it another way
Testing whether a new trainer makes you faster: same track, same distance, same weather, and only the shoes change.
Experimental design manipulates the independent variable while controlling or randomising nuisance factors, so differences in the dependent variable can be attributed to the manipulation.
Robotics papers that compare controllers or planners usually fix the scenarios, seeds and hardware and change one component at a time.
Worked example 1
Question: does a median filter reduce false obstacle stops? Name the variables.
Independent: filter on or off. Dependent: false stops per 100 m. Controlled: route, speed, sensor, lighting, seeds for simulated noise. Control condition: filter off.
Common mix-ups
- Changing several things at once is efficient.
✓ It saves runs but makes the result uninterpretable unless the design deliberately crosses the factors.
4.Discover
Pick a question, classify every variable, and choose trials and run order. Before checking, write one sentence: 'If I forgot to control ___, the result could be wrong because ___.'
Loading the interactive…
Can't use the interactive? Read a description instead
The experiment designer lists variables for two questions. For PI versus P in the lift: controller type is independent, levelling error is dependent, load, trip and seeds are controlled, door colour is irrelevant. For rover checkpoints: number of checkpoints is independent, final distance is dependent, route and camera trust are controlled.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
In 'Does checkpoint spacing change the rover's final error?', what is the dependent variable?
6.Watch
→ Note what a control group is for, and why randomly assigning conditions protects against hidden differences.
Control groups, randomisation and blinding: the ideas that make a comparison fair, explained with everyday examples.
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
All baseline runs were done before lunch, all new-method runs after a battery swap. What is the problem?
Practice 3
Which is a testable hypothesis?
Practice 4
What is the control condition in a test of a new obstacle filter?
Practice 5 · a fresh version every time
Five trials of a robot's docking error gave 49, 44, 52, 51, 49 mm. What is the mean, in mm?
8.Apply it
Write a one-paragraph test plan for comparing P and PI in the elevator build: hypothesis, independent, dependent and controlled variables, control condition, and number of trials.
9.Reflect
10.Go further
Research mode: limits and open questions
Write the hypothesis, metric and analysis before collecting data. Deciding them afterwards makes it too easy to pick whichever comparison looks best.
Concepts: Variables, controls and confounders · Experimental design and test protocols