Comparing Treatments
With Randomized Experiments
Use data from a randomized experiment to compare two treatments, and run simulations to decide whether the difference is real or just chance.
What Is a Randomized Experiment?
In a randomized experiment, researchers actively apply treatments to subjects and use random assignment to decide who gets which treatment.
Three Key Terms
The Experimental Design
Why It Matters
When Group A scores higher than Group B, we face a critical question: is the gap caused by the treatment, or could random chance alone produce a difference this large?
The Core Idea: No Difference?
We start by assuming the treatments have no real effect. This is the null hypothesis:
The Simulation Test
If treatment doesn't matter, then which group a subject landed in was arbitrary. So we re-shuffle the data many times and rebuild the difference each time.
Reading the Chance Distribution
Experiment vs. Observational Study
| Randomized Experiment | Observational Study | |
|---|---|---|
| Assignment | Researcher uses chance | Subjects self-select |
| Treatment | Actively imposed | Only observed |
| Conclusion | Cause & effect | Association only |
| Confounding | Balanced by random | Hard to rule out |
How to Run the Test
Example 1: Two Fertilizers
20 plants are randomly split. Fertilizer A plants average 32 cm; Fertilizer B plants average 28 cm. Observed difference:
Example 1: Simulation Result
We re-shuffled the 20 plant heights 1000 times. Only 15 of 1000 shuffles produced a difference of 4 cm or more.
Example 2: A Smaller Gap
A study compares two study methods. Method A recall: 74%; Method B recall: 70%. Observed difference is 4 percentage points.
Same Gap, Different Verdict
Both examples showed a "4-unit" difference, yet one was significant and one was not. Significance depends on how rare the gap is in the chance distribution, not just its size.
Common Mistakes
Summary: Decision Rule
| Significant | Not Significant | |
|---|---|---|
| P-value | small (e.g. \( < 0.05 \)) | large (e.g. \( > 0.05 \)) |
| Observed gap | Rare in chance dist. | Common in chance dist. |
| Conclusion | Treatment had effect | Difference = chance |
| Position in tail | Far out | Near center |
Question 1 of 5
What feature of a randomized experiment lets us make cause-and-effect conclusions?
Question 2 of 5
A simulation produces a p-value of \( 0.02 \) for an observed difference. What is the best conclusion?
Question 3 of 5
In a simulation test, why do we re-shuffle the combined data into new groups?
Question 4 of 5
Out of 1000 shuffles, 300 produced a difference at least as large as observed. The estimated p-value is:
Question 5 of 5
Two studies each show a 5-point difference, but one is significant and one is not. What best explains this?