Fisher Exact Randomization Inference

Statistics
Introduced by
Ronald A. Fisher
Year
1935
Type
Exact permutation-based inference

What does it do?

Randomization inference, associated with Ronald A. Fisher's The Design of Experiments (1935), computes a p-value by comparing an observed test statistic with its distribution across the treatment assignments the randomization permits, under Fisher's sharp null hypothesis.

Its validity rests on the known assignment mechanism rather than on distributional assumptions. When every permissible assignment is enumerated, the resulting p-value is exact.

The intuition behind the method

Imagine you ran an experiment and saw a gap between the treated and control groups. The question randomization inference asks is simple: if the treatment did nothing at all, how often would a random reshuffling of who got treated produce a gap as large as the one you actually observed? By re-labelling units in every way the randomization allowed and recomputing the statistic each time, you build the exact reference distribution and read off how extreme your real result is.

History

The exact permutation logic for randomized experiments is attributed to Ronald A. Fisher's The Design of Experiments (1935), where it is tied to the sharp null hypothesis of no individual effect. Imbens and Rubin's Causal Inference for Statistics, Social, and Biomedical Sciences (2015) is cited for treating this approach within the potential-outcomes framework.

When to use it

Use randomization inference when units were randomly assigned to treatment with a known assignment probability, and you want a p-value for the treatment effect that does not depend on distributional assumptions. It fits comparisons of treated and control units where the analyst has fixed the test statistic in advance. It requires SUTVA (one unit's outcome is unaffected by other units' assignments) and a known assignment mechanism. Do not use it for observational comparisons where the assignment mechanism is unknown. Feasibility depends on the number of permissible assignments under the design rather than on the number of units alone: a small study can have many assignments, while a design with few clusters or strata can have few assignments despite a large total sample. When the design allows only a handful of assignments, an exact test cannot reach small p-values and a different approach should be considered.

Limitations and considerations

  • Requires SUTVA to hold across units and a known assignment probability; if units interfere with each other or the assignment probabilities are unknown, the inference is not valid as stated.
  • The reshuffles must mirror the actual randomization scheme. In stratified or clustered designs, assignments are permuted only within the permitted strata or clusters; if the reference distribution ignores these restrictions, the p-value is not valid.
  • Statistics that weight units by inverse assignment probabilities require those probabilities to be known, and they are computed using them.
  • With few permissible assignments, the number of distinct p-values is small and the test may be unable to reach conventional significance levels.
  • The p-value tests the sharp null of no effect for any unit. On its own it does not estimate the size of an average effect, and interval estimates require assumptions beyond the sharp null.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Yields a p-value that follows directly from the known randomization, without relying on normality or large-sample approximations.
  • Uses the assignment mechanism itself as the basis for the reference distribution, so the inference matches the design of the experiment.
  • The analyst chooses the test statistic, and the reference distribution is built from that same statistic under the sharp null.

Applications

  • Analysing randomized experiments in which the assignment mechanism is known and a p-value for the treatment effect is required.
  • Comparing treated and control units in a randomized design when normality or large-sample approximations are doubtful.
  • Cross-checking a parametric significance result from a randomized experiment against a p-value that depends only on the assignment mechanism.

How it works

How it works

1

A test statistic summarises the observed treatment-control contrast. The formula on this page uses the difference in means, T_obs = mean(treated) - mean(control). Under Fisher's sharp null hypothesis there is no effect for any single unit, so each unit's outcome would be the same whichever arm it was assigned to. This is what allows the outcomes to be held fixed while the assignments are reshuffled.

Formula
T_{obs} = \bar{Y}_{treated} - \bar{Y}_{control}
2

The set of assignments consistent with the randomization is enumerated, or sampled when it is too large to enumerate. The statistic is recomputed for each reassignment. The p-value formula counts the assignments whose absolute statistic is at least the absolute observed value, so the comparison is two-sided as written and assignments that tie with the observed value are counted as at least as extreme. The p-value is the proportion of such assignments. Because the reference distribution comes directly from the assignment mechanism, the p-value does not rely on normality assumptions. When the set is enumerated, the p-value is exact. When the set is sampled, the p-value is an approximation whose Monte Carlo error shrinks as the number of sampled assignments grows, so the number of draws should be reported and chosen to give the precision required.

Formula
p = \frac{1}{|\Omega|}\sum_{z\in\Omega} \mathbf{1}\{\,|T(z)| \ge |T_{obs}|\,\}

Common pitfalls

  • Applying it where interference between units violates SUTVA, so that reshuffling assignments no longer reflects the true design.
  • Running it on a very small design where only a handful of assignments exist; the smallest attainable p-value is then limited by the number of assignments, and the test may be unable to reach conventional significance levels whatever the observed data.
  • Treating an observational comparison as if it were randomized when the assignment mechanism is not actually known.

Frequently asked questions

Why is the p-value called 'exact'?

Because it is computed directly from the finite set of treatment assignments permitted by the randomization, rather than from an approximating distribution. When all permissible assignments are enumerated, the p-value is exact. When the set is too large to enumerate, a sample of assignments is used, and the accuracy of the approximation depends on how many assignments are drawn.

What is Fisher's sharp null hypothesis?

It states that the treatment has no effect for any single unit, so each unit would show the same outcome whether assigned to treatment or control. This lets you impute every unit's outcome under every reassignment and build the reference distribution.

What does SUTVA require?

The Stable Unit Treatment Value Assumption requires that one unit's outcome depends only on its own treatment and not on the assignments of other units, and that there is a single, well-defined version of each treatment. If units interfere with each other, the permutation logic breaks down.

What if my design allows only a few assignments?

The exact test is limited by the number of permissible assignments rather than by the sample size alone. When the design allows only a few assignments, the smallest attainable p-value is large, so the test may be unable to reach conventional significance levels. In that situation the design and the choice of analysis should be reconsidered.

Related methods

Sources

  1. Fisher, R. A. (1935). The Design of Experiments. Oliver & Boyd.

    Open publication reference
  2. Imbens, G. W. & Rubin, D. B. (2015). Causal Inference for Statistics, Social, and Biomedical Sciences. Cambridge University Press.

    ISBN: 978-0521885881