An experiment imposes treatments on experimental units and measures their response, so a well-designed one can show cause and effect. Good design compares treatments, assigns them at random, uses enough units and holds other variables fixed; blocking and matched pairs group similar units before randomizing.
Quick check
Why can an experiment show cause and effect when an observational study cannot?Show answerHide answer
Random assignment tends to balance other variables across the groups, so a large difference in the response can be put down to the treatments. The note on Observational Studies, Experiments and Scope of Inference covers this.
An experiment tests 3 amounts of fertilizer, each with 2 watering schedules. How many treatments are there?Show answerHide answer
, because every amount is combined with every schedule.
Know these already? Jump to the practice questions
What you'll be able to do
- Identify the units, factors, levels, treatments and response variable.
- Explain the roles of a control group, a placebo and blinding.
- Describe a random assignment someone else could carry out.
- Choose a completely randomized, block or matched pairs design, and explain how blocking helps.
Key terms
Experimental units
The individuals that receive the treatments; people are called subjects.
- In plain English
- What the experiment is done to.
- Don't write
- "a random sample"; units are often volunteers.
Factor, level and treatment
A factor is a variable the experimenter sets; a level is one value of it; a treatment is one level, or one combination of levels.
- In plain English
- What you change, its settings, and each group's recipe.
- Don't write
- "two factors with 3 levels each give 6 treatments"; multiply to get 9.
Random assignment
Using chance to decide which units receive which treatment.
- In plain English
- Chance, not people, picks the groups.
- Don't write
- "random sampling"; that picks who is studied.
Block
A group of units alike in a way that affects the response, formed before treatments are assigned.
- In plain English
- Sort similar units together, then randomize inside each group.
- Don't write
- "blocks are formed at random".
What are the parts of an experiment?
In a hypothetical study, each of 36 tomato plants gets one of three fertilizer amounts (none, 10 g, 20 g) and one of two watering schedules (daily, every other day). The response is the weight of tomatoes, in grams.
| Part | In this study |
|---|---|
| Experimental units | the 36 plants |
| Factors and levels | fertilizer (3 amounts); watering (2 schedules) |
| Treatments | combinations, such as "10 g, daily" |
Multiply the numbers of levels to count treatments; a balanced design gives each one plants. The no-fertilizer plants form a control group: a baseline to compare against.
Check yourself
Show answerHide answer
There are treatments, so loaves.
What makes an experiment well designed?
- Comparison: at least two groups, so responses can be compared.
- Random assignment: chance tends to balance variables you did not measure, so the groups start alike and a large later difference can be blamed on the treatments.
- Control: hold other variables (soil, pots, light) fixed for every group, so they cannot be confounded with the treatments and add less variability.
- Replication: use enough units per treatment that chance differences between groups even out.
Examiner's eye
Marks are lost when "control" is vague: name the variables held constant and say this reduces variability or prevents confounding.
Check yourself
Show answerHide answer
Random assignment. The classes were not formed by chance, so differences such as prior achievement are confounded with the app.
Why use placebos and blinding?
People who believe they are being treated often improve anyway: the placebo effect. A placebo is a dummy treatment that looks like the real one, so both groups share the same expectations and the effect cancels out.
Subjects who know their treatment may report symptoms differently, and researchers who know it may judge responses differently. In a double-blind experiment neither the subjects nor the people measuring the response know who got which treatment. If subjects cannot be blinded (yoga versus running), blind whoever measures the response.
Check yourself
Show answerHide answer
The nurse may record pain differently for the two groups without meaning to. Coded tubes labeled by a third party would make the trial double-blind.
How do you describe a random assignment?
A stranger should be able to follow it exactly:
- Label each unit with a different number.
- Generate random numbers with a named tool: a random number generator, a random digit table, or identical slips in a container.
- Ignore repeats and numbers that are not labels.
- Stop when the first group is full, and say what the rest receive.
For 40 subjects: label them 1 to 40 and generate random integers from 1 to 40, ignoring repeats, until 20 different labels appear. Those 20 get Treatment A; the rest get Treatment B. With a random digit table, use two-digit labels (01 to 40) and read the digits in pairs.
Check yourself
Show answerHide answer
It gives no labels, no random tool, no rule for repeats and no treatment for each group, so nobody could reproduce it.
When does blocking help?
In a completely randomized design, a variable that strongly affects the response adds variability within every group and can hide a treatment effect. A randomized block design splits the units into blocks of similar units (say, beginners and experienced athletes) and randomly assigns the treatments separately within each block.
Units in a block are alike, so the blocking variable's variability is removed from the comparison and a treatment effect is easier to detect. Blocking never replaces randomizing.
A matched pairs design uses blocks of size 2: pair up similar units and randomly decide which member gets which treatment, or give each subject both treatments in a random order.
Check yourself
Show answerHide answer
Matched pairs. Each volunteer is compared with themselves, so skin type and sun exposure are the same for both sunscreens.
Worked example 1: Using random digits
Question: A hypothetical gardener will give a new fertilizer to 15 of her 30 plants, labeled 01 to 30. She reads this line of random digits two at a time: 29141 77763 17066 90743. Which are the first four plants chosen?
What tells you the method
A line of random digits.
Step 1: Split the line into pairs.
The pairs are 29, 14, 17, 77, 63, 17, 06, …
WhyEach label has two digits.
Step 2: Keep or skip each pair.
Keep 29, 14 and 17. Skip 77 and 63 (no such plant) and the second 17 (already chosen). Keep 06.
WhyOnly labels 01 to 30 exist, and no plant can be chosen twice.
Check it
Four different labels, all from 01 to 30.
Answer
Plants , , and (labels 29, 14, 17 and 06).
Worked example 2: A randomized block design
Question: A hypothetical school compares vocabulary apps A and B on 20 ninth-graders and 28 tenth-graders. Tenth-graders usually score higher. (a) Why block by grade? (b) How many ninth-graders and tenth-graders use App A?
What tells you the method
A named variable, grade, affects the response.
Step 1: Justify the blocks.
Comparing the apps within each grade removes grade-to-grade variability, so a difference between the apps is easier to detect.
WhyBlocking removes variability from a known source.
Step 2: Randomize within each block.
Label the ninth-graders 1 to 20; generate random integers from 1 to 20, ignoring repeats, until 10 different labels appear. Those 10 use App A, the rest App B. Repeat for the tenth-graders (1 to 28), stopping at 14.
WhyEach block is split evenly between the apps by chance.
Check it
and , so every student is used.
Answer
(a) Grade affects scores, so blocking removes that variability from the comparison. (b) ninth-graders and tenth-graders use App A.
Your turn
Question: A hypothetical coach has 12 runners each run a timed mile in shoe X and in shoe Y, on different days. For runners 1 to 12 in order, he reads one random digit each from 453331478932: odd means shoe X first, even means shoe Y first. (a) Which design is this? (b) How many runners wear shoe X first?
Step 1:
Each runner gets both treatments in a random order, so this is a matched pairs design.
Step 2: Your go: count the odd digits.
Show the full solutionHide the solution
The digits are 4, 5, 3, 3, 3, 1, 4, 7, 8, 9, 3, 2. The odd ones belong to runners 2, 3, 4, 5, 6, 8, 10 and 11; runners 1, 7, 9 and 12 wear shoe Y first.
Answer: (a) It is a matched pairs design. (b) runners wear shoe X first.
Traps
Trap
Thinking that random assignment lets you generalize the results to a whole population.
It seems right because both use chance. But random assignment only balances the groups, which supports cause and effect for the units studied; generalizing needs a random sample.
Check yourself
Show answerHide answer
No. Random assignment supports cause and effect for these volunteers, but they are not a random sample of all adults.
Trap
Thinking that blocking replaces random assignment.
It seems right because the blocks are chosen on purpose. But blocking only groups similar units; within every block the treatments must still be assigned by chance, or other variables could be confounded with them.
Check yourself
Show answerHide answer
Nothing is randomized within the blocks, so plot health is confounded with the seed. The seeds should be assigned by chance within each soil type.
What's examined
Experimental design is tested on the AP® Statistics exam (Collecting data), in multiple-choice and free-response questions: identify the parts of an experiment, explain random assignment, blinding or blocking in context, and describe a random assignment someone else could follow exactly.
Practice questions
- Recall What is the main purpose of random assignment in an experiment?
- A) To generalize to a larger population
- B) To keep subjects unaware of their treatment
- C) To create groups that are roughly alike before treatment
- D) To make the groups exactly equal in size
Show answer
Answer: C) To create groups that are roughly alike before treatment
Marking points:
- Chance tends to balance other variables, so differences in the response can be put down to the treatments.
- A describes random sampling, B describes blinding, and D comes from the design, not from chance.
- Apply Researchers compare two reading programs on 30 pairs of identical twins. In each pair, a coin flip decides which twin gets Program 1; the other gets Program 2. Which design is this?
- A) Completely randomized
- B) Randomized block with two blocks
- C) Observational study
- D) Matched pairs
Show answer
Answer: D) Matched pairs
Marking points:
- Each pair of twins is a block of size 2, randomized within the pair.
- A ignores the pairing. B confuses 2 programs with 2 blocks; there are 30 blocks. C is wrong because treatments are imposed.
- Exam-style Ten of 25 volunteers, labeled 01 to 25, will be randomly assigned to a hypothetical sleep routine. Reading the random digits 24014 72470 04791 10007 two at a time, which five volunteers are chosen first?
Show answer
Answer: Volunteers , , , and (labels 24, 01, 04, 11 and 07).
Marking points:
- The pairs are 24, 01, 47, 24, 70, 04, 79, 11, 00, 07.
- Skip 47, 70, 79 and 00 (not labels) and the second 24 (repeat).
- Recall Which statement describes a double-blind experiment?
- A) Neither the subjects nor the people measuring the response know who got which treatment.
- B) Only the people measuring the response know who got which treatment.
- C) Two different placebos are used.
- D) The researchers see no results until the end.
Show answer
Answer: A) Neither the subjects nor the people measuring the response know who got which treatment.
Marking points:
- Double-blind hides the assignments from both groups of people.
- B is single-blind. C and D have nothing to do with blinding.
- Exam-style A hypothetical trial compares 3 wheat varieties on 60 plots: 24 with sandy soil and 36 with clay soil, and soil type affects yield. (a) Which design should be used? (b) If the plots of each soil type are shared equally among the varieties, how many sandy and how many clay plots does each variety get?
Show answer
Answer: (a) A randomized block design, blocking by soil type. (b) Each variety gets sandy plots and clay plots.
Marking points:
- Soil affects yield, so blocking by soil removes that variability from the comparison.
- Randomize within each soil type: and .
- Apply A hypothetical weight-loss study blocks subjects by sex before randomly assigning the program or no program. Why block by sex?
- A) So the results apply to all adults
- B) Weight loss may differ by sex, and blocking removes that variability
- C) Random assignment cannot be used with people
- D) So no control group is needed
Show answer
Answer: B) Weight loss may differ by sex, and blocking removes that variability
Marking points:
- Blocks group subjects who are alike on a variable that affects the response.
- A needs random sampling. C is false, because treatments are still randomized within blocks. D is false, because comparison is still needed.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- Count treatments by multiplying the numbers of levels of the factors.
- Comparison, random assignment, control and replication let an experiment show cause and effect.
- A placebo equalizes expectations; double-blind hides the assignments from subjects and evaluators.
- A usable random assignment names the labels, the random tool, the rule for repeats and each group's treatment.
- Block on a variable that affects the response and randomize inside each block; matched pairs uses blocks of two.