Skip to content
Family Table Math
Auto

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.

The four elements of a well-designed experiment

Section titled “The four elements of a well-designed experiment”
ElementWhat it meansWhy it matters
Comparisonat least two treatment groups (one can be a control group)without a comparison, you can’t tell whether the treatment did anything
Random assignmentuse chance to assign treatments to experimental unitsmakes the groups roughly alike in every other way, so differences in the response can be blamed on the treatments
Replicationmore than one experimental unit in each treatment grouplets a real treatment effect stand out from chance variation between units
Controlkeep other variables that might affect the response the same for all unitsremoves those sources of variation, making the comparison clearer

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.

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).

Describe random assignment so that someone else could carry it out. For 4040 plants and two fertilizers:

Label the plants 11 to 4040. Use a random number generator to choose 2020 different labels from 11 to 4040 (ignoring repeats). Those 2020 plants get Fertilizer A; the remaining 2020 get Fertilizer B.

Equivalent methods: write the 4040 labels on identical slips, mix them in a container, and draw 2020; or put the 4040 plants in a random order with technology and assign the first 2020. The important parts are labelling, a random mechanism, and what happens to each unit.

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.

A randomized block design. 80 volunteers are split into two blocks by grade, 40 Grade 9 and 40 Grade 12 students. Within each block, students are randomly assigned to App A or App B, 20 each, and test marks are compared within each block. 80 volunteers Grade 9 block 40 students random assignment App A 20 students App B 20 students Compare test marks Grade 12 block 40 students random assignment App A 20 students App B 20 students Compare test marks
Example 3’s design: block by grade, then randomly assign the two apps within each 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.

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.

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.

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 2020 members who ask for it and compares their strength gains over two months with 2020 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 (2020 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.

Describe a completely randomized design to test whether a new plant food increases the height of tomato seedlings, using 4040 seedlings. Include a control group.

Solution.

  • Treatments: new plant food or plain water (the control).
  • Random assignment: label the seedlings 11 to 4040. Use a random number generator to choose 2020 different labels; those seedlings get the plant food, and the other 2020 get plain water.
  • Control: keep the pot size, soil, amount of liquid, light, and temperature the same for all 4040 seedlings.
  • Response: after four weeks, measure each seedling’s height, and compare the mean heights of the two groups.

A teacher wants to compare two study apps, A and B, using 8080 volunteer students: 4040 from Grade 9 and 4040 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 11 to 4040 and use a random number generator to choose 2020 different labels for App A; the other 2020 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.

A company wants to compare two sunscreens, X and Y, using 3030 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).

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.

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 5050 volunteers and three treatments. Describe how to randomly assign them to treatments, with 1717, 1717, and 1616 in the groups.

Solution

Label the volunteers 11 to 5050. Use a random number generator to choose 1717 different labels; those volunteers get Treatment 1. From the remaining 3333, choose 1717 different labels for Treatment 2. The last 1616 get Treatment 3. (Or draw 5050 well-mixed slips labelled 11 to 5050 in order.)

4. (Core) A school wants to know whether a 1010-minute morning stretching routine reduces the number of times students visit the nurse. It has 120120 volunteer students. Describe a completely randomized design.

Solution

Label the 120120 students 11 to 120120. Use a random number generator to choose 6060 different labels; those students do the stretching routine each morning for a term, and the other 6060 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 6060 athletes and the 6060 non-athletes. Within each block, label the students and randomly choose 3030 for the stretching routine; the other 3030 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 2424 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 1212 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 3.13.1 points with the medicine, 1.81.8 points with the placebo, and 0.40.4 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 ≈1.8−0.4=1.4\approx 1.8 - 0.4 = 1.4 points.

(b) Medicine beyond placebo ≈3.1−1.8=1.3\approx 3.1 - 1.8 = 1.3 points.

(c) Comparing with no pills gives 3.1−0.4=2.73.1 - 0.4 = 2.7 points, which includes the 1.41.4-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 99 plots, 33 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 11 to 33 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.

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.

H1. (Foundations) In an experiment, 9090 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 3636 hens to two diets, 1818 per diet.

H3. (Core) A coffee shop wants to know whether background music increases the amount customers spend. Describe a completely randomized design using 4040 weekday mornings as the experimental units.

H4. (Core) A researcher tests whether a new paint lasts longer than the old paint, using 2020 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 200200 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 100100 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 4545 potted plants. The plants come from three different suppliers (1515 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.

H7. (Challenge) A drug trial uses 400400 volunteers with high blood pressure: 250250 women and 150150 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 120120 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 4040, 4040 and over) in this design.