If we simply survey students who already take FocusPill on their own and compare their memory scores to those of students who do not, outside differences between the two groups get mixed in with the effect of the pill.
Confounding and Observational Studies vs. Experiments
In an observational study, people choose their own groups, so a confounding variable like motivation affects both who buys the pill and how well they score:
confounding variableStudy Habits / Motivation⟹{More likely to take FocusPillHigher Memory Score anyway
To separate the effect of the pill from the effect of motivation, we have to step in and actively assign who gets the pill, turning the study into an experiment.
2
Control Groups, Placebos, and Blinding
Stepping in to assign the treatment is only the first step. If we give FocusPill to 100 human volunteers (called subjects, while non-human participants like plants, mice, or batteries are called experimental units) and their average score rises by 15% over the week, we still cannot tell whether the chemical inside the pill caused the improvement.
Control Groups, Placebos, and Blinding
Without a comparison group, the higher score could just come from test practice, an easier word list, or the placebo effect (improving simply because you expect the pill to work). To isolate the chemical's effect, we compare the active treatment group against a control group that gets a fake pill (placebo), and we use double-blinding so neither the subjects nor the test graders know who got which of the treatments:
Now we need a way to split our 100 volunteers into Group 1 and Group 2 so the two groups start out similar across every trait, both the ones we can measure and the ones we don't even know exist.
Random Assignment
Text solution
Label every subjectGive each of the 100 volunteers a distinct number from 1 to 100 (or 01 to 00 for a two-digit random number table), or write their names on 100 identical slips of paper and mix them thoroughly in a hat.
100 volunteers⟶Distinct labels 1,2,…,100(or 100 identical slips in a hat)
Select the first group without repeatsGenerate random integers from 1 to 100, ignoring repeated numbers and numbers outside 1 to 100, until 50 unique numbers are chosen for Group 1 (or draw 50 slips from the hat without putting them back).
First 50 unique numbers in [1,100]⟶Group 1 (FocusPill)
Send the remaining subjects to the second groupAssign the 50 unchosen volunteers to Group 2 so both groups are guaranteed to have 50 subjects.
Remaining 50 volunteers⟶Group 2 (Placebo)
Flipping a coin for each volunteer sounds random, but 100 coin flips will rarely give 50 heads and 50 tails. When you write out your steps, make sure to state that you ignore repeated numbers and assign the remaining subjects to the other group.
Sorting people by when they arrive or balancing them by hand leaves hidden differences uneven between the groups, while random assignment spreads both visible traits (GPA, sleep hours) and hidden traits (caffeine intake, anxiety, an undiscovered memory gene) roughly evenly across the two groups.
Sorting by arrival time or by hand leaves hidden traits uneven between the groups, while random assignment balances both visible and hidden traits.
4
Replication and Chance Variation
Random assignment only balances out human differences when there are enough subjects in each group for individual differences to average out, and we need to know when a final score difference is big enough to rule out random chance.
Replication and Chance Variation
Having many subjects in each treatment group is called replication (which in statistics means having a large group size inside the experiment, not repeating the whole study at another lab). Because random assignment still leaves small starting differences between the groups by pure chance, we only conclude that FocusPill caused an improvement when the final gap between the groups is larger than random assignment alone would produce:
76%−75%=1%(small enough to happen by randomassignment alone)88%−75%=13%(too large for chance alone⟹FocusPill caused the boost)
When stating what an experiment proves, keep the two random processes separate:
Big PopulationRandom Samplinggeneralize to populationSubjects in the StudyRandom Assignmenttest cause and effectTreatment Groups
With only a couple of people per group, random assignment can still leave a big starting gap, so we need enough subjects per group for individual differences to average out.
Dealing into tiny groups can leave a big starting gap between their averages, while larger groups let individual differences average out until only a tiny gap is left by chance.
5
Completely Randomized Design and Two-Factor Experiments
Randomly assigning all the subjects straight into the treatment groups, with replication and control, gives a completely randomized design. This setup also works when we want to test two explanatory variables (factors) at the same time, such as Supplement (FocusPill vs. Placebo) and Sleep (8 hours vs. 4 hours).
Completely Randomized Design and Two-Factor Experiments
Text solution
Combine the factor levels into treatmentsPair each level of Supplement with each level of Sleep so every combination forms its own treatment group.
Randomly assign subjects equally across all combined treatmentsLabel the 100 volunteers from 1 to 100 and use unique random numbers to split them into 4 equal groups of 25.
Compare the response across all groupsMeasure and compare average memory scores across all 4 groups at the end (and when there is a major known variable like Age that we do not want to leave to chance at all, we can use blocking and matched pairs).
Groups 1, 2, 3, and 4⟶Compare Memory Scores
Notice that we don't test the two factors in separate studies: each of the 4 combinations of Supplement and Sleep is its own treatment group.
In a two-factor experiment, every combination of one supplement level and one sleep level forms its own treatment group.
Key concepts
To tell whether an explanatory variable (factor) causes a change in a response variable, first check whether the researchers actively assigned the treatments. If they only watched what people chose on their own (like surveying students who already buy FocusPill), it is an observational study. Outside traits like motivation act as confounding variables tied to both the explanatory and response variables, so you cannot claim cause and effect.
To prove cause and effect, build a completely randomized experiment around three parts:
Control
Compare the active treatment group against a control group getting a placebo (like a sugar pill) under double-blinding (neither the subjects nor the people grading know who got which treatment) so expectations and grading stay identical. If you test multiple factors at once (such as 2 Supplement levels and 2 Sleep levels), every combination of levels is a treatment (2×2=4 treatments), not separate one-factor tests.
Random assignment
Split the volunteers into equal groups using slips in a hat (without putting them back) or a random number generator (ignoring repeats and sending the remaining subjects to the final group) to balance both known and unknown traits. Do not flip a coin when you need equal group sizes.
Replication
Assign many subjects to each group (50 per group, not 1 per group) so individual differences average out; do not confuse statistical replication with repeating the whole study at another lab.
Finally, match your conclusion to the random process used. Random sampling from a population lets you generalize to that population. Random assignment into groups lets you conclude cause and effect, as long as the final difference between groups is bigger than random assignment would produce by chance alone (88%−75%=13%, not a tiny 76%−75%=1% gap).
6
Practice
1
An engineer wants to test whether charging temperature affects battery lifespan. She places 60 new smartphone batteries into charging chambers set to either 15°C, 25°C, or 40°C, and measures how many charge cycles each battery lasts before dropping below 80% capacity. Identify the experimental units (and explain why they are not called subjects), the explanatory variable (factor), the treatments, and the response variable.
Check who or what gets the temperature conditions, what single variable the engineer is adjusting, what the specific settings of that variable are, and what is measured at the end.
The experimental units are the 60 smartphone batteries (they are called experimental units rather than subjects because they are not human; calling non-human objects "subjects" is a common mistake). The explanatory variable (factor) is charging temperature. Watch out for mixing up the factor with the treatments: charging temperature is the single factor being changed, while the treatments are the three specific temperature settings (15∘C,25∘C, and 40∘C). The response variable is the number of charge cycles each battery lasts before dropping below 80% capacity.
2
A school district surveys 200 high school students and finds that the 100 students who drink a daily protein shake have a much higher average sprint speed than the 100 students who do not. Is this an observational study or an experiment? Explain how athletic training habits could act as a confounding variable in this study.
Ask whether the researchers assigned who drinks the protein shake, and make sure to connect athletic training habits to both the protein shake and sprint speed.
This is an observational study because the researchers only watched what the students chose to do on their own rather than assigning who drinks the protein shake. Athletic training habits is a confounding variable because it is connected to both the explanatory variable and the response variable (a common mistake is only explaining why training makes students faster without linking it to the shake): varsity athletes who train heavily are both more likely to buy protein shakes and faster sprinters because of their training, so the effect of the protein shake is mixed up with the effect of training habits.
3
A dermatologist tests a new cream for skin redness by giving the cream to 40 volunteers on Monday and rating their skin redness on Friday. Average redness drops by 20%. Explain why this single-group design cannot prove the cream works, and describe how adding a control group with a placebo and double-blinding fixes the flaws.
Think about what else could change skin redness between Monday and Friday besides the active ingredient, both in the volunteers' skin and in the minds of the volunteers and the dermatologist.
Without a comparison group, the 20% drop could be caused by other changes during the week (such as weather changes or natural healing) or by the placebo effect (improvements caused by expecting the cream to work). Adding a control group that gets an identical-looking lotion with no active ingredient (a placebo) makes sure both groups experience the same week and the same expectations. Using double-blinding, where neither the subjects nor the dermatologist rating the skin knows who got the active cream (be careful not to write "neither group knows" instead of naming both the subjects and the person rating the skin), keeps the subjects' expectations and the dermatologist's expectations on borderline ratings from throwing off the results.
4
A researcher wants to randomly assign 80 volunteers into two equal groups of 40 (Treatment A and Treatment B). First, explain why flipping a coin for each volunteer as they walk in is not a good way to get two groups of 40. Then describe how to perform the random assignment properly using (a) slips of paper in a hat and (b) a random number generator.
Consider how many heads and tails you usually get in 80 coin flips, and remember what happens in a random number generator if the same volunteer's number comes up twice.
Flipping a coin 80 times will usually not give 40 heads and 40 tails, so the two groups will likely end up with unequal numbers of subjects. (a) Hat method: Write all 80 volunteers' names on identical slips of paper, place them in a hat, and mix thoroughly. Draw 40 slips one at a time without putting them back and assign those 40 volunteers to Treatment A; assign the remaining 40 volunteers left in the hat to Treatment B. (b) Random number generator method: Give each volunteer a distinct label from 1 to 80. Use a random number generator to pick integers from 1 to 80 one at a time, ignoring any repeated numbers and any numbers outside 1 to 80 (forgetting to ignore repeats is the most common mistake, which leaves Treatment A with fewer than 40 people), until 40 unique numbers are chosen. Assign the 40 volunteers with those numbers to Treatment A, and assign the remaining 40 volunteers to Treatment B.
5
Researchers randomly select 120 students from a large university and randomly assign 60 to study with a new flashcard app and 60 to study with a standard textbook. On the final test, the app group averages 78.6% and the textbook group averages 78.0%. A student says: "First, this experiment lacks replication unless they repeat it at another university next year. Second, because they used random assignment and 78.6% is higher than 78.0%, the app definitely caused the higher average." Evaluate both parts of the student's statement, and state what conclusions the researchers could draw if the app group had instead beat the textbook group by 15 points.
Check what replication means inside an experiment, whether a 0.6% gap is bigger than random assignment alone would produce, and how the 120 students were chosen from the university.
Both parts of the student's statement are incorrect. First, in statistics, replication means having many subjects in each treatment group within the experiment (here, 60 per group) so individual differences average out, not repeating the entire study at another lab. Second, even with 60 people per group, random assignment does not make the two groups 100% identical; a tiny 0.6-point difference could easily happen just by random chance in who landed in which group, even if the app has no effect. If the difference had been 15 points, which is much larger than random assignment alone would produce, the researchers could both conclude that the app caused the higher scores (because of random assignment) and generalize that result to the university population (because the 120 students were selected by random sampling; be careful not to mix up which random process lets you claim cause and effect versus generalizing to a population).
6
Exercise scientists have 120 volunteers to test how two factors affect endurance time on a treadmill: Hydration Drink (Water, Electrolyte Drink, Caffeine-Electrolyte Drink) and Room Temperature (Cool, Warm). List all treatments in this experiment, and describe a completely randomized design that uses all 120 volunteers.
Watch out for the mistake of testing the levels separately as 3+2=5 groups instead of pairing them.
Every volunteer gets both a drink and a room temperature. Pair each of the 3 drinks with each of the 2 temperatures before dividing the 120 volunteers into equal groups.
There are 2 factors, Hydration Drink (3 levels) and Room Temperature (2 levels), which combine to form 3×2=6 treatments (watch out for the mistake of testing the levels separately as 3+2=5 groups instead of pairing them): (1) Water + Cool, (2) Water + Warm, (3) Electrolyte Drink + Cool, (4) Electrolyte Drink + Warm, (5) Caffeine-Electrolyte Drink + Cool, and (6) Caffeine-Electrolyte Drink + Warm. In a completely randomized design, label the 120 volunteers from 1 to 120 and use a random number generator (ignoring repeats) to split them into 6 equal groups of 20: the first 20 unique numbers get Treatment 1, the next 20 get Treatment 2, the next 20 get Treatment 3, the next 20 get Treatment 4, the next 20 get Treatment 5, and the remaining 20 volunteers get Treatment 6. At the end of the experiment, compare the endurance times on the treadmill across all 6 treatment groups.