Lite / Intelligent Robotic Systems / Week 32
Change one thing
You switch the lift to PI control and also lighten the cabin. Error halves. Was it the controller?
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.
Predict
In the hook, can you tell whether PI or the lighter cabin reduced the error?
- Yes, it was PI
- Yes, it was the load
- No: the two changes are confounded
Guess first, then reveal
They are confounded: both changed together, so the effect cannot be separated. Re-run with one change at a time, or test both controllers at both loads.
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 ___.'
What the interactive shows (text version)
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.
Watch (optional)
Watch for: 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.
“Controlled Experiments: Crash Course Statistics #9” by CrashCourse (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
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
Intuitive
Testing whether a new trainer makes you faster: same track, same distance, same weather, and only the shoes change.
Technical
Experimental design manipulates the independent variable while controlling or randomising nuisance factors, so differences in the dependent variable can be attributed to the manipulation.
Applied
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.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
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.
Reflect
Which variable would you be most likely to forget to control in your own project?
Write your answer on paper or in your own notes. Lite never stores what you write.
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.