Sub topic 6
Random Assignment and Why It Matters
Prerequisites
This chapter assumes that you know the difference between an independent variable, which a researcher changes, and a dependent variable, which a researcher measures. You should also know that a confounding variable is an uncontrolled factor that could explain a result.
What random assignment means
Random assignment is a procedure that places participants into study groups by chance. In an experiment, researchers usually assign people to a treatment group or a control group.
For example, a researcher might test whether a mindfulness app improves concentration. The treatment group uses the app. The control group does not use it. If participants choose their own groups, people who already expect the app to help might be more likely to choose treatment. Their expectations could affect the result.
Random assignment removes participant choice from group placement. Each participant has a known chance of entering each group. This tends to distribute personal characteristics, such as motivation, sleep habits, and prior concentration ability, across the groups.
| Feature | Random assignment | Random sampling |
|---|---|---|
| What it determines | Which study group each participant enters | Which people enter the study |
| Main purpose | Support causal conclusions | Support generalization to a population |
| Example | Assigning participants to app or no-app groups | Selecting people from all university students |
Why it supports causal conclusions
Suppose the treatment group improves more than the control group. With random assignment, the app is a plausible cause because the researcher controlled the group placement. The groups should differ systematically in the independent variable, while other differences tend to balance out.
Random assignment does not make groups identical. Chance can still produce an uneven distribution, especially in a small sample. Researchers therefore use statistical tests and report uncertainty. Random assignment reduces confounding; it does not eliminate every possible error.
import random
participants = [f"P{i}" for i in range(1, 21)]
random.seed(42)
random.shuffle(participants)
treatment = participants[:10]
control = participants[10:]
print("Treatment:", treatment)
print("Control:", control)The fixed seed makes this demonstration reproducible. A real study would use a documented randomization procedure and preserve the assignment record.
Checking an assignment claim
When evaluating a study, ask:
- Were participants assigned to groups by chance?
- Was the assignment performed before the outcome was measured?
- Were participants lost from one group after assignment?
- Were the groups large enough for chance differences to be reasonably small?
- Did the researchers analyze participants according to their assigned groups?
If participants were assigned by preexisting features, such as age or diagnosis, the study may be a quasi-experiment rather than a fully randomized experiment.
Exercise
A study compares people who chose to attend therapy with people who did not. Can the difference in outcomes be attributed to therapy alone?
Show answer
No. Because participants chose their groups, preexisting differences such as motivation or symptom severity may confound the result. Random assignment would provide stronger support for a causal conclusion.