# Worksheet: Experimental design

*Tactiverge Academy · Research and Engineering Methodology, module 2 · https://tactiverge.win/academy/research-methodology/#experimental-design*

Name: ______________________    Date: ____________

## Learning objectives

Tick each one when you can do it without looking at your notes.

- [ ] Design a fair test that changes one variable while controlling others.
- [ ] Explain why repeated trials are needed and choose a sensible number.
- [ ] Use randomization to avoid hidden biases in the order of trials.
- [ ] Estimate and report measurement uncertainty.

## Lesson 1: Variables and controls

How to design a fair test: spotting confounding variables, choosing control conditions, using positive and negative controls, and knowing when to change more than one thing at once.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/variables-and-controls/

### Check your understanding

1. All the "sensor on" trials were run after all the "sensor off" trials, as the battery slowly drained. What is the battery voltage in this experiment?
   A) The dependent variable
   B) A confounding variable, because it changed along with the condition and may affect performance
   C) A positive control
   D) Irrelevant, because it was not the thing being tested

2. Before each session, you place a known 200 g mass on a force sensor and check the reading. What is this?
   A) A negative control
   B) A confounder
   C) A positive control
   D) A between-subjects design

3. Pads greatly improve grip on smooth objects but make almost no difference on rough ones. This is an example of:
   A) An interaction between pad condition and object type
   B) A failed experiment
   C) A negative control
   D) Measurement drift

4. Adding a sensor also adds mass and a cable to the gripper. What is the best control condition?
   A) The original gripper with nothing attached
   B) A different, lighter gripper
   C) No control is needed
   D) The same gripper carrying the same mass and cable, with the sensor's readings not used

#### Project: Hunt the confounders

Read this made-up scenario. A student tests whether a new line-following program works better than the old one. On Monday they run the old program ten times on a hand-drawn track. On Friday they run the new program ten times on a freshly printed track, in a different room, after fully charging the batteries. The new program completes more laps.

1. List every possible confounder you can find. Aim for at least five.
2. For each one, say whether you would hold it constant, spread it across conditions, or measure it.
3. Redesign the experiment in a short paragraph so that the program is the only systematic difference.
4. Bonus: sketch a 2 × 2 factorial version that also tests two kinds of track.

This is a paper exercise. You do not need to build or run anything.

**Deliverables**

- A list of at least five possible confounders
- A strategy for each one: hold constant, spread across conditions, or measure
- A redesigned, fairer experiment in one paragraph
- Optional: a 2 × 2 factorial layout

**Safety (adult supervision required):** This is a paper exercise. If you later build and test a real robot with motors or batteries, do it only with adult supervision, keep fingers clear of moving parts, and follow the battery maker's charging instructions.

### My notes

______________________________________________

______________________________________________

## Lesson 2: Repeatability, trials and sample size

Why one run is never enough, how the spread of repeated results tells you how much to trust an average, and a practical way to decide how many trials an experiment needs.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/trials-and-sample-size/

### Check your understanding

1. Ten trials have a standard deviation of 12 g. Roughly how many trials would you need to halve the standard error of the mean?
   A) 20
   B) 15
   C) 40
   D) 100

2. Controller A succeeds 7 times out of 10 and controller B 9 times out of 10. What is the most reasonable conclusion?
   A) B is clearly better
   B) With only 10 trials each, a difference this size could easily be due to chance; more trials are needed
   C) A is clearly better
   D) Success rates cannot be compared

3. A student records the force sensor 50 times during a single grasp and reports "50 trials". What is wrong?
   A) Nothing, more readings are always better
   B) The sensor should be read 100 times
   C) Force cannot be measured during a grasp
   D) These are 50 measurements of one trial, not 50 independent trials

4. What does the standard error of the mean tell you?
   A) How uncertain the average is, given the spread and the number of trials
   B) The largest result recorded
   C) How far each individual trial is from the mean
   D) Whether the experiment was fair

5. A pilot gives a standard deviation of 10 g, and you want each condition's standard error to be at most 2.5 g. What is the minimum number of trials per condition?
   A) 4
   B) 16
   C) 25
   D) 10

#### Project: See the square-root law for yourself

Choose one of these options.

**Option A (Python).** Modify the success-rate simulation from this lesson. Run it with n = 5, 10, 20, 50, 100 and 200 trials. For each n, print the smallest and largest observed rate, and also the standard deviation of the 1,000 observed rates (use `statistics.stdev`). Plot or tabulate the standard deviation against n. Check whether it roughly follows √(0.7 × 0.3 ÷ n).

