Experimental Design
An experiment is the only kind of study that can show that one thing causes another, but only if it’s designed well. A poorly designed experiment can make a useless treatment look great, or hide a real effect. This page builds on survey and experiment design and the vocabulary from statistical studies (experimental units, factors, treatments, response), and adds the designs AP Statistics expects you to describe and justify.
Key ideas
Section titled “Key ideas”The four elements of a well-designed experiment
Section titled “The four elements of a well-designed experiment”| Element | What it means | Why it matters |
|---|---|---|
| Comparison | at least two treatment groups (one can be a control group) | without a comparison, you can’t tell whether the treatment did anything |
| Random assignment | use chance to assign treatments to experimental units | makes the groups roughly alike in every other way, so differences in the response can be blamed on the treatments |
| Replication | more than one experimental unit in each treatment group | lets a real treatment effect stand out from chance variation between units |
| Control | keep other variables that might affect the response the same for all units | removes those sources of variation, making the comparison clearer |
Control groups, placebos, and blinding
Section titled “Control groups, placebos, and blinding”A control group exists for comparison. It might get no treatment, the usual treatment, or a placebo: an inactive treatment that looks like the real one, such as a sugar pill.
People often respond to any treatment, even a fake one, because they expect to feel better. The placebo effect is the difference between the average response to a placebo and the average response to no treatment. A placebo group lets you separate the real effect of a treatment from the effect of simply being treated.
- In a single-blind (single-masked) experiment, either the subjects or the researchers who interact with them don’t know who gets which treatment.
- In a double-blind (double-masked) experiment, neither the subjects nor the researchers who interact with them or measure the response know.
Blinding stops expectations from affecting how subjects respond or how researchers measure.
Extraneous and confounding variables
Section titled “Extraneous and confounding variables”An extraneous variable affects the response but isn’t the explanatory variable being studied (for example, prior knowledge in a study-method experiment). If an extraneous variable is linked to which treatment a unit gets, it becomes confounded with the treatment: you can’t tell which one caused a difference in the response.
Random assignment is the key defence. With enough units, it spreads extraneous variables (even ones you didn’t think of) roughly evenly across the groups, so their distributions are about the same in every treatment group. Direct control handles extraneous variables you can fix in advance (same room, same time of day, same amount of water).
How to randomly assign
Section titled “How to randomly assign”Describe random assignment so that someone else could carry it out. For plants and two fertilizers:
Label the plants to . Use a random number generator to choose different labels from to (ignoring repeats). Those plants get Fertilizer A; the remaining get Fertilizer B.
Equivalent methods: write the labels on identical slips, mix them in a container, and draw ; or put the plants in a random order with technology and assign the first . The important parts are labelling, a random mechanism, and what happens to each unit.
Three designs
Section titled “Three designs”Completely randomized design. All units are assigned to treatments completely at random, as above. Group sizes don’t have to be equal, but often are.
Randomized block design. First group the units into blocks of units that are similar with respect to a variable you expect to affect the response (the blocking variable). Then randomly assign the treatments separately within each block, so every treatment appears in every block.
Blocking separates the variation caused by the blocking variable from the rest of the variation in the response, so treatments are compared among similar units. That makes the comparison more precise: a real difference is easier to detect. A common summary: block on the variables you can, and randomize to handle the ones you can’t.
Matched pairs design. A randomized block design with only two treatments and blocks of size two. Either:
- pair up units that are similar, and randomly assign one treatment to each member of the pair, or
- give each unit both treatments, in a randomly chosen order.
Matched pairs data are analyzed with the paired t-test, using the differences within each pair.
Choosing a design and stating conclusions
Section titled “Choosing a design and stating conclusions”Choose the design from the goals and the units: block when an extraneous variable is known to strongly affect the response, use matched pairs when units can be paired naturally (or can receive both treatments), and use a completely randomized design when units are fairly similar.
Random assignment allows cause-and-effect conclusions. But experiments usually use volunteers, because it’s often unethical or impractical to randomly select people to take part. Then conclusions apply only to units similar to those in the study.
On the AP exam
Section titled “On the AP exam”When asked to describe an experiment, include: how units are assigned (label, random mechanism, how many per group), what each group gets, what’s held constant, and what response is measured and compared. When asked why a design choice helps, connect it to variability in the response (“blocking by grade separates the variation in scores due to grade, so…”) or to confounding (“random assignment makes the groups similar in prior fitness…”). Always in context.
Worked examples
Section titled “Worked examples”Example 1: What’s wrong with this design?
Section titled “Example 1: What’s wrong with this design?”A gym owner wants to know whether a new protein shake helps members build strength. She gives the shake to members who ask for it and compares their strength gains over two months with members who didn’t ask.
- (a) Which elements of a well-designed experiment are missing?
- (b) Explain how a confounding variable could affect the conclusion.
Solution.
(a) There is a comparison and some replication ( per group), but no random assignment: members chose for themselves. There’s also no placebo or blinding, and no control of other variables such as training hours.
(b) Members who ask for a protein shake may be more serious about training, so they may also lift more often. Training effort is associated with both getting the shake and strength gain, so it’s confounded with the treatment: a bigger gain in the shake group could be due to training, not the shake.
Example 2: A completely randomized design
Section titled “Example 2: A completely randomized design”Describe a completely randomized design to test whether a new plant food increases the height of tomato seedlings, using seedlings. Include a control group.
Solution.
- Treatments: new plant food or plain water (the control).
- Random assignment: label the seedlings to . Use a random number generator to choose different labels; those seedlings get the plant food, and the other get plain water.
- Control: keep the pot size, soil, amount of liquid, light, and temperature the same for all seedlings.
- Response: after four weeks, measure each seedling’s height, and compare the mean heights of the two groups.
Example 3: A randomized block design
Section titled “Example 3: A randomized block design”A teacher wants to compare two study apps, A and B, using volunteer students: from Grade 9 and from Grade 12. She expects Grade 12 students to score higher on the test whichever app they use.
- (a) Describe a randomized block design.
- (b) Explain why blocking by grade is better than a completely randomized design here.
Solution.
(a) Form two blocks by grade. Within the Grade 9 block, label the students to and use a random number generator to choose different labels for App A; the other use App B. Do the same, separately, in the Grade 12 block. After the study period, all students write the same test, and the teacher compares the mean scores for App A and App B within each block.
(b) Grade is expected to affect test scores. In a completely randomized design, grade differences would add a lot of variation to the scores within each app group, which could hide a real difference between the apps (or, by chance, one app might get more Grade 12 students). Blocking compares the apps among students of the same grade, removing the variation due to grade, so the comparison is more precise.
Example 4: Matched pairs
Section titled “Example 4: Matched pairs”A company wants to compare two sunscreens, X and Y, using volunteers.
- (a) Describe a matched pairs design.
- (b) Why is this design better than giving each volunteer only one sunscreen?
Solution.
(a) For each volunteer, flip a coin: heads, sunscreen X goes on the left forearm and Y on the right; tails, the reverse. After the same time in the sun, a technician (who doesn’t know which arm got which sunscreen) measures the redness of each forearm. Compare the differences (X minus Y) in redness.
(b) People’s skin differs a lot in how easily it burns. Comparing two arms of the same person removes those differences, so a difference between the sunscreens is much easier to detect. Randomizing which arm gets which sunscreen guards against differences between left and right arms (for example, if one arm usually gets more sun while driving).
Common mistakes
Section titled “Common mistakes”Saying random assignment lets you generalize. Random assignment supports cause and effect. Random selection (sampling) lets you generalize to a population. Most experiments use volunteers, so they only generalize to similar units.
Describing random assignment vaguely. “Randomly put them in groups” isn’t enough. Say how: label the units, use a random number generator or slips of paper, and state how many go to each treatment.
Thinking blocking is just making groups. In a block design, the blocks are formed from a variable related to the response, and treatments are randomly assigned within each block. Splitting units into the treatment groups by a variable (for example, all Grade 12 students get App A) creates confounding, not blocking.
Forgetting what a placebo is for. A placebo isn’t “no treatment”. It’s a fake treatment that lets you measure the effect of being treated, so the real treatment has to beat it.
Confusing double-blind with “the groups don’t know about each other”. Double-blind means neither the subjects nor the people who interact with them or measure the response know who got which treatment.
Explaining blocking with “it makes it fair”. Say what blocking does: it removes the variation in the response caused by the blocking variable, so treatment differences are easier to detect.
Practice
Section titled “Practice”1. (Warm-up) Name the four elements of a well-designed experiment, and give one sentence on the purpose of each.
Solution
Comparison: having at least two groups lets you see whether the treatment makes a difference. Random assignment: makes the groups similar apart from the treatments, so differences can be attributed to them. Replication: using several units per treatment lets real effects stand out from chance variation. Control: keeping other variables the same reduces variation and possible confounding.
2. (Warm-up) In a study of a new allergy medicine, patients get either the medicine or an identical-looking pill with no active ingredient, and neither the patients nor the nurses who assess their symptoms know which. What is the inactive pill called, and what type of blinding is this?
Solution
The inactive pill is a placebo. Since neither the patients nor the nurses who assess them know who got which, it’s double-blind.
3. (Warm-up) A researcher has volunteers and three treatments. Describe how to randomly assign them to treatments, with , , and in the groups.
Solution
Label the volunteers to . Use a random number generator to choose different labels; those volunteers get Treatment 1. From the remaining , choose different labels for Treatment 2. The last get Treatment 3. (Or draw well-mixed slips labelled to in order.)
4. (Core) A school wants to know whether a -minute morning stretching routine reduces the number of times students visit the nurse. It has volunteer students. Describe a completely randomized design.
Solution
Label the students to . Use a random number generator to choose different labels; those students do the stretching routine each morning for a term, and the other continue as usual (control). Keep other conditions the same where possible (same school schedule, same nurse policy). At the end of the term, compare the mean number of nurse visits for the two groups.
5. (Core) In the study in Question 4, half of the volunteers are on sports teams. The school thinks team athletes visit the nurse more often, whatever routine they follow.
- (a) Describe a randomized block design.
- (b) Explain why blocking is helpful here.
Solution
(a) Form two blocks: the athletes and the non-athletes. Within each block, label the students and randomly choose for the stretching routine; the other are the control. Compare nurse visits for stretching versus control within each block.
(b) Being an athlete affects the number of nurse visits. Blocking removes that source of variation from the comparison of the treatments, so a real effect of stretching is easier to detect.
6. (Core) A study of a new reading program puts all students from School A in the program and all students from School B in the usual program, then compares test scores. Explain why this design can’t show that the program works. Name a confounding variable.
Solution
The treatment is completely tied to the school, so any difference in scores could be due to the school instead of the program. For example, the teachers at the two schools (or the students’ family backgrounds, or class sizes) could differ. Teacher quality is associated with both the treatment (which school) and the response (test scores), so it’s confounded with the program. Students should be randomly assigned to programs (perhaps within each school, as blocks).
7. (Core) Researchers want to compare two keyboard designs using typists. Describe two different matched pairs designs.
Solution
Design 1 (each typist uses both): each typist types the same kind of passage on both keyboards. For each typist, flip a coin to decide which keyboard comes first. Compare each typist’s two speeds (the difference).
Design 2 (matched pairs of typists): measure every typist’s current speed, and pair the two fastest, the next two, and so on, to make pairs. Within each pair, flip a coin to decide who uses which keyboard. Compare speeds within each pair.
Randomizing the order in Design 1 balances out any effect of practice or fatigue.
8. (Challenge) A drug trial gives patients either a new pain medicine or a placebo. The average pain reduction is points with the medicine, points with the placebo, and points in a third group that received no pills at all.
- (a) Estimate the placebo effect.
- (b) Estimate the effect of the medicine beyond the placebo effect.
- (c) Why would comparing the medicine with “no pills” overstate how well the medicine works?
Solution
(a) Placebo effect points.
(b) Medicine beyond placebo points.
(c) Comparing with no pills gives points, which includes the -point placebo effect: patients feel better partly because they’re taking something. The fair comparison is with a placebo.
9. (Challenge) A farmer’s field has a slope: the top is drier than the bottom. She wants to compare three wheat varieties on plots, along each of three rows (top, middle, bottom).
- (a) Explain why a completely randomized design might give a misleading comparison.
- (b) Describe a randomized block design, and say what the blocks are.
Solution
(a) Moisture affects yield. By chance, one variety might get mostly top (dry) plots and another mostly bottom (wet) plots, so a difference in yield could be due to moisture rather than variety. Even if not, moisture differences add variation that makes the comparison less precise.
(b) Use each row (top, middle, bottom) as a block, since plots in a row have similar moisture. Within each row, randomly assign the three varieties to the three plots, one each (for example, number the plots to and use a random ordering of the varieties). Each variety then grows once in every row, and the varieties are compared within each row, so moisture differences between rows don’t affect the comparison.
Homework
Section titled “Homework”Try these independently after the practice questions. Describe designs clearly enough for someone else to carry them out, and explain in context. Homework solutions are not provided on the published site.
All studies in these questions are hypothetical.
Foundations
Section titled “Foundations”H1. (Foundations) In an experiment, volunteers with mild insomnia are randomly assigned to one of three treatments: a herbal tea, a placebo tea that tastes the same, or no tea. Their hours of sleep are recorded for two weeks.
- (a) Identify the experimental units, the treatments, and the response variable.
- (b) Is this experiment blind? What would make it double-blind?
H2. (Foundations) Describe how to use a random number generator to assign hens to two diets, per diet.
H3. (Core) A coffee shop wants to know whether background music increases the amount customers spend. Describe a completely randomized design using weekday mornings as the experimental units.
H4. (Core) A researcher tests whether a new paint lasts longer than the old paint, using wooden fence posts in different parts of a city. Some posts get much more sun than others.
- (a) Describe a matched pairs design.
- (b) Explain how your design deals with differences in sun exposure.
H5. (Core) An experiment compares two math programs with volunteer students. Explain why the following statements are wrong.
- (a) “Since the students were randomly assigned, the results apply to all students in Canada.”
- (b) “We put the students with the highest marks in Program A and the rest in Program B to make sure the groups were fair.”
H6. (Core) A study compares three fertilizers on potted plants. The plants come from three different suppliers ( each), and plants from different suppliers may grow differently.
- (a) Describe a randomized block design.
- (b) Explain why blocking by supplier is better than ignoring the supplier.
Challenge
Section titled “Challenge”H7. (Challenge) A drug trial uses volunteers with high blood pressure: women and men. Women and men may respond differently to the drug.
- (a) Describe a randomized block design comparing the drug with a placebo, including blinding.
- (b) Explain what the blocking does and does not allow the researchers to conclude.
H8. (Challenge) A student says: “Random assignment means the treatment groups will be exactly the same in every way except the treatment.” Explain what’s wrong with this statement, and why replication matters to random assignment.
H9. (Challenge) A researcher is testing whether listening to classical music improves memory. Volunteers memorize a list of words twice, once with music and once without.
- (a) Explain why the order should be randomized for each volunteer.
- (b) Explain why the two lists should be different but equally difficult.
- (c) What type of design is this?
H10. (Challenge) In an experiment with two factors, a researcher tests three exercise programs and two diets on volunteers.
- (a) How many treatments are there? List them.
- (b) Describe a completely randomized design with equal group sizes.
- (c) The researcher thinks age strongly affects the response. Describe how she could block by age group (under , and over) in this design.