---
title: "Compare, then randomize. | FiveStudy"
description: "A sports-medicine lab believes a new shoe insole reduces knee pain. Eighty runners volunteer. Hand the new insole to all eighty, wait eight weeks, and the study proves nothing. Pain also falls for peo"
url: https://fivestudy.com/guides/apstats-1-13-experimental-design
---

[AP Statistics](https://fivestudy.com/ap-statistics) · Study guide

# Compare, then randomize.

[Figure: FiveStudy]

FiveStudy

AP® Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data

AP® Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data

# *Experimental* Design

The four parts of a well-designed experiment, control groups, placebos and blinding, why random assignment matters, and three designs: completely randomized, randomized block, and matched pairs. Plus what an experiment lets you conclude.

1. Four elements 2. Control, placebo, blinding 3. Why randomize 4. Three designs 5. Conclusions 6. Quick reference

The idea in one paragraph

An experiment is built so that the only systematic difference between groups is the treatment. Comparison gives you something to measure against, random assignment makes the groups alike in everything else, replication lets chance differences even out, and direct control removes avoidable differences. When all of that is in place, a clear difference in the response can be blamed on the treatment.

## 1 The four elements of a good experiment

A well-designed experiment includes:

| Element | What it means | Why it matters |
| --- | --- | --- |
| Comparison | At least two treatment groups, one of which could be a control group | Without a comparison, there is no way to tell whether the treatment did anything |
| Random assignment | Chance decides which experimental unit gets which treatment | Makes the groups as similar as possible in everything except the treatment |
| Replication | More than one experimental unit gets each treatment | Lets chance differences between units even out |
| Direct control | Keeping other conditions that could affect the response the same for every unit | Removes avoidable sources of variation |

**Figure 1.** Chance alone decides who naps and who reads. Both groups are treated the same in every other way, so a difference in reaction times can be traced to the nap.

Worked Example 1 Spot the four elements

### The nap experiment

Forty student volunteers are randomly assigned, 20 each, to take a 20-minute nap or read a book for 20 minutes in the same quiet room at 2 p.m. Then each takes the same computer reaction-time test. Identify comparison, random assignment, replication, and direct control.

1. 1 **Comparison:** two treatment groups, nap and reading. The reading group is the control group.
2. 2 **Random assignment:** chance decides which 20 students nap.
3. 3 **Replication:** 20 students receive each treatment, not just one.
4. 4 **Direct control:** same room, same time of day, same length of time, same reaction-time test for everyone.

**Answer:** All four elements are present, so a clear difference in reaction times can be attributed to napping.

Common Mistake 1 · Thinking replication means repeating the whole study

Repeating a study is good science, but in an experiment **replication** means assigning each treatment to more than one experimental unit. One student who naps and one who reads cannot show anything, because the two students might just be different.

## 2 Control groups, placebos, and blinding

A **control group** is a group of experimental units created for comparison. It might get no treatment, the usual treatment, or a **placebo**: an inactive treatment, like a sugar pill, that looks like the real one.

Placebos matter because people often respond to simply being treated. The **placebo effect** is the difference between the average response to a placebo and the average response to no treatment.

**Figure 2.** An illustration with made-up numbers. The placebo effect is the difference between the average response to a placebo and the average response to no treatment. To see what a treatment really adds, compare it with the placebo group, not with no treatment.

**Blinding** keeps people from knowing which treatment each subject receives. (People who take part in an experiment are called **subjects**, also called participants.)

- In a **single-blind** experiment, either the subjects do not know which treatment they get, or the researchers who interact with them do not know, but not both.
- In a **double-blind** experiment, neither the subjects nor the researchers who interact with them know which treatment each subject receives.

Single-blind and double-blind are also called single-masked and double-masked. Blinding the subjects keeps expectations from changing their response; blinding the researchers keeps expectations from changing how they treat subjects or record results.

Worked Example 2 Who should be blinded?

### Nap or reading

Can the nap experiment be double-blind? What blinding is possible?

1. 1Students obviously know whether they napped, so the subjects cannot be blinded.
2. 2The person who runs the reaction-time test can be kept from knowing which group each student was in.
3. 3That makes the experiment single-blind: one side does not know the treatment.

**Answer:** Not double-blind, because subjects know if they napped. Keeping the tester unaware of the treatment makes it single-blind and stops the tester’s expectations from affecting the measurements.

Common Mistake 2 · Assuming a control group gets nothing

A control group just has to be a fair comparison. When a treatment already exists, the control group often gets the current standard treatment, and in drug studies it usually gets a placebo. Giving the control group nothing at all can let the placebo effect masquerade as a treatment effect.

## 3 Why random assignment works

An **extraneous variable** (an extraneous source of variation) is a variable known or believed to affect the response, but which is not the explanatory variable being studied. In the nap experiment, how well each student slept the night before is extraneous: it affects reaction time whether or not the student naps.

You cannot control everything. The purpose of random assignment is to make the treatment groups as similar as possible with respect to all the extraneous variables, measured or not. When random assignment works, each extraneous variable has roughly the same distribution in every group.

**Figure 3.** Nobody chose who slept badly, and nobody can fix it. Random assignment spreads those students roughly evenly, so poor sleep cannot explain a difference between the groups. With more units, the balance tends to get closer.

A **confounding variable** in an experiment is related to the explanatory variable in a way that makes it hard to tell which one is changing the response. If students chose for themselves whether to nap, the tired students might pick the nap, and tiredness would be mixed up with napping. Random assignment breaks that link, which is why a well-designed experiment reduces the chance of confounding.

Worked Example 3 Carry out random assignment

### Forty volunteers, two groups

Describe how to randomly assign the 40 volunteers so that exactly 20 nap and 20 read.

1. 1Write each student’s name on an identical slip of paper, put the slips in a container, and mix well.
2. 2Draw 20 slips without replacement. Those students take the nap.
3. 3The remaining 20 students read.
4. 4Another way: number the students 1 to 40 and use a random number generator to pick 20 different numbers for the nap group, skipping repeats.

**Answer:** Draw 20 of 40 well-mixed name slips, or 20 different random numbers from 1 to 40, for the nap group; everyone else reads.

Common Mistake 3 · Mixing up random assignment and random selection

Random *selection* decides who is in the study, and it lets you generalize to a population. Random *assignment* decides who gets which treatment, and it lets you conclude cause and effect. An experiment on volunteers has random assignment but no random selection.

## 4 Three experimental designs

In a **completely randomized design**, treatments are assigned to the experimental units completely at random, as in Figure 1. The groups are often the same size, but they do not have to be.

Sometimes an extraneous variable is so strong that it would swamp the treatment effect. Then it can be used as a **blocking variable**. In a **randomized block design**, the units are first grouped by similar values of the blocking variable. These groups are **blocks**, and units within a block are alike with respect to that variable. Then treatments are randomly assigned within each block, so every treatment appears in every block.

**Figure 4.** Typing experience affects typing speed no matter which app is used, so it is used as the blocking variable. Treatments are randomly assigned *within* each block, and every treatment appears in every block.

The purpose of blocking is to separate the variation in the response caused by the blocking variable from the rest of the variation. Within a block, treatments can be compared without that variable getting in the way, which makes the comparison more precise.

Worked Example 4 Why block?

### Two typing apps

A school compares two typing apps on 60 student volunteers: 24 already type well and 36 are beginners. Why use a randomized block design with typing experience as the blocking variable, instead of a completely randomized design?

1. 1Experience affects typing speed gains regardless of the app: beginners usually improve more, simply because they start lower.
2. 2With complete randomization, one app could get more beginners by chance, which would make that app look better.
3. 3Blocking puts experienced typists in one block and beginners in another, and randomly assigns the apps within each block.
4. 4Comparing the apps within each block removes the variation caused by experience, so the comparison is more precise.

**Answer:** Blocking by experience separates the variation caused by experience from the rest, so the apps are compared among similar typists. That makes the comparison of the apps more precise.

A **matched pairs design** is a randomized block design with only two treatments. Units are arranged in pairs matched on one or more extraneous variables, and within each pair one unit is randomly assigned each treatment. Or each unit gets both treatments, with the order randomly decided.

**Figure 5.** A matched pairs design is a block design with two treatments and blocks of size two. Either two similar units are paired and split at random, or one unit receives both treatments in a random order.

Worked Example 5 Design a matched pairs experiment

### Two sunscreens

A company wants to compare two sunscreens, X and Y, on 30 volunteers. Describe a matched pairs design.

1. 1Each volunteer serves as their own pair: they receive both sunscreens, one on each forearm.
2. 2For each volunteer, flip a coin to decide which arm gets sunscreen X; the other arm gets Y.
3. 3After the same time in the sun, measure the redness of each arm.
4. 4Compare X and Y within each person, using the 30 differences in redness.

**Answer:** Each volunteer gets X on one arm and Y on the other, with a coin flip deciding which arm gets X. Skin type, which varies a lot between people, is the same for both treatments.

Common Mistake 4 · Blocking without randomizing inside the blocks

Forming blocks is only half the design. If the teacher then *chooses* which typists in a block use app A, the design is no longer randomized. Treatments must be randomly assigned within every block.

| Design | When it fits |
| --- | --- |
| Completely randomized | Units are fairly similar, or no single extraneous variable stands out |
| Randomized block | One known extraneous variable strongly affects the response, and units can be grouped by it |
| Matched pairs | Two treatments, and units can be paired closely, or each unit can receive both treatments |

## 5 What an experiment lets you conclude

Random assignment of treatments allows a **cause-and-effect conclusion** about the explanatory and response variables, because it reduces the potential for confounding variables.

Who the conclusion applies to is a separate question. It is often unethical or impractical to randomly select people for an experiment, so most experiments use volunteers. Then the results apply to units similar to those in the study.

Worked Example 6 What can we conclude?

### The nap experiment, again

The nap group’s mean reaction time was clearly faster. What conclusion is justified, and for whom?

1. 1Treatments were randomly assigned, so the groups should be alike in other ways. That supports a cause-and-effect conclusion.
2. 2The students were volunteers, not a random sample of all students, so the result applies to students like these volunteers.

**Answer:** A 20-minute nap caused faster afternoon reaction times for students like these 40 volunteers. It should not be generalized to all students without a random sample.

Say it like this

“Because the treatments were randomly assigned, the faster reaction times can be attributed to the nap. Because the students were volunteers rather than a random sample, the conclusion applies only to students similar to these 40.”

## 6 Quick reference

| Term | Meaning |
| --- | --- |
| Control group | A group created for comparison; may get no treatment, a standard treatment, or a placebo |
| Placebo effect | Average response to a placebo minus average response to no treatment |
| Single-blind / double-blind | One side / neither side (subjects and researchers who interact with them) knows the treatment |
| Extraneous variable | Affects the response but is not the explanatory variable being studied |
| Replication | More than one experimental unit per treatment |
| Direct control | Holding extraneous variables the same for all units |
| Block | A group of units alike on a blocking variable; treatments randomized within it |
| Matched pairs | Block design with two treatments and blocks of two (or one unit gets both, in random order) |

FiveStudy AP® Statistics · Experimental design