**Option B (paper and coins).** Flip a coin 10 times and record the fraction of heads. Repeat this 10 times. Then do 10 batches of 40 flips each (or share the work with friends). Compare the spread of the fractions in the two cases.

In either case, write two or three sentences on what this means for how many trials a robot experiment needs.

**Deliverables**

- A list of observed spreads for at least four different numbers of trials
- A comparison with the formula (Option A) or between batch sizes (Option B)
- A short paragraph applying the result to choosing a number of trials

### My notes

______________________________________________

______________________________________________

## Lesson 3: Randomisation, blinding and bias

The hidden biases that creep into experiments through trial order, selection and judgement, and the simple tools that defend against them: randomisation, blocking, counterbalancing and blinding.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/randomisation-and-bias/

### Check your understanding

1. A team runs all trials of method A in the morning and all trials of method B in the afternoon. What is the main risk?
   A) The experiment takes too long
   B) Method B will have more trials
   C) Anything that changes during the day, such as temperature, battery or operator skill, is confounded with the method
   D) There is no risk if the robot is the same

2. What does blocking add to simple randomisation?
   A) Each block contains every condition once, so no condition can end up bunched at the start or end by chance
   B) It removes the need to randomise
   C) It doubles the number of trials
   D) It makes the order predictable

3. Why should you record the random seed used to generate a trial order?
   A) It makes the order more random
   B) It is required by Python
   C) So that you can change the order later
   D) So the schedule can be regenerated, showing it was decided in advance

4. You will judge from video whether each fold is "neat". Which step best reduces observer bias?
   A) Watching the videos more carefully
   B) Having someone who does not know which condition each coded video belongs to score them against written criteria
   C) Scoring only the trials you remember well
   D) Scoring the new method's videos first

5. With two conditions, which order is counterbalanced against a steady drift?
   A) A A B B
   B) A B A B
   C) A B B A
   D) B B A A

#### Project: Design a bias-resistant schedule

You are planning a made-up study of two paper-glider designs, flown 12 times each indoors, measuring distance from a fixed launch line.

1. List at least four things that might drift during the session, for example your throwing technique, or the gliders getting bent.
2. Write or adapt a Python program (or use a shuffled pack of cards) to generate a blocked, randomised order of the 24 flights. Record the seed or the card order.
3. Describe how you would make the distance measurement as free from judgement as possible.
4. Say honestly what cannot be blinded in this study, and how you will report it.

You do not need to fly the gliders. If you do, fly them indoors in a clear space, away from people's faces.

**Deliverables**

- A list of at least four possible drifts during the session
- A blocked, randomised schedule of 24 flights, with its seed or card order recorded
- A judgement-free definition of the distance measurement
- A short limitations statement about blinding

### My notes

______________________________________________

______________________________________________

## Lesson 4: Pre-registration and decision rules

Writing down your hypotheses, measures, sample size, exclusion rules and analysis before you collect data, so that the data cannot quietly reshape the questions they are supposed to answer.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/preregistration-and-decision-rules/

### Check your understanding

1. A researcher checks the results after every five trials and stops as soon as the new method looks clearly better. What is this called, and why is it a problem?
   A) Blocking; it reduces bias
   B) Optional stopping; chance fluctuations make it likely to stop at a lucky moment, inflating false positives
   C) Pre-registration; it is good practice
   D) Counterbalancing; it balances drift

2. Which is an acceptable exclusion rule?
   A) Exclude any trial whose result looks unusual
   B) Exclude the worst three trials in each condition
   C) Exclude trials where the log shows a communication dropout over 1 s, as defined before data collection, and report all exclusions
   D) Exclude trials that do not support the hypothesis

3. If 10 independent measures each have a 5% chance of a fluke, roughly how likely is at least one fluke?
   A) 5%
   B) 10%
   C) 50%
   D) 40%

4. After the experiment, you notice an unexpected pattern in recovery times. How should you report it?
   A) As an exploratory observation worth testing in a future study
   B) As the main pre-registered result
   C) Not at all
   D) As proof that the method works

#### Project: Write a pre-registration

Write a one-page pre-registration for a small study you could carry out safely at home, or for the proposal you wrote at the end of the previous module. Use the eight headings from this lesson.

