Understanding Randomized Experiments
A practical guide to what randomized experiments estimate, how to design and analyze them, and how to interpret their limits.
How Works
Why chance assignment supports a causal comparison
A randomized experiment assigns eligible units—people, schools, or communities—to a treatment or comparison condition by chance. The key idea is a counterfactual: for each unit, imagine one outcome if assigned to treatment and another if assigned to comparison. Only one can actually be observed for that unit.
Because assignment is independent of participant characteristics on average, the comparison group can estimate, on average, what would have happened to the treatment group without the intervention. Comparing outcomes by assigned group can therefore estimate the causal effect of being assigned to the intervention, when the design is implemented and analyzed appropriately. This is an effect of assignment, not necessarily an effect of receiving the intervention.
Randomization balances characteristics in expectation; it does not guarantee identical groups in every trial. A chance imbalance at baseline is possible, especially when there are few randomized units. The logic is that makes systematic differences between groups less likely on average, not that it makes every trial perfectly balanced.
Match and protect the assignment design
Start by defining who is eligible, what intervention and comparison are being tested, and which outcome and follow-up period matter. Then choose an assignment unit that fits how the intervention is delivered. Individual assignment can be efficient when people can be treated separately. If an intervention is shared within schools or communities—or participants could pass it to one another—assigning whole groups can reduce contamination. Cluster trials need enough groups and analysis that accounts for similarities among people within the same group. They also require attention to recruitment that occurs after assignment and to baseline imbalances between groups.
Use an unpredictable chance process, not a rule such as alternation or date of birth. Conceal the allocation sequence from recruiters until enrollment is complete; recruiting and measuring participants before assignment, when feasible, helps prevent assignment knowledge from influencing who enrolls. Choose a scheme suited to the study: simple randomization, randomization within important categories such as school or baseline risk, or assignment of clusters.
Plan the primary outcome, the smallest effect worth detecting, sample size, and analysis in advance. For cluster trials, account for within-group similarity. Track outcomes for everyone assigned, including people who decline or stop treatment. Where feasible, blind outcome assessors, particularly when outcomes require subjective judgment. These steps protect the comparison from avoidable selection and measurement bias.
Estimating the Assignment Effect
Compare outcomes by assigned group
For a two-arm randomized trial, the intention-to-treat estimate is the treatment-assigned group’s mean outcome minus the comparison-assigned group’s mean outcome:
For example, if students assigned to treatment average 78 points on a test and students assigned to comparison average 74, then
The interpretation is an estimated 4-point effect of assignment under the trial’s conditions. Participants stay in the groups to which they were randomized, whether or not they take up or continue the intervention. This preserves the comparison created by randomization. It does not necessarily estimate the effect of actually receiving treatment.
A regression can express the same comparison and may improve precision by adjusting for prespecified baseline variables or assignment blocks. Report the effect estimate, its uncertainty (for example, a confidence interval), and the number of units analyzed. Specify outcomes and analyses in advance rather than selecting a favorable outcome or subgroup after seeing results. In a cluster-randomized study, uncertainty calculations must reflect the assignment and outcome structure: treating all individuals as independently randomized can understate uncertainty.
Interpreting Evidence and Its Limits
Problems that can complicate a randomized comparison
does not remove every threat to interpretation:
Noncompliance and crossover: Some people assigned to treatment may not receive it, while some assigned to comparison may obtain it elsewhere. The ITT still estimates assignment, but the difference in treatment actually received shrinks; the ITT may therefore be smaller than the effect of receiving treatment.
Missing outcomes: If outcomes are measured more often in one arm, or for certain kinds of participants within an arm, the analyzed sample may no longer retain the balance created by randomization. Report missingness by arm and assess how it could affect conclusions.
Spillovers or contamination: Comparison participants may be affected by treatment participants, or resources may shift between groups. The estimated contrast may reflect direct effects alongside effects on comparison participants or resource shifts between groups, rather than a simple treated-versus-untreated difference.
Unblinded behavior or measurement: Knowing assignment may change participant or provider behavior, and assessors may rate outcomes differently. Objective outcomes, blinded assessors, and consistent measurement can limit this risk.
Few randomized units: Chance baseline imbalances are more likely with few units, especially few clusters. Balance checks can flag differences, but cannot prove randomization succeeded or justify discarding inconvenient observations.
These issues can affect interpretation or precision even when assignment was genuinely random. Cluster trials also require attention to recruitment after assignment, baseline imbalances, and analysis that accounts for within-cluster similarities.
Project STAR: causal evidence and its scope
Tennessee’s Student/Teacher Achievement Ratio project (Project STAR) studied whether smaller elementary-school classes improved student outcomes. Beginning in 1985, participating schools assigned pupils and teachers among small classes, regular-sized classes, and regular-sized classes with a teacher’s aide. Small classes generally had about 13–17 pupils; regular classes had roughly 22–25. Assignment within participating schools made the comparison less dependent on differences between schools.
The central comparison was achievement for students assigned to small classes versus students assigned to the regular-class condition. The original study reported significant reading and mathematics benefits from assignment to small classes, with evidence of particular benefits for minority students on some measures. Later summaries also reported achievement gains during the early grades.
The case shows why causal validity and are different questions. supports a causal interpretation for the pupils and conditions studied. But participating schools were not a random sample of all schools. The trial’s findings do not guarantee that an intensive, sustained class-size intervention will produce identical effects in a different population or when scaled up. The evidence speaks most directly to assignment under the STAR conditions; applying it elsewhere requires considering site selection and implementation.
: The outcome a unit would have under a particular assignment condition.
: An analysis comparing outcomes according to the groups participants were randomized to.