Inference from the treatment assignment

Randomization-based inference asks what results the experiment's assignment mechanism could have produced if a specified null hypothesis held. In a randomized experiment, the design determines which treatment assignments are possible and the probability of each. The uncertainty used for this inference comes from assigning treatment, rather than drawing a new set of people.

What stays fixed

A sharp null of no effect says that each unit would have the same outcome under treatment and control.


It therefore supplies the missing potential outcome for every unit: it equals that unit's observed outcome. Keep those outcomes fixed and place treatment labels only in ways the actual design allowed.


The resulting reference set must retain a fixed treated count when the design fixed one, and must retain within-block counts when randomization occurred separately within blocks.

From assignments to evidence

Choose a test statistic, such as the treated-minus-control mean difference, before comparing assignments. Recompute it for each allowed assignment to form a null distribution, weighting assignments by their design probabilities.


For a stated positive-effect alternative, the one-sided p-value is the probability of a statistic at least as large as the observed one under that distribution.


A two-sided calculation also needs an explicit extremeness rule, such as absolute difference; merely saying “two-sided” does not choose the rule.

Worked example

Suppose fixed outcomes are 12, 14, and 18, and a fair complete-randomization design treats exactly one unit. There are three equally likely treatment placements. If 14 was treated, its treated-minus-control difference is 14 − (12 + 18)/2 = −1 outcome unit.


Treating 12 instead gives 12 − (14 + 18)/2 = −4; treating 18 gives 18 − (12 + 14)/2 = 5. For the positive-effect alternative, two of the three assignments have statistics at least −1, so the one-sided p-value is 2/3. This calculation describes the assignment distribution under the sharp null, not the chance that the null itself is true.



Five enrolled units are assigned by fair complete randomization, with every subset of two treated units equally likely and the other three units serving as controls. How many assignments are in the design reference set, and what probability does each receive?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A trial randomized exactly three of six units to treatment. To test the sharp null that treatment changes no unit’s outcome, what operation produces the randomization distribution of a treatment-minus-control mean difference?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Five fixed outcomes under a sharp no-effect null are 1, 4, 6, 9, 10. A fair complete-randomization design treats exactly two units, and the observed treated outcomes are 9 and 10. For the alternative that treatment increases the mean, find the observed treated-minus-control mean difference and its exact one-sided randomization p-value.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors