Sub topic 5
Experiments: Manipulating a Variable to Test Cause and Effect
This chapter assumes you know what independent and dependent variables are, how to write an operational definition, and the basic idea of a mean. It covers what makes a study an experiment, how its parts fit together, and the errors learners most often make when reading one.
What makes a study an experiment
An experiment is a study in which the researcher deliberately manipulates one variable and measures its effect on another, while trying to keep everything else the same. Two features define it:
- Manipulation. The researcher decides which participants get which level of the independent variable (IV). The IV is not just observed.
- Control. The researcher holds other factors constant or balances them across groups, so that differences in the outcome can be traced to the IV.
The outcome that gets measured is the dependent variable (DV). The logic is simple: if the groups are alike in every way except the IV, and the DV differs afterward, the IV is the most plausible cause.
Suppose you want to know whether a 20-minute nap improves afternoon memory. The IV is nap condition (nap or no nap). The DV is the number of words recalled from a 40-word list. Everything else, such as the time of day, the word list, the room, and the instructions, stays the same.
The parts of an experiment
| Part | What it is | Napping example |
|---|---|---|
| Independent variable | The factor the researcher manipulates | Nap vs. no nap |
| Levels (conditions) | The values the IV takes | Two levels |
| Dependent variable | The outcome that is measured | Words recalled |
| Participants | The people who take part | 60 undergraduates |
| Control variables | Factors held constant | Time of day, word list, room |
| Procedure | The fixed sequence of events | Learn list, nap or rest, recall test |
A good experiment also has operational definitions for every variable. "Memory" becomes "words correctly recalled after a 30-minute delay." Without this, nobody can repeat the study or judge whether the measure fits the idea.
Two basic designs
The way participants are placed into conditions shapes what can go wrong.
- Between-subjects design. Each participant experiences only one condition. Groups are compared with each other. This avoids practice and fatigue effects, but it needs more participants, and the groups may differ in ways unrelated to the IV.
- Within-subjects design. Each participant experiences every condition. Each person acts as their own comparison, which removes most individual differences and increases statistical power. The risk is order effects: doing condition A first may change performance in condition B. Researchers handle this by counterbalancing, which means varying the order across participants.
A third option, the factorial design, manipulates two or more IVs at once. It lets you test whether the effect of one IV depends on another, which is called an interaction. For example, napping might help only people who slept poorly the night before.
Random assignment
In a between-subjects experiment, random assignment means every participant has an equal chance of landing in each condition. It does not guarantee identical groups. It makes any leftover differences due to chance, not to a systematic cause, and that is what lets statistics estimate how large such chance differences are likely to be. The next chapter treats this in depth. The code below shows the mechanics for 20 participants.
import random
participants = [f"P{i}" for i in range(1, 21)]
random.seed(42) # fixed seed so the assignment can be reproduced
random.shuffle(participants)
treatment = participants[:10]
control = participants[10:]
print("Treatment:", treatment)
print("Control:", control)Shuffling the list and splitting it in half gives each person an equal chance of either condition, and the equal group sizes are guaranteed.
The flow of a typical experiment
Why experiments support causal claims
Establishing that A causes B generally requires three things:
- Covariation. A and B vary together.
- Temporal precedence. A comes before B.
- Elimination of alternative explanations. Nothing else plausibly accounts for the link.
Correlational studies can show the first, and sometimes the second. Experiments are the strongest tool for all three. The researcher sets the IV first, so the order is known. Random assignment and control address rival explanations, so the third requirement is largely met. This is why experiments have high internal validity: the degree to which a study can justify the claim that the IV caused the change in the DV.
Common errors and edge cases
Calling a study an experiment because it has groups. Comparing introverts and extraverts is not an experiment. Personality type is measured, not manipulated, so participants cannot be randomly assigned to it. Such a study is quasi-experimental or correlational, and it cannot support a causal claim.
Assuming random assignment equals random sampling. Random assignment concerns how participants are placed into conditions. Random sampling concerns how they were selected from a population. The first supports causal conclusions. The second supports generalizing to the population. A study can have one without the other.
Manipulation that did not work. If you tell participants a task is "stressful" but they do not feel stressed, the IV was not effectively manipulated. Researchers use a manipulation check, such as a short self-report question, to confirm that the conditions differ in the intended way.
Demand characteristics and expectancy effects. Participants may guess the hypothesis and act accordingly. Experimenters may unintentionally treat groups differently. Control groups, placebos, and blinding, covered in a later chapter, address these.
Ecological trade-offs. Tight control often makes the setting artificial. A lab task may be clean but unlike real life, which limits external validity. Researchers trade realism for control, and neither is free.
Small groups and chance. With 10 people per group, one unusual participant can move the mean. A difference between group means is not automatically meaningful, which is why statistical inference follows the experiment.
A short worked reading
A researcher reports that students who used a new study app scored higher on an exam than students who did not. Ask these questions:
- Did the researcher decide who got the app, or did students choose it?
- If the researcher decided, was the choice random?
- Were exam conditions the same for both groups?
- Was the exam scorer aware of group membership?
If students chose the app themselves, motivated students may have chosen it, and motivation could explain the scores. The study is then not an experiment, and the causal claim is weak.
Exercise
A researcher recruits 40 volunteers and lets each pick whether to join a mindfulness class or a waiting list. After eight weeks, the mindfulness group reports lower anxiety. Is this an experiment? Name the problem, and describe one change that would fix it.
Show answer
It is not a true experiment, because participants chose their own condition, so the researcher did not control assignment. Volunteers who pick mindfulness may already be more motivated or less anxious, a self-selection confound. The fix is random assignment: for example, shuffle the 40 volunteers and place 20 in each condition, then compare anxiety scores measured the same way in both groups.
Exercise
A memory study tests every participant under both a quiet and a noisy condition. Name the design, identify the main threat to it, and state how to reduce that threat.
Show answer
This is a within-subjects design. The main threat is order effects, such as practice or fatigue, which could make the second condition look better or worse regardless of noise. Counterbalancing reduces it: half the participants do the quiet condition first and half do the noisy condition first.