Make sure your decision rules include all three outcomes: what would count as support, what would count as against, and what would be inconclusive. Write at least one exclusion rule that is based on events during a trial, not on its result.

Date the document and save a copy that you will not edit. Start an empty deviations log beside it.

**Deliverables**

- A dated pre-registration covering all eight headings
- Decision rules for supported, inconclusive and against outcomes
- At least one exclusion rule and a fixed stopping rule
- An empty deviations log with columns for date, change, reason, and before or after results

### My notes

______________________________________________

______________________________________________

## Lesson 5: Pilot experiments

A small practice run of your procedure, done before the real experiment: what it can reveal, how to use what it tells you, and the line you must not cross between piloting and peeking.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/pilot-experiments/

### Check your understanding

1. In a pilot, both conditions succeed in every trial. What does this suggest?
   A) Both methods are perfect, so the study is finished
   B) A floor effect
   C) The new method is better
   D) A ceiling effect: the task is too easy to reveal any difference, so it should be made harder

2. Which pilot-based change is legitimate?
   A) Changing the material because the new method was losing
   B) Lengthening the reset time because resetting the sponge properly took longer than expected
   C) Dropping the baseline because it performed well
   D) Adding pilot trials where the new method won to the main data

3. A pilot estimates a standard deviation of 15 g. You want a standard error of at most 5 g per condition. What is the minimum number of trials?
   A) 9
   B) 3
   C) 15
   D) 25

4. Why are pilot trials normally kept out of the main analysis?
   A) Because pilot data are always wrong
   B) Because they take too long to analyse
   C) Because they were run under a procedure that was still changing, so they are not comparable with the final trials
   D) Because nobody is allowed to see them

#### Project: Pilot a paper experiment

Choose a simple, safe experiment: for example, how far a paper glider flies, or how many coins a folded-paper beam supports between two books.

1. Write a short procedure and an operational definition for the measure.
2. Run five pilot trials, timing each one including the reset.
3. Fill in the pilot checklist from this lesson.
4. Make at least one change to the procedure based on the pilot, and write down why.
5. Calculate the number of trials you would need for the main experiment from your pilot standard deviation, and a target standard error you choose.

Use only paper, coins, books and a ruler. No tools or power are needed.

**Deliverables**

- A written procedure and operational definition
- Records of five pilot trials, with timings
- A completed pilot checklist
- A revised procedure and a calculated number of main trials

### My notes

______________________________________________

______________________________________________

## Lesson 6: Designing a test protocol for a robot task

A complete worked example that brings the module together: a step-by-step, repeatable test protocol for a hypothetical gripper experiment, with every number clearly labelled as illustrative.

Read online: https://tactiverge.win/academy/research-methodology/experimental-design/test-protocol-for-a-robot/

### Check your understanding

1. Why does the example keep the force sensor mounted in the vision-only condition?
   A) To save time on setup
   B) So that the gripper's mass and cabling are identical, and the only difference between conditions is whether force readings are used
   C) Because the sensor cannot be removed
   D) So that the vision-only condition performs worse

2. Why does the trial procedure say to note any disturbance at the time, before looking at the outcome?
   A) So that the decision to exclude a trial cannot be influenced by whether its result was good or bad
   B) To make the log longer
   C) Because disturbances are rare
   D) So that the trial can be rerun immediately

3. What is the main purpose of recording firmware and software versions in the setup section?
   A) It is a legal requirement
   B) To make the protocol look professional
   C) To decide which condition is better
   D) So that the exact conditions can be recreated later and any version change is visible

4. With 20 trials per condition and a drop rate near 40%, the standard error is about 0.11. What should the protocol do about this?
   A) Hide it, as it makes the study look weak
   B) Stop early if a difference appears
   C) State plainly that only large differences are detectable, or plan more trials
   D) Ignore it, because 20 trials is always enough

5. Are any of the numbers in this lesson's protocol real results from TV-01?
   A) Yes, the drop rates come from TV-01
   B) Yes, the pilot was run on TV-01 hardware
   C) Only the timing figures are real
   D) No; every number is hypothetical, and TV-01 is a proposed project with no results

#### Project: Write a protocol for a robot task

Write a complete test protocol for a simple robot task of your choice, using the ten sections from this lesson. Good choices that need no hardware include:

