Study design · Statistics Library

Randomization

Randomization is assigning subjects or experimental units to conditions purely by chance, which balances both known and unknown confounders across groups on average and licenses a causal interpretation of the resulting comparison.

Chapter 1: Questions, study design and data qualityReading 1.2

Understand the idea

If you let a coin flip decide who gets the new treatment and who gets the old one, the two groups will tend to end up similar on EVERYTHING (age, health, motivation, and anything else that might otherwise differ between groups), not because you controlled for those things directly, but because chance does not systematically favor one group over the other on any particular variable.

This is the single most powerful tool for ruling out confounding (a hidden third factor that differs between the groups and also affects the outcome): it balances not just the variables you thought to measure, but also the ones you never thought of and could never have measured. That is something no amount of statistical adjustment after the fact can achieve.

Randomization does not guarantee the groups are IDENTICAL in any one study: by chance, a particular randomization can still produce somewhat unbalanced groups, especially with a small sample. What it guarantees is that there is no SYSTEMATIC tendency toward imbalance, which is exactly what the resulting hypothesis test's error rate assumes.

Using chance to decide which group each person or unit joins is called random assignment. A study that randomly assigns people to a treatment group or a control group is called a randomized controlled trial, or RCT. A permutation test uses the same idea after the data are in: it reshuffles the group labels many times to see how big a difference chance alone tends to produce.

Practitioner explanation

Randomization is what licenses the causal interpretation of a comparison of means: under the Neyman-Rubin potential-outcomes framework, random assignment makes treatment assignment independent of the potential outcomes, so the observed difference in group means is an unbiased estimator of the average treatment effect, a claim that does not require having measured every confounder, only that assignment itself was random.

Simple randomization can still produce chance imbalance on important covariates, especially at small n; STRATIFIED or BLOCKED randomization (randomizing within strata defined by a known important covariate) reduces this risk directly, and re-randomization designs explicitly reject draws that fail a covariate-balance check. Randomization also justifies the RANDOMIZATION (permutation) test as a design-based, assumption-light alternative to a parametric test.

KernelStats' DOE designer randomizes the run order of every generated design by default (seed-reproducible, and within each block when the design is blocked), and Design of Experiments (2-Level Factorial) lists independence with a randomized run order among its assumptions, because running the design in standard order can confound a time-varying nuisance factor (e.g. equipment warm-up) with a treatment effect.

When to use it

Consider it when

Whenever you control assignment to conditions (an experiment, an A/B test, a clinical trial), randomization should be the default assignment mechanism unless there is a specific, documented reason not to.

Use caution when

It cannot be applied retroactively to observational data already collected without random assignment; there, the analysis must rely on measured-confounder adjustment or a quasi-experimental design instead, with the corresponding weaker causal claim.

Alternatives

  • ANCOVA (Analysis of Covariance). Randomization was not possible; adjusting for a measured, important covariate can reduce (but never fully remove) confounding in an observational comparison.

Common misconceptions

Misconception

Randomization guarantees the two groups will be identical on every covariate.

Correction

Randomization guarantees no SYSTEMATIC tendency toward imbalance, not that any particular randomization will be perfectly balanced. Chance imbalance is still possible, especially at small n, which is why stratified or blocked randomization is often preferred for known important covariates.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §5.1 Introduction to design of experiments (randomization), NIST/SEMATECH (2012), §5.1.