# Randomization Inference

Randomization inference is a method of calculating regression p-values that take into account any variations in RCT data that arise from randomization itself. When the researcher controls the treatment assignment of the entire observed group, variation arises from the treatment assignment rather than from the sampling strategy. Randomization inference considers what would have occurred under not only the random assignment that happened to be selected for the experiment, but rather under all possible random assignments: would the results hold? Randomization inference takes place during data analysis. This page will cover the motivation behind randomization inference, explain how to implement it, and discuss its implications.

## Contents

## Read First

- Randomization inference considers what would have occurred under not only the random assignment that happened to be selected for the experiment, but rather under all possible random assignments: would the results hold?
- Although the practice is not yet required by most journals, randomization inference is straightforward to implement with modern statistical software.
- When planning to utilize randomization inference for an experimental analysis, consider the difference in variation source during experimental design. In particular, perform power calculations and actual randomization to account for the randomization-inference method of p-value calculation.

## Motivation

### Baseline Balance in Experimental Data

Recent discussions point out that balance tests on datasets where treatment was randomly assigned are conceptually challenging. P-values from t-tests are the estimated probability that the observed difference between the sampled groups would have been observed if those samples had been drawn from underlying sampling frames with no true mean difference. However, in the randomization framework, there is no underlying universe of observations from which the samples are drawn: the observed data makes up the full universe of eligible units and therefore the differences are exact. Thus, testing them reveals no information.

### Is the Treatment Effect Significant?

The same logic extends to differences in outcome variables that the researcher investigates for causal response to a randomly assigned treatment. The differences between the treatment and control groups are, in general, exact because the full universes are observed in data. This means that asymptotically-motivated "sampling variation" cannot be used to calculate whether the difference between the treatment and control groups is statistically significant. Rather than estimating the variation in draws from a hypothesized infinite underlying distribution (the mathematical approach of "standard" p-values), the researcher should instead compute p-values based on the knowable variation in hypothetical *treatment assignments*, using the randomization process as the source of variation for the estimate.

## Calculating P-Values with Randomization Inference

Although randomization inference is not yet required by most journals, it is straightforward to implement with modern statistical software. The steps are conceptually straightforward in a Monte Carlo framework:

- Preserve the original treatment assignment.
- Generate placebo treatment statuses according to the original assignment method.
- Estimate the original regression equation with an additional term for the placebo treatment.
- Repeat #1–3.
- The randomization inference p-value is
*the proportion of times the placebo treatment effect was larger than the estimated treatment effect.*

Because the treatment assignment is the source of variation in the experimental design, the p-value is correctly interpretable as "the probability that a similar size treatment effect would have been observed under different hypothetical realizations of the chosen randomization method".

## Implications for Experimental Design

When planning to utilize randomization inference for an experimental analysis, consider the difference in variation source during experimental design. In particular, perform power calculations and actual randomization to account for the randomization-inference method of p-value calculation. Athey and Imbens (2016) provide an extensive guide to these considerations. Major takeaways include:

- Power is maximized by forcing treatment-control balance on relevant baseline observables or outcome levels. This is achieved in theory by maximally partitioning into strata (2 treatment units and 2 control units in each, assuming a balanced design with one treatment arm), with fixed effects for the strata in the final regression.
- Pairwise randomization is inappropriate because within-strata variances cannot be computed.
- The "re-randomization" approach to force balance is typically inappropriate.

## Back to Parent

This article is part of the topic Data Analysis