- a line-following robot in a free online simulator, comparing two controller settings;
- a simulated gripper in any free robotics simulator you can access;
- a "robot" that is a person following written instructions, for example stacking blocks blindfolded with and without spoken feedback.

Label every number that you have not measured yourself as hypothetical. Generate a randomised schedule with a recorded seed. Then swap protocols with someone else and ask them to list every place where they would not know exactly what to do.

If you choose to run your protocol on real hardware, do it only with adult supervision, using low-voltage power and an emergency stop.

**Deliverables**

- A protocol covering all ten sections
- A randomised schedule with its seed recorded
- A data-log header with one example row labelled as made-up
- A list of ambiguities found by a reader, and your fixes

**Safety (adult supervision required):** Paper and simulation versions need no special precautions. If you run the protocol on a real robot, an adult must supervise. Use only low-voltage batteries or supplies, keep an emergency stop or power switch within reach and test it first, keep hands, hair and loose clothing out of the workspace while the robot is powered, wear eye protection, and start at slow speeds.

### My notes

______________________________________________

______________________________________________

---

## Answer key (for self-checking after you try)

**Lesson 1: Variables and controls**

1. B — Battery voltage differed systematically between conditions, so it could explain any difference in results.
2. C — A positive control is a case where the effect is known to be present, so it checks that the measurement can detect it.
3. A — The effect of one factor (pads) depends on the level of another (object). Factorial designs are built to detect this.
4. D — A good control differs from the test condition only in the feature being tested, here the use of the sensing.

**Lesson 2: Repeatability, trials and sample size**

1. C — Standard error is SD ÷ √n, so halving it needs √n to double, meaning four times as many trials: 40.
2. B — With n = 10, the standard error of a success rate near 70–90% is roughly 10–15 percentage points, so the difference is within the range of luck.
3. D — Treating linked measurements as independent trials is pseudo-replication, and it makes results look far more certain than they are.
4. A — The standard deviation describes the spread of individual trials; the standard error describes the uncertainty of their mean.
5. B — 10 ÷ √n ≤ 2.5 means √n ≥ 4, so n ≥ 16.

**Lesson 3: Randomisation, blinding and bias**

1. C — Order effects line up perfectly with the condition, so any drift during the day could explain the difference.
2. A — Blocking guarantees balance across the session, while randomising within each block keeps the order unpredictable.
3. D — A recorded seed and a saved schedule document that the order came from a random process before any data were collected.
4. B — Blind scoring against criteria fixed in advance prevents expectations from tilting borderline judgements.
5. C — In A B B A, each condition appears once early and once late, so a steady drift affects both equally. In strict alternation (A B A B), B always comes slightly later, so a steady drift still favours one condition.

**Lesson 4: Pre-registration and decision rules**

1. B — Fix the number of trials in advance. Repeatedly checking and stopping when results look good will eventually catch a fluke.
2. C — A good exclusion rule is fixed in advance and based on what happened during the trial, not on its outcome, and every exclusion is reported.
3. D — 1 − 0.95¹⁰ ≈ 0.40. Testing many measures makes a false finding likely unless one primary measure is chosen in advance.
4. A — Unplanned findings can be valuable, but they have not been tested in a confirmatory way, so they must be labelled as exploratory.

**Lesson 5: Pilot experiments**

1. D — When every condition hits the maximum, the experiment has no room to show a difference. Making the task harder fixes this.
2. B — Fixing the procedure is the purpose of a pilot. Changes made because of which condition was winning bias the experiment.
3. A — 15 ÷ √n ≤ 5 means √n ≥ 3, so n ≥ 9. Add a margin, because an SD from a small pilot is itself uncertain.
4. C — The main analysis should use only trials run under the frozen protocol. Report the pilot and what it changed separately.

**Lesson 6: Designing a test protocol for a robot task**

1. B — A good control differs from the test condition in only the feature being tested.
2. A — Exclusion decisions must be based on what happened during the trial, not on its outcome.
3. D — Software changes can alter robot behaviour as much as hardware changes. Without version records, the experiment cannot be reproduced.
4. C — Being honest about what a study can and cannot detect is part of the protocol. Increasing the number of trials is the alternative.
5. D — All values in this example are invented for illustration. TV-01's evaluation protocol is a planned milestone and has not been written or run.

---

This work is licensed under the Creative Commons Attribution 4.0 International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. Attribute as: Tactiverge Academy, https://tactiverge.win.
