Three learners review open books together at a classroom table, with stacks of textbooks, stationery and a whiteboard in the bright room.

How Randomisation Inference Works | Assignment Mechanisms, Exact Tests, Permutation Distributions and Design-Based Causal Evidence

Randomisation inference is a way to make statistical conclusions by using the treatment-assignment mechanism of a randomised experiment as the foundation of uncertainty. Instead of beginning with a normal distribution, a regression error model or an asymptotic approximation, it asks a more concrete question: if the treatment labels had been assigned differently according to the experiment’s actual randomisation rule, how unusual would the observed result be?

That idea connects Fisher’s randomisation test, exact tests, permutation distributions, assignment mechanisms, blocked randomisation, matched pairs, cluster randomisation, Monte Carlo randomisation tests, confidence intervals by test inversion and design-based causal inference. It also explains why “shuffle the labels” is sometimes valid and sometimes completely wrong. The shuffle is not the method. The design determines which assignments are possible, with what probabilities, and therefore which reference distribution is legitimate.

Randomisation inference is especially valuable because it makes one of statistics’ deepest principles visible: analysis should respect design. A completely randomised experiment, a paired experiment, a blocked experiment and a cluster-randomised trial do not generate the same universe of allowable treatment assignments. If the analysis ignores those differences, an exact-looking p-value can be exactly wrong.

This article is the eduKateSingapore canonical owner for design-based randomisation inference: causal and statistical reasoning anchored to a known treatment-assignment mechanism. The existing How Nonparametric Statistics and Rank-Based Tests Work article keeps its separate job: ranks, signs, Mann–Whitney, Wilcoxon, Kruskal–Wallis, Friedman and distribution-light inference, with only a brief introduction to permutation reasoning. How Experimental Design Works owns planning, replication, blocking and design choice. How Causal Inference Works owns the wider causal-identification landscape across randomised and non-randomised evidence.

The authoritative spine for this edition combines the NIST/SEMATECH Engineering Statistics Handbook, NIST’s Fisher randomisation and permutation-test documentation, modern finite-population and randomisation-based causal reasoning, and current research on randomisation-based inference in cluster trials. The core principles are stable; current examples show that design-based inference remains an active method in modern statistical practice.

1. The shortest useful definition

Randomisation inference uses the random assignment rule of an experiment to construct the distribution of a test statistic under a stated null hypothesis.

The key source of randomness is not necessarily a hypothetical infinite population. It can be the actual assignment process: which units could have received treatment, which assignments were permitted, and how likely each assignment was.

This makes randomisation inference naturally finite-population and design-based. The observed units can be treated as fixed; what varies across the reference distribution is the treatment assignment that the experiment could have produced.

2. The governing question: what could the experiment have done instead?

Suppose eight students participate in a study and exactly four are assigned to a new teaching method. Before assignment, there are C(8,4) = 70 possible groups of four that could receive the treatment if the design is completely randomised with equal probability over all four-of-eight assignments.

Once one assignment is realised, ordinary intuition focuses on the two observed groups. Randomisation inference keeps the other 69 legal assignments in view. Under a suitable null hypothesis, we can ask what treatment–control differences would have appeared under each of those assignments while keeping the observed outcomes fixed in the way the null permits.

The resulting reference distribution comes from the design itself. That is the central mechanism.

3. Potential outcomes make the causal problem explicit

For unit i, write Yi(1) for the outcome that would be observed under treatment and Yi(0) for the outcome that would be observed under control. Let Zi equal 1 when the unit is assigned treatment and 0 otherwise.

The observed outcome is:

Yiobs = ZiYi(1) + (1 − Zi)Yi(0).

Only one potential outcome is observed for each unit. The other is missing because a unit cannot simultaneously receive both assignments in the same version of the experiment. Randomisation does not eliminate this fundamental causal missing-data problem. It gives us a probability mechanism for assignment that can support valid comparisons.

4. The assignment mechanism is part of the statistical model

An assignment mechanism specifies which treatment vectors Z are possible and the probability of each one. In a completely randomised design with N units and exactly nT treated, every permitted assignment may have probability 1 / C(N,nT).

Other designs differ. Bernoulli randomisation assigns units independently with specified probabilities. Matched-pair designs assign one treated unit within each pair. Blocked designs preserve treatment counts within blocks. Cluster designs assign whole groups. Restricted or rerandomised designs accept only allocations meeting balance rules.

Randomisation inference is only as correct as the assignment mechanism it uses. Analyse a blocked experiment as completely randomised and you may throw away information. Analyse cluster assignment as individual assignment and you can manufacture thousands of treatment arrangements that never could have happened.

5. Fisher’s sharp null hypothesis

The classical Fisher randomisation test is most transparent under the sharp null hypothesis of no treatment effect for any unit:

H0: Yi(1) = Yi(0) for every unit i.

It is called sharp because it specifies every unit-level missing potential outcome. If treatment has no effect on anyone, then each observed outcome is the outcome that unit would show under either assignment. That lets us calculate the test statistic under every assignment allowed by the design.

This is stronger than saying the average treatment effect is zero. An average effect of zero can hide positive effects for some units and negative effects for others. The sharp null says every individual effect is exactly zero.

6. The Fisher randomisation test step by step

  1. State the assignment mechanism. Identify the legal assignments and their probabilities.
  2. State a sharp null. Under the null, impute all potential outcomes needed to evaluate alternative assignments.
  3. Choose a test statistic. Difference in means, a rank statistic, a regression coefficient or another pre-specified summary.
  4. Compute the observed statistic. Use the actual assignment.
  5. Generate the randomisation distribution. Recompute the statistic under every legal assignment, or a valid random sample of assignments.
  6. Compare observed with reference. Count assignments producing a statistic at least as extreme as observed according to the chosen tail rule.
  7. Report the p-value with design context. The p-value refers to the null, assignment mechanism and statistic together.

7. Worked exact example: eight units, seventy legal assignments

Consider eight fixed outcomes:

10, 8, 7, 6, 5, 4, 3, 1.

Suppose the observed completely randomised assignment places 10, 8, 7 and 6 in treatment and 5, 4, 3 and 1 in control. The treated mean is 7.75. The control mean is 3.25. The observed difference in means is 4.50.

With four treated out of eight, there are C(8,4) = 70 legal assignments. Under Fisher’s sharp null, the outcomes remain attached to their units and only treatment labels change according to those 70 assignments.

Exactly two of the 70 assignments produce an absolute mean difference at least 4.50: the observed allocation and its complete reversal. A two-sided exact randomisation p-value is therefore:

p = 2 / 70 ≈ 0.0286.

The arithmetic is small enough to enumerate completely. No normal approximation is required. The result is exact relative to the sharp null, the completely randomised four-of-eight design and the chosen difference-in-means statistic.

8. “Exact” always means exact relative to assumptions

Randomisation tests are often called exact because their reference distribution can be generated from the known assignment mechanism without relying on a large-sample approximation.

That does not make the entire scientific conclusion assumption-free. The assignment record can be wrong. Outcomes can be missing. Units can interfere with one another. The test statistic can be badly chosen. The sharp null can be scientifically uninteresting. Treatment can be misdelivered.

Exactness is therefore local: exact control of the test’s randomisation behaviour under the specified design and null, not universal certainty about the experiment.

9. One-sided and two-sided tests are different questions

If larger positive statistics support the alternative, a one-sided p-value counts assignments producing statistics at least as large as observed. A two-sided p-value must define what “as extreme in either direction” means.

For symmetric difference statistics, absolute value is common. With asymmetric or discrete statistics, two-sided definitions can differ. The choice should be made before seeing the result, not selected afterward because one convention is smaller.

Direction is a scientific claim. A one-sided test is justified by a genuinely directional hypothesis and decision rule, not by a disappointing two-sided p-value.

10. The test statistic is a lens, not the randomisation itself

The assignment mechanism defines the reference distribution, but the analyst still chooses a statistic. Difference in means is sensitive to average shifts. Difference in medians targets something else. Rank statistics emphasise ordering. Studentised statistics scale by estimated variability. Regression coefficients can adjust for baseline covariates.

Different statistics can have different power against different alternatives even under the same exact randomisation framework. Exact validity does not imply equal efficiency.

The statistic should reflect the outcome, estimand, design and anticipated effect pattern. Pre-specification is valuable because searching among many statistics after seeing the data creates another multiplicity problem.

11. Completely randomised designs

In a completely randomised experiment, a fixed number of units is assigned to treatment and the rest to control, with all assignments of that size equally likely unless the design says otherwise.

NIST’s experimental-design guidance emphasises random assignment of factor levels to experimental units. For randomisation inference, the important object is not merely that “randomisation happened”; it is the exact set of assignments that could have happened.

Completely randomised designs produce a clean combinatorial assignment space, but balance on covariates is not guaranteed in any one realised assignment. Randomisation balances in probability, not by promise.

12. Bernoulli randomisation

Under Bernoulli assignment, each unit is treated independently with probability pi, which can be common or unit-specific. The total number treated is random rather than fixed.

Randomisation inference should reproduce those assignment probabilities. Conditioning on the realised treatment count can be useful in some analyses, but it changes the reference set and should be justified.

Modern randomisation-based work has developed methods for unequal treatment probabilities and conditional assignment spaces. The general lesson is stable: do not silently convert Bernoulli randomisation into complete randomisation because the software expects a fixed treated count.

13. Matched-pair randomisation

Suppose units are organised into pairs and exactly one unit in each pair receives treatment. The legal assignments are not all N-unit shuffles. They are pairwise flips.

With three pairs, there are 2³ = 8 legal assignments. A valid exact test can flip treatment labels within each pair while preserving the matching structure.

If every label is shuffled across all six units, the analysis invents assignments forbidden by the design. Matching was used to control variation; the inference should respect it.

14. Blocked randomisation

Blocks group units that are similar on important baseline characteristics or operational constraints. Treatment is then randomised within each block.

The randomisation distribution should preserve the within-block treatment counts. If block 1 assigned two of four units to treatment and block 2 assigned three of six, alternative assignments should respect those rules.

Blocking can improve precision when blocks explain outcome variation. It also changes the assignment mechanism, which means it changes the exact inference.

15. Stratified randomisation

Stratified randomisation is closely related to blocking. Units are separated by baseline strata—perhaps site, grade, risk category or another pre-treatment characteristic—and randomised within strata.

A valid design-based analysis should condition on the stratification structure when that structure constrained assignment. Current randomisation-based cluster-trial methods explicitly account for design features such as stratification and matching.

Ignoring stratification can sacrifice precision and misrepresent the actual randomisation universe.

16. Cluster randomisation: the unit of assignment is the cluster

Schools, clinics, villages, factories, classrooms or work teams can be randomised as clusters. Individuals inside a cluster then share treatment assignment.

If ten schools are randomised with five treated, the assignment space contains C(10,5) = 252 school-level assignments under simple complete cluster randomisation. It does not contain all possible student-level relabellings.

Shuffling students as though treatment were assigned individually destroys the design and usually produces a reference distribution that is far too narrow. The randomisation unit and analysis unit can differ; the assignment mechanism still belongs to the randomisation unit.

17. Why cluster trials make design-based inference attractive

Cluster trials can contain a small number of clusters, unequal cluster sizes and complex correlation. Large-sample model-based approximations can become delicate.

Randomisation-based inference can provide a design-anchored benchmark because it uses the known cluster assignment mechanism. Modern biostatistical research continues to develop randomisation-based tests and confidence intervals for cluster and stepped-wedge designs.

This does not remove the need to choose an estimand, weighting rule or test statistic. It gives those choices a reference distribution tied to the actual design.

18. Stepped-wedge designs

In a stepped-wedge cluster-randomised design, clusters cross from control to intervention at different randomised periods. The assignment mechanism concerns sequences or crossover times, not a single treated/control label.

Randomisation inference can reassign clusters to permissible sequences according to the design, recompute a statistic and obtain design-based p-values or confidence intervals.

Time trends matter because treatment status is structurally related to calendar period. A valid statistic typically accounts for period effects rather than treating all observations as exchangeable across time.

19. Restricted randomisation

Some experiments generate many candidate allocations and accept only those meeting balance or logistical constraints. This is restricted randomisation.

If only balanced allocations could have been selected, the randomisation test should usually draw from that restricted set rather than from every mathematically possible treatment vector.

The restriction is part of the design. Omitting it during analysis can weaken precision or alter type-I error properties, especially when the restriction is strong.

20. Rerandomisation

Rerandomisation repeatedly draws assignments until a pre-specified covariate-balance criterion is satisfied. The final assignment is therefore random within a constrained acceptance region.

Design-based inference should reproduce that acceptance rule. If the analysis pretends the selected assignment came from unrestricted complete randomisation, it ignores information deliberately introduced by the design.

Balance criteria must be chosen before outcomes are examined. Outcome-informed rerandomisation would undermine the random assignment argument.

21. Unequal assignment probabilities

Some units can have different probabilities of receiving treatment. Operational constraints, adaptive schemes or design choices can produce unequal probabilities.

A correct randomisation distribution weights assignments according to their design probabilities rather than treating every observed label permutation as equally likely.

This is a crucial distinction between “permutation” as a computational operation and randomisation inference as a probability argument. The probability law comes from assignment, not from the visual symmetry of the data table.

22. Conditional randomisation inference

Sometimes analysts condition on a feature of the assignment, such as the number treated, a blocking pattern or a covariate-balance statistic. The reference distribution is then restricted to assignments satisfying that condition.

Conditioning can sharpen relevance by comparing the observed assignment with alternatives that resemble it on important design features. It can also reduce the number of assignments and make p-values more discrete.

The conditioning rule should be justified by the design or inferential objective and not chosen after looking for a smaller p-value.

23. Exact enumeration

When the assignment space is small enough, enumerate every legal assignment. This produces the exact randomisation distribution directly.

For 8 units with 4 treated, there are 70 assignments. For 20 units with 10 treated, there are 184,756. For 30 units with 15 treated, there are 155,117,520. Enumeration becomes expensive quickly.

Computation therefore determines whether exact means literally exhaustive or whether Monte Carlo sampling is used to approximate the exact design distribution.

24. Monte Carlo randomisation tests

When enumeration is infeasible, sample many assignments from the correct randomisation mechanism. Recompute the statistic for each sampled assignment and estimate the tail probability.

If B random assignments are sampled and b are at least as extreme as observed, a common finite-simulation correction is:

p̂ = (b + 1) / (B + 1).

The “+1” recognises the observed arrangement in the comparison and avoids impossible-looking zero p-values from finite simulation. Monte Carlo error should be small enough that the scientific decision does not hinge on simulation noise.

25. A Monte Carlo p-value has uncertainty too

If an estimated randomisation p-value is 0.050 with only a few hundred permutations, repeating the simulation can move it noticeably. That is not instability in the experiment; it is simulation error introduced by the analyst.

Use enough randomisations, report the number performed, set a reproducible random seed where appropriate, and increase B when the p-value is near a decision threshold.

For high-stakes or publication-quality work, a confidence interval for the Monte Carlo tail probability or sequential Monte Carlo stopping rule can make computational uncertainty explicit.

26. Randomisation test versus permutation test

The terms are often used interchangeably, and NIST documentation uses both. Conceptually, a useful distinction is:

Every randomisation test can involve permutations or reassignments, but not every permutation test has a genuine experimental randomisation behind it.

27. Exchangeability is the real permission to shuffle

Exchangeability means the relevant joint distribution is unchanged by the allowed relabelling under the null and design. In a randomised experiment, the assignment mechanism can provide this permission directly.

In observational data, exchangeability is an assumption. Two groups may differ in age, baseline risk, site, exposure or selection mechanism. Shuffling labels across such groups can create hypothetical datasets that are not plausible under the data-generating process.

“Permutation test” is therefore not a magic nonparametric escape from confounding.

28. Why randomisation protects causal comparison

Before outcomes are observed, random assignment makes treatment independent of fixed baseline potential outcomes according to the design. That gives treatment and control groups a known chance-based relationship.

Randomisation does not guarantee perfect balance in one sample. It guarantees a probability mechanism that lets us quantify how surprising an imbalance or outcome difference would be under repeated assignments.

This is why the design can support causal evidence without requiring treatment groups to be identical on every observed and unobserved characteristic after randomisation.

29. Randomisation does not repair bad measurement

If outcomes are measured inconsistently, random assignment does not make the measurement valid. A biased scale, outcome switching, differential observer behaviour or data-entry errors can still damage the study.

Randomisation protects the treatment allocation mechanism. Measurement quality remains the job of measurement design, blinding where possible, standardised procedures and data-quality control.

This is why design-based inference belongs beside, not above, the rest of research methodology.

30. Difference in means is often a strong default statistic

For continuous outcomes in a simple two-arm experiment, the treated-minus-control mean difference is interpretable and directly connected to the finite-population average treatment effect.

It can also be sensitive to extreme values. Whether that sensitivity is desirable depends on the outcome. If large outcomes carry genuinely large scientific consequence, compressing them into ranks may hide important information.

Randomisation inference does not tell you which statistic matters. It gives a principled distribution for the statistic you choose.

31. Rank statistics can live inside randomisation inference

A randomisation test can use a rank statistic when the scientific question or outcome distribution makes ranks attractive. The assignment mechanism still provides the randomisation distribution.

This is where the new owner meets Nonparametric Statistics and Rank-Based Tests. That article owns the rank-method family; this article owns how a known assignment mechanism creates design-based inference.

The same statistic can therefore participate in different inferential stories. Method names matter less than the probability argument that makes the reference distribution legitimate.

32. Studentised statistics

A studentised statistic divides an estimated effect by an estimate of its standard error. Studentisation can improve robustness of randomisation or permutation procedures when variances differ or when the null of interest is weaker than a sharp null.

For example, a Welch-style t statistic can be permuted rather than the raw mean difference. The randomisation distribution then reflects both effect size and estimated variability.

Studentisation does not make any arbitrary permutation valid. The assignment or exchangeability structure must still be respected.

33. Fisher inference and Neyman inference answer different questions

Fisher’s classical exact test focuses on a sharp null that specifies every unit-level effect. Neyman’s finite-population framework focuses on estimating average causal effects and their randomisation variance.

These frameworks are compatible but not identical. A sharp null can be false even when the average effect is zero, because positive and negative individual effects can cancel.

A scientifically complete analysis often benefits from both perspectives: hypothesis tests for particular causal nulls and effect estimates with uncertainty for quantities decision-makers care about.

34. The finite-population average treatment effect

For N fixed experimental units, define the average treatment effect:

τ̄ = (1/N) Σ [Yi(1) − Yi(0)].

The difference in observed treatment and control means is an unbiased estimator of this finite-population ATE under complete randomisation.

The randomness comes from assignment. The potential outcomes of the N units can be treated as fixed attributes of the finite study population.

35. Randomisation variance

The treatment–control mean difference varies across possible assignments even when the potential outcomes are fixed. That variation creates a randomisation variance.

The exact finite-population variance involves the variability of Y(1), the variability of Y(0), and the variability of individual treatment effects. The final term cannot generally be identified because both potential outcomes are not observed for the same unit.

Conservative variance estimators omit the unidentifiable subtraction term. This is one reason confidence intervals can be valid without claiming to know the entire treatment-effect heterogeneity structure.

36. A zero average effect is not a sharp null

Suppose half the units benefit by +10 and half are harmed by −10. The average effect is zero, but the sharp null of no effect for anyone is dramatically false.

A Fisher test of the sharp null and a test of the weak null τ̄ = 0 can therefore behave differently.

This distinction is essential when analysts say “the null hypothesis is no effect”. No effect for whom, and in what sense?

37. The Fisher–Neyman paradox is a warning about null language

It is possible in finite samples for a test of a zero average effect and a Fisher sharp-null test to produce different conclusions. This is not a contradiction once we recognise that the null hypotheses, variance calculations and reference distributions differ.

The lesson is practical: write the causal null explicitly. “No average effect”, “no effect on any unit”, “constant effect τ” and “no effect on a distributional feature” are different claims.

38. Constant additive effect hypotheses

A useful sharp family is:

Hτ: Yi(1) = Yi(0) + τ for every unit i.

For a proposed τ, the missing potential outcomes can be imputed because every unit is assumed to have the same additive effect. A randomisation test can then evaluate that τ.

The assumption of constant treatment effect can be unrealistic. It remains useful as a device for exact test inversion and as a clearly defined sharp hypothesis.

39. Confidence intervals by inverting randomisation tests

If we can test Hτ for many candidate treatment effects τ, then the set of values not rejected at level α can form a confidence set.

This turns a hypothesis-test engine into an estimation tool. Instead of asking only whether zero is compatible with the data, ask which effect values remain compatible with the randomisation evidence.

In complex outcomes or cluster trials, inversion can be computationally difficult. Modern research continues to develop efficient design-based confidence-interval methods.

40. P-values are discrete when the assignment space is finite

With 70 equally likely assignments, an exact p-value cannot vary continuously. Its granularity is built from seventieths or from the chosen two-sided rule.

Small experiments can therefore have a minimum attainable p-value above conventional thresholds. This is not a software defect. It reflects limited randomisation information.

Planning should consider the size of the assignment space if hypothesis-test resolution matters.

41. Randomisation p-value ≠ probability the null is true

An exact p-value describes how often assignments at least as extreme as observed would arise under the specified null and assignment mechanism.

It is not the posterior probability that the null hypothesis is true. It does not measure the probability that the result will replicate. It does not directly measure effect size.

Randomisation inference improves the reference distribution. It does not change the logical meaning of a p-value.

42. Covariate adjustment can improve precision

Pre-treatment covariates that predict outcomes can improve precision. A test statistic can use regression adjustment, residualisation or stratified summaries while the treatment reassignment still follows the randomisation mechanism.

The design-based validity comes from randomisation. The model is used to construct a more efficient statistic, not necessarily to replace the design as the source of inference.

Adjustment variables and procedures are best pre-specified, especially when many covariates are available.

43. Baseline covariates are different from post-treatment variables

A baseline measure recorded before treatment can often be used safely for precision. A variable affected by treatment sits on or after the causal pathway.

Conditioning on post-treatment variables can change the causal estimand, induce selection bias or block part of the treatment effect.

Randomisation does not make post-treatment adjustment automatically causal.

44. Regression and randomisation inference can coexist

A regression coefficient can be used as a randomisation-test statistic. For each allowed treatment assignment, refit the regression or update the statistic, then compare the observed coefficient with its design-based reference distribution.

This separates two roles that are often fused: regression can improve adjustment and summarisation, while the randomisation mechanism supplies the inferential calibration.

Model diagnostics still matter because a poor statistic can waste power or target the wrong feature even if the test retains design-based validity under a sharp null.

45. Randomisation inference is not anti-model

Design-based inference is sometimes presented as the opposite of modelling. That is too simple. Models can estimate heterogeneous effects, adjust covariates, improve precision, describe outcomes and support extrapolation.

The distinctive idea is that the assignment mechanism can provide a trustworthy inferential anchor even when the outcome model is treated as secondary or working rather than literally true.

Strong analyses often compare design-based and model-based conclusions rather than turning methodology into a philosophical contest.

46. Intention-to-treat follows assignment

In a randomised trial with imperfect compliance, assignment Z remains randomised even when treatment received D is not.

An intention-to-treat analysis compares outcomes by assigned group. That preserves the causal protection of randomisation for the effect of assignment or treatment policy as delivered under real compliance.

Comparing people who actually took treatment with those who did not can reintroduce confounding because compliance behaviour is not usually random.

47. Noncompliance creates a new causal question

If the scientific question concerns the effect of treatment received rather than assignment, randomisation can still help through instrumental-variable and complier-effect frameworks under additional assumptions.

Those assumptions—exclusion, monotonicity and relevance in common formulations—are not supplied by randomisation alone.

Randomisation is an instrument for treatment received, not a guarantee that every post-assignment comparison is unbiased.

48. Attrition can damage a randomised experiment

If outcomes are missing after randomisation, the observed subset may no longer preserve the original treatment–control comparability.

Differential dropout by treatment and potential outcome is especially problematic. A randomisation test performed only on complete cases can be exact for the observed subset under a narrow null while answering a distorted scientific question.

Prevention, follow-up, missingness reporting, weighting, imputation and sensitivity analysis may be needed. Randomisation protects assignment, not observation.

49. Missing outcomes and missing covariates are different problems

A missing baseline covariate can complicate adjustment while leaving unadjusted randomised comparison possible. A missing outcome directly removes the endpoint needed for causal comparison.

Randomisation-based methods can be combined with imputation or weighting, but the missing-data model then becomes part of the analysis.

See How Missing Data Analysis Works for the wider missingness framework.

50. Interference breaks the simplest potential-outcome setup

The simple Yi(1), Yi(0) notation assumes one unit’s outcome depends on its own treatment but not on everyone else’s assignments.

In classrooms, social networks, infectious processes, teams and markets, one unit’s treatment can affect another unit. Then potential outcomes depend on a broader assignment vector or exposure mapping.

A randomisation test can still be built, but the null and statistic must reflect the interference structure. “No effect on any unit” may remain sharp; partial or spillover nulls require more careful specification.

51. Spillovers are effects, not nuisance by default

If treating one student changes peer outcomes, calling that dependence a statistical inconvenience misses the substantive mechanism. The spillover may be part of what the intervention does.

Designs can randomise saturation, clusters, peers or encouragements to identify direct and indirect effects.

Randomisation inference is especially natural for such designs because the assignment structure is explicit. But the potential-outcome mapping must expand to represent the relevant exposure.

52. Cluster randomisation is not the same as interference

Cluster randomisation assigns groups. Interference describes causal dependence among units. The two often coexist but are conceptually distinct.

A cluster design may be chosen precisely because spillover within clusters is expected. Alternatively, clusters may be administrative units while individuals would not interfere if assigned separately.

Analysis should state why clustering exists: assignment logistics, contamination control, shared exposure, interference, or another reason.

53. Unequal cluster sizes change the weighting question

If one treated school has 2,000 students and another has 100, a cluster-level mean gives them equal weight while an individual-level mean weights the large school more heavily.

Neither is automatically correct. They correspond to different estimands: an average cluster effect versus an average individual effect, among other possibilities.

Randomisation inference calibrates the statistic under the cluster assignment mechanism, but the statistic must still encode the intended target population and weighting.

54. Small numbers of clusters make asymptotics fragile

When only a small number of clusters is randomised, cluster-robust standard errors and large-sample approximations can perform poorly.

Design-based randomisation tests can remain exact for sharp nulls because they enumerate or sample the actual cluster assignments.

The price is coarse p-value resolution and the need for a statistic that handles cluster size, stratification and outcome type appropriately.

55. Randomisation unit ≠ measurement unit ≠ analysis unit

A school can be randomised, students measured and school-level summaries analysed. Or school can be randomised, student outcomes analysed with cluster-aware statistics.

Confusing these levels is a major source of pseudoreplication. Ten thousand student records do not create ten thousand independent treatment assignments if treatment was assigned to ten schools.

The assignment mechanism tells us where independent randomisation information entered the study.

56. Multi-arm experiments

Experiments can assign three or more treatments. The assignment mechanism then defines the permitted counts and arrangements across arms.

Randomisation tests can use omnibus statistics, pairwise contrasts or planned contrasts. Multiple pairwise tests create multiplicity and should be adjusted when familywise claims are made.

Constrained randomisation in multi-arm cluster trials is an active methodological area because covariate balance and small cluster counts interact strongly with inference.

57. Factorial experiments

Factorial designs randomise combinations of factors and estimate main effects and interactions. The randomisation space reflects the factorial assignment structure.

A randomisation test can target a sharp null for one factor, all factors, or particular interaction structures depending on the design and potential-outcome definition.

Factorial randomisation illustrates a general principle: “treatment label” can be multidimensional. The inference must match how factor combinations were assigned.

58. Crossover and within-unit randomisation

In crossover designs, the same unit can receive multiple conditions over periods, with treatment sequences randomised.

Valid randomisation inference permutes or reassigns sequences according to the crossover design, not individual observations across periods without regard to subject.

Carryover, period effects and washout become substantive assumptions. Randomisation protects sequence assignment but cannot make carryover vanish.

59. Pairwise sign flipping is a randomisation mechanism when the design makes it one

In a matched-pair randomised experiment with one treated member per pair, switching which member is treated is equivalent to flipping the sign of the within-pair treatment contrast under a sharp null.

This creates a simple exact reference distribution over 2K sign patterns for K pairs.

A sign-flip test outside that design needs a symmetry or exchangeability assumption. The computation may look identical while the justification changes.

60. Permuting residuals is not the same as permuting treatment

Regression settings sometimes use residual-permutation schemes to test partial effects while preserving nuisance structure.

Different algorithms—such as permuting raw outcomes, residuals under a reduced model, or treatment labels—rely on different assumptions. They are not interchangeable simply because all generate shuffled datasets.

When real random treatment assignment is available, label reassignment according to the design is usually the clearest design-based route. Residual permutation belongs to a broader permutation-inference toolbox.

61. Multiple testing can use the randomisation distribution

If many outcomes or hypotheses are tested, randomisation can generate their joint null distribution. Procedures based on the maximum test statistic can control familywise error while respecting dependence among outcomes.

This can be more efficient than treating every p-value as independent. But the family of hypotheses must be defined carefully, and adjusted inference should match the scientific reporting plan.

See How Multiple Testing and Sequential Analysis Work for the wider multiplicity framework.

62. Balance checks after randomisation

Baseline balance tables are useful descriptively. Formal significance tests of baseline differences are often less useful because randomisation already tells us differences arose by chance under the design.

A randomisation distribution can show whether a balance statistic is unusual relative to the assignment mechanism. But using outcome-blind balance information to understand chance imbalance is different from deciding whether randomisation “worked”.

Randomisation is a procedure, not a promise that every realised covariate difference will be small.

63. Placebo outcomes and negative controls

In some designs, pre-treatment outcomes or outcomes that treatment cannot plausibly affect can be used as diagnostic checks.

Randomisation inference can evaluate whether treatment assignment is associated with such placebo variables more strongly than expected by chance.

A failed placebo test does not automatically prove manipulation or bias; with many diagnostics, chance anomalies occur. A systematic pattern can nevertheless reveal data or implementation problems.

64. Randomisation checks should not condition on outcomes

Once outcomes are used to decide which assignments “count” as comparable, the analyst risks changing the reference distribution in an outcome-dependent way.

Restricted designs should be defined before outcomes are seen. Conditioning rules used for inference should arise from the design or a pre-specified statistical principle.

The reference distribution is evidence infrastructure. It should not be rebuilt after seeing which version is favourable.

65. Pre-analysis plans strengthen randomisation inference

Because randomisation tests permit many possible statistics, tails, covariate adjustments and subgroup definitions, pre-analysis plans reduce outcome-driven researcher degrees of freedom.

Pre-specify the primary estimand, primary statistic, assignment mechanism, treatment of missing data, covariate adjustment, clustering, multiplicity and Monte Carlo settings where practical.

Exploratory analyses remain valuable when labelled exploratory. Transparency is the repair for flexibility, not pretending flexibility did not occur.

66. Binary outcomes

For binary outcomes, statistics can include risk difference, risk ratio, odds ratio, treated event count or regression-based scores.

Under a Fisher sharp null, observed binary outcomes are fixed and treatment assignments are varied according to design. Exactness does not require logistic regression.

Confidence intervals for non-zero effects can be more complicated because many effect measures do not define simple sharp nulls for every unit.

67. Count outcomes

Counts may be skewed, zero-heavy and exposure-dependent. A raw mean difference may still be a valid randomisation statistic but can be inefficient or hard to interpret.

Rates, transformed counts or regression scores can be used when appropriate. The randomisation distribution should preserve the design and any fixed exposure structure.

Outcome modelling and design-based calibration can be combined rather than treated as competitors.

68. Time-to-event outcomes

Survival outcomes introduce censoring and time-dependent information. Test statistics can include log-rank-type scores or model-derived quantities.

Randomisation-based cluster-trial research has developed confidence-interval procedures that accommodate right- and interval-censored outcomes while respecting cluster assignment.

Censoring must still be understood. Randomisation of treatment does not randomise the censoring process.

69. Quantiles and distributional effects

Treatment can change spread, tails or distribution shape even when the mean changes little. Randomisation tests can target statistics sensitive to medians, quantiles, rank distributions or Kolmogorov-type differences.

The null must be stated carefully. “No effect on the median” is not a sharp null and does not by itself impute missing potential outcomes.

Distributional questions often need asymptotic randomisation theory, studentisation or modelling beyond the simplest Fisher test.

70. Weak-null randomisation inference needs more care

Under a weak null such as zero average effect, potential outcomes are not fully known. A naive sharp-null permutation of a non-studentised statistic may not control error under heterogeneous treatment effects.

Studentised statistics and asymptotic randomisation theory can produce valid tests for broader nulls under suitable designs.

This is one of the most important boundaries in advanced randomisation inference: exact Fisher logic does not automatically extend to every composite causal null.

71. Power still matters

An exact test can be exactly underpowered. Small samples, coarse assignment spaces, noisy outcomes and weak statistics can make real effects difficult to detect.

Blocking, covariate adjustment, repeated measurements, stronger outcome reliability and larger sample size can improve power.

Exactness protects false-positive calibration under the null. It does not guarantee informative evidence under alternatives.

72. Sample-size planning can use the randomisation design

Power simulations can repeatedly generate potential outcomes under plausible effect scenarios, apply the planned assignment mechanism and run the intended randomisation analysis.

This directly evaluates the design and statistic together. It is especially useful for blocked, clustered or restricted randomisation where closed-form power formulas may be awkward.

See How Statistical Power and Sample Size Planning Work for the wider planning framework.

73. Finite-population inference and superpopulation inference are different

Randomisation inference can make statements about the fixed units actually randomised. Researchers often want to generalise to a larger population, future units or other settings.

Random assignment supports internal causal comparison. Random sampling or another transportability argument supports population generalisation.

A perfectly randomised experiment on an unrepresentative convenience sample can have strong internal validity and limited external validity.

74. Random assignment ≠ random sampling

Random assignment decides who receives which treatment among study units. Random sampling decides which units enter the study from a larger population.

These are separate mechanisms with separate inferential jobs. Confusing them can turn a local causal result into an unjustified population claim.

See How Surveys and Sampling Work for population-sampling logic.

75. External validity is not supplied by an exact p-value

An exact randomisation p-value can answer a sharply defined question for the study design. It says nothing by itself about whether another country, age group, technology version or historical period will respond similarly.

Transport requires substantive knowledge, population comparison, effect-modifier analysis or additional studies.

See How External Validity and Evidence Transfer Work.

76. Sensitivity to the assignment mechanism

In a well-documented experiment, the assignment mechanism should be known. In natural experiments or observational settings, researchers may argue that an institutional rule approximates random assignment.

Then the randomisation model becomes an assumption to test and defend. If the true mechanism differs, the reference distribution can be wrong.

Randomisation inference is strongest when randomisation was actually implemented, recorded and auditable.

77. Natural experiments require mechanism reconstruction

Some real-world rules assign exposure using lotteries, thresholds, rotations or administrative procedures that contain chance-like elements.

Researchers can sometimes reconstruct the assignment mechanism and perform randomisation inference. The burden is high: which assignments were possible, with what probabilities, and were actors able to manipulate the process?

Design-based language should not be used merely because an allocation rule looks complicated or arbitrary.

78. The common bug: shuffling at the wrong level

Most catastrophic randomisation-test errors are design errors disguised as code.

79. The second common bug: recomputing the wrong statistic

If the observed analysis adjusts for blocks, weights, baseline covariates or cluster size, each randomised replicate must apply the same analysis rule.

Do not compare an adjusted observed statistic with an unadjusted permutation distribution. Do not freeze model quantities that should be recomputed under reassignment unless the method explicitly requires it.

The randomisation distribution must reproduce the analysis pipeline, not only the label shuffle.

80. The third common bug: counting permutations incorrectly

When exact enumeration is used, duplicate assignments created by repeated values should not be confused with duplicate treatment vectors. The randomisation unit is assignment, not unique numeric outcome arrangement.

When Monte Carlo sampling is used, clarify whether the observed assignment is included, whether sampling is with or without replacement, and how ties at the observed statistic are counted.

These details can matter most precisely when p-values are small or highly discrete.

81. Reproducibility requirements

An exact inferential idea can still become irreproducible through an undocumented computational implementation.

82. A complete randomisation-inference audit

  1. What unit was randomised?
  2. Which assignments were legally possible?
  3. Were they equally likely?
  4. Were blocks, strata, pairs, clusters or restrictions used?
  5. Was assignment implemented as planned?
  6. What causal null is being tested?
  7. Is that null sharp enough to impute missing potential outcomes?
  8. What statistic targets the scientific alternative?
  9. Is the observed statistic computed exactly as in every replicate?
  10. Is enumeration complete or Monte Carlo?
  11. How are Monte Carlo error and ties handled?
  12. What makes the tail rule one- or two-sided?
  13. Are outcomes missing?
  14. Was treatment delivered as assigned?
  15. Can units interfere?
  16. Are post-treatment variables used?
  17. Does weighting match the estimand?
  18. Are multiple hypotheses being tested?
  19. Does the conclusion concern the study units or a larger population?
  20. What result would cause the design-based claim to be revised?

83. Practice problem: exact four-of-eight test

Eight outcomes are 10, 8, 7, 6, 5, 4, 3, 1. Four units were assigned to treatment, producing treated outcomes 10, 8, 7, 6. Under a completely randomised design and Fisher sharp null, how many legal assignments exist and what is the observed mean difference?

Answer: C(8,4) = 70 assignments. Treated mean = 7.75, control mean = 3.25, difference = 4.50.

84. Practice problem: matched pairs

Three matched pairs each have exactly one treated unit. How many assignments belong to the exact design?

Answer: 2³ = 8. Each pair contributes one binary treatment flip. A six-unit unrestricted shuffle would be invalid.

85. Practice problem: cluster randomisation

Ten schools are randomised with five assigned treatment. Each school contains 200 students. How many independent assignment units exist?

Answer: ten schools. There are C(10,5) = 252 simple cluster assignments. The 2,000 students are outcome units, not 2,000 independent treatment assignments.

86. Practice problem: restricted randomisation

An experiment accepts only allocations with a pre-specified balance score below a threshold. Should the randomisation test include rejected allocations?

Answer: generally no. The accepted set defines the realised assignment mechanism. Inference should reproduce the restriction unless a different estimand or conditioning argument is explicitly justified.

87. Practice problem: zero average effect versus sharp null

Two units have effects +5 and −5. Is the average treatment effect zero? Is Fisher’s sharp null true?

Answer: the average effect is zero, but the sharp null is false because neither unit has zero effect.

88. Practice problem: Monte Carlo p-value

You sample B = 9,999 legal random assignments and observe 49 statistics at least as extreme as the actual statistic. Using the +1 correction, what p-value is reported?

Answer: (49 + 1)/(9,999 + 1) = 50/10,000 = 0.005.

89. Practice problem: attrition

Twenty per cent of treated units and two per cent of control units lack outcome data. Does the original random assignment automatically make a complete-case comparison unbiased?

Answer: no. Differential outcome observation can break comparability among complete cases. Missingness requires its own analysis and sensitivity reasoning.

90. Practice problem: interference

Students share study materials, so one student’s assignment can affect classmates. What assumption in the simple Yi(1), Yi(0) setup is threatened?

Answer: no-interference. Potential outcomes may depend on classmates’ assignments, so the exposure mapping or design must represent spillovers.

91. Practice problem: random assignment versus random sampling

A perfectly randomised experiment recruits only volunteers from one specialised school. What does randomisation protect well, and what remains uncertain?

Answer: randomisation supports causal comparison between assigned groups within the study. Generalisation to other schools or populations remains a separate external-validity question.

92. Practice problem: noncompliance

Some treatment-assigned participants do not take treatment, and some control-assigned participants obtain it elsewhere. Which comparison preserves the original randomisation most directly?

Answer: intention-to-treat by assignment. A treatment-received comparison requires additional causal assumptions.

93. Practice problem: wrong shuffle

A blocked experiment randomised treatment within four grade levels. The analysis permutes treatment labels across all students. What is wrong?

Answer: the permutation distribution includes allocations the experiment could not have generated. Labels should be reassigned within the original grade blocks according to the design.

94. Practice problem: interpretation

An exact randomisation p-value is 0.03. What does it not mean?

Answer: it does not mean there is a three per cent probability the null is true, a 97 per cent probability the treatment works, or a three per cent chance of non-replication. It is a tail probability under the specified null and assignment mechanism.

95. Common failure modes

96. A practical workflow

  1. Recover the design. Obtain the actual assignment protocol, not a verbal summary.
  2. Identify the randomisation unit. Individual, pair, cluster, sequence or another unit.
  3. Reconstruct the assignment space. Include restrictions and probabilities.
  4. Define the causal estimand. Sharp null, ATE, constant effect, distributional effect or another target.
  5. Select the statistic. Match the outcome and scientific alternative.
  6. Handle missingness and compliance explicitly.
  7. Represent interference if scientifically plausible.
  8. Choose exhaustive or Monte Carlo computation.
  9. Pre-specify tails, adjustment and multiplicity.
  10. Compute and audit the randomisation distribution.
  11. Report effect estimates as well as p-values.
  12. Separate finite-study conclusions from wider generalisation.

97. What randomisation inference is especially good at

98. What randomisation inference does not solve by itself

99. The deepest principle: design is part of the evidence

Randomisation inference is powerful because it refuses to treat the design as a historical footnote. The random assignment rule is not merely how the data happened to be collected. It is part of the probability structure that makes a causal comparison credible.

This changes how we read an experiment. We ask not only what the treatment and control means are, but which other allocations were possible. We ask whether pairs, blocks or clusters constrained assignment. We ask whether the analysis recreated those possibilities faithfully.

The result is a form of inference with unusual accountability: if we know the design, we can often reconstruct exactly where the p-value came from.

100. The world return: from chance allocation to causal evidence

Randomisation begins as a physical or computational act: a lottery, a random number generator, a shuffled list, a within-block assignment. That act creates a set of possible worlds in which the same study units could have received different treatments.

Randomisation inference returns to those possible worlds. Under a stated null, it asks what outcomes our chosen statistic would have produced across the assignments the experiment could genuinely have made. The observed experiment becomes one realised point inside a design-defined universe.

That is why the method is more than a computational trick. It is a discipline of respecting the experiment’s counterfactual architecture. The strongest conclusion is not “we shuffled the data 10,000 times”. It is “we reconstructed the assignments the study could have generated, applied the same analysis to each one, and measured how exceptional the observed result was under the causal null we actually meant.”

Randomisation inference works when the analysis remembers exactly how chance entered the experiment.

Advanced Randomisation Inference: From the Assignment Law to Auditable Causal Decisions

The elementary randomisation test is easy to describe: hold the outcomes fixed under a sharp null, reshuffle treatment according to the experiment, recompute a statistic, and count how often a result at least as extreme appears. The advanced discipline begins when each phrase in that sentence becomes a technical object. What exactly is the probability law over assignments? Which estimand is the statistic trying to recover? Which assignments are impossible? What if treatment probabilities differ? What if effects differ across units? What if whole clusters are assigned, outcomes are missing, or one person’s treatment changes another person’s outcome?

The purpose of this section is not to make randomisation inference look complicated. It is to preserve the original simplicity when the design becomes complicated. The governing rule remains the same: the reference distribution must be generated by the probability mechanism that actually created treatment assignment, and the statistic must still answer the scientific question that matters.

The assignment law in notation

Let Z denote the full treatment-assignment vector and let Ω be the set of assignments that the design could produce. An assignment mechanism can be written abstractly as π(z) = Pr(Z = z), for z in Ω. Complete randomisation is the special case where all assignments with the required treated count have equal probability. Other designs can assign unequal probabilities or exclude large parts of the mathematical treatment space.

This notation clarifies a crucial point. Randomisation inference is not fundamentally “take the observed labels and permute them”. It is integrate or sum over the assignment distribution π(z). Equal-weight label permutations are correct only when the design gives equal probability to those treatment vectors. When π(z) varies, the randomisation distribution must carry those unequal weights.

For a test statistic T(z,Y), a one-sided randomisation p-value under a sharp null can be expressed conceptually as the total assignment probability of all legal z whose statistic is at least as extreme as the observed statistic. In an equal-probability complete randomisation this reduces to a count divided by the number of assignments. In an unequal-probability design it is a probability-weighted sum, not a simple fraction of unique permutations.

The support of the design matters before any calculation

The set Ω is the support of the assignment mechanism. In a matched-pair trial, Ω contains only assignments with one treated unit per pair. In a blocked design, Ω preserves the block-specific treatment counts. In a cluster trial, Ω is defined over cluster labels. Under rerandomisation, Ω can contain only allocations that pass the pre-specified balance criterion.

A permutation program that samples outside Ω is answering a different experiment. This error can be subtle because the code still runs, produces a smooth histogram and returns a number called a p-value. The problem is conceptual, not computational: the simulated worlds include assignments the study design prohibited.

A reliable implementation should therefore begin with a function that generates legal assignments, not with a generic shuffle routine. The analysis becomes easier to audit when the design generator is a first-class part of the code.

Weighted randomisation p-values under unequal assignment probabilities

Suppose assignment A had probability 0.20, B had probability 0.10 and other legal assignments had their own probabilities. If A and B are the only assignments at least as extreme as the observed result, the tail probability is not automatically 2 divided by the number of legal assignments. It is the sum of the design probabilities attached to the qualifying assignments, subject to the exact test definition.

This becomes important under Bernoulli designs with unit-specific probabilities, adaptive designs, covariate-adaptive randomisation or administrative lotteries where participants have unequal selection chances. Equal-weight permutation can be badly calibrated even when every treatment vector in the sample looks superficially comparable.

The assignment file should therefore preserve more than final treatment labels. Where probabilities differ, preserve enough information to reconstruct those probabilities. A final CSV containing only “treated” and “control” can destroy part of the inferential design.

Horvitz–Thompson reasoning: inverse probability as design information

When treatment probabilities differ across units, design-based estimation can use inverse-probability logic. A Horvitz–Thompson-type estimator weights observed treated outcomes by the inverse of their treatment probabilities and observed control outcomes by the inverse of their control probabilities. Units that were unlikely to receive the assignment they actually received carry more design weight.

The principle is familiar from unequal-probability sampling: an observation representing a rare design event can stand for more of the assignment space. The estimator can remain unbiased under the assignment mechanism even when treatment probabilities differ, provided the probabilities are correctly specified and positive.

Large inverse weights can create high variance. This is not merely a numerical inconvenience. It signals weak design overlap: some units had very little chance of one treatment condition. Design should therefore be judged not only by unbiasedness but by whether the treatment probabilities support stable comparison.

Hájek-style normalisation trades exact unbiasedness for stability

Ratio or Hájek-style estimators normalise inverse-probability weights within treatment arms rather than using raw Horvitz–Thompson totals. They can reduce variance and produce more interpretable weighted means, especially when treatment probabilities vary materially.

The cost is that exact finite-sample unbiasedness can be lost. In many applications the bias is small relative to the variance improvement, but that is a statistical trade-off rather than a free upgrade.

Randomisation inference can still calibrate a Hájek-type statistic by recomputing it across the assignment mechanism. Again, validity and estimand are separate questions: the design supplies the randomisation law, while the estimator defines what feature of the outcomes is being summarised.

The Neyman variance formula reveals treatment-effect heterogeneity

Under complete randomisation with nT treated and nC control units, the randomisation variance of the difference-in-means estimator contains three conceptual pieces: finite-population variance of treated potential outcomes divided by nT, finite-population variance of control potential outcomes divided by nC, and a subtraction involving the finite-population variance of individual treatment effects divided by N.

The final term is important because heterogeneous treatment effects can reduce the randomisation variance of the average-effect estimator relative to a formula that ignores that covariance structure. Yet S²τ is generally not identifiable from observed outcomes: each unit reveals only one potential outcome.

The familiar Neyman conservative variance estimator drops the negative S²τ/N term and replaces the potential-outcome variances with observed arm variances. “Conservative” here has a precise design-based meaning under the framework. It does not imply every finite-sample confidence interval is automatically perfect under every design or outcome distribution.

Effect heterogeneity is not a nuisance term to be wished away

If treatment effects differ across units, the average treatment effect can remain a useful estimand while hiding important structure. An intervention might help low-baseline units and harm high-baseline units, or benefit one site while doing little elsewhere.

Fisher’s sharp null is especially sensitive to any individual-level departure from zero. A weak null about the average can hold even while treatment-effect heterogeneity is large. This explains why different design-based tests can answer different causal questions without contradiction.

Subgroup and heterogeneity analyses should be planned carefully. Searching across many subgroups after seeing outcomes can manufacture apparently dramatic interactions. Randomisation gives a probability foundation; multiplicity and model-selection problems still remain.

Why naive permutation can fail under a weak null

Under the Fisher sharp null, every missing potential outcome is known, so treatment can be reassigned exactly. Under a weak null such as zero average effect, individual effects may differ and the missing potential outcomes are not known. Simply applying the sharp-null permutation distribution to a raw mean difference can therefore have the wrong sampling behaviour when variances or treatment effects differ.

This is one reason advanced randomisation inference uses studentised statistics and asymptotic randomisation theory. A statistic scaled by an appropriate estimated standard error can have a permutation distribution that approximates the correct weak-null distribution even when the raw outcomes are not exchangeable in the naive sense.

The distinction protects a common boundary: exact Fisher test for a sharp null ≠ automatically exact test for every average-effect null. The computation may look almost identical while the theorem supporting it is different.

Studentisation is a calibration device

Suppose treated outcomes are much more variable than control outcomes. Permuting a raw mean difference treats the observed outcomes as exchangeable under label switching, an assumption that can fail under a weak null. A Welch-type studentised statistic incorporates arm-specific variance and can make the randomisation distribution better match the target null distribution.

Studentisation does not fix a wrong randomisation unit, unmeasured interference or post-treatment conditioning. It calibrates a statistic; it does not repair a broken design.

A useful implementation audit therefore separates two questions: “Did we generate the right assignments?” and “Did we recompute a statistic whose null behaviour supports the claim?” Both must be answered correctly.

Conditional randomisation and the logic of relevant comparisons

Conditional randomisation inference compares the observed assignment with a subset of legal assignments sharing a chosen property. For example, under Bernoulli assignment an analyst might condition on the realised number treated. In a rerandomised experiment the conditioning set may be the allocations satisfying the same covariate-balance rule.

The intuition is similar to conditioning on an ancillary feature: once a design feature is observed, compare the experiment with alternative assignments that preserve that feature rather than mixing in assignments that are less relevant to the realised design state.

Conditioning can improve power and interpretability, but it must not become outcome-driven cherry-picking. The conditioning rule should arise from the design or be pre-specified from covariates and assignment information that existed before outcome inspection.

Rerandomisation and Mahalanobis balance

A common rerandomisation idea measures covariate imbalance using a Mahalanobis distance between treatment and control baseline means and accepts only allocations below a threshold. The design intentionally excludes highly imbalanced assignments before treatment is delivered.

That improves covariate balance by construction. It also means the randomisation distribution is not the ordinary complete-randomisation distribution. A valid design-based test should sample from assignments that would have passed the same acceptance rule.

The acceptance threshold belongs to the protocol, not the post-hoc analysis. Choosing it after looking at outcomes converts design improvement into outcome-informed selection.

Pair matching changes both power and the legal universe

Matched pairs can dramatically reduce noise when pair members have similar potential outcomes. The inferential benefit comes from comparing treatment assignments within the matched structure rather than across arbitrary units.

For K independent pairs with one treated unit per pair, the assignment space has 2K allocations. With ten pairs, that is 1,024 legal treatment patterns. The minimum attainable two-sided exact p-value can therefore still be coarse relative to very large individually randomised experiments.

Matching is not automatically beneficial if pairs are poorly constructed. A weak match can add operational complexity without materially reducing outcome variation. Design quality should be judged by how the matching variables relate to the outcome and implementation.

Block weights define which average the analysis estimates

In blocked experiments, block-specific effects can be aggregated using weights proportional to block size, equal block weights or other design-based choices. These weighting schemes can estimate different causal averages when blocks differ in size.

A large school and a small school should not receive equal weight if the estimand is the average student effect unless the design or target population says otherwise. Equal weighting may instead correspond more closely to an average school effect.

The randomisation distribution can be correct under either statistic. Correct design calibration does not answer the separate question of which population average the statistic represents.

Cluster size can be part of the treatment effect problem

Cluster size is sometimes merely structural and sometimes informative. Large clinics can differ systematically from small clinics. Large classes can have different baseline outcomes or treatment responsiveness. When cluster size is related to potential outcomes, weighting choices become causal rather than cosmetic.

Recent 2026 cluster-trial work continues to emphasise that heterogeneity in cluster sizes and structures can materially distort conventional inference and that design-based benchmarking is valuable. That does not make one cluster estimator universally correct; it makes the estimand and weighting rule impossible to ignore.

A strong report states whether it targets the average individual, average cluster, cluster-period effect or another quantity, then chooses statistics and weights accordingly.

Small cluster counts create a granularity ceiling

Ten clusters with five treated generate only 252 assignments under simple complete cluster randomisation. If a two-sided statistic is perfectly symmetric, the smallest attainable exact two-sided p-value can be on the order of two assignments out of 252, about 0.00794, before any additional constraints or ties.

With fewer clusters the granularity becomes much coarser. This places an information ceiling on hypothesis testing. Thousands of individual observations inside clusters cannot manufacture new assignment patterns.

This is why cluster-trial planning should focus on number of clusters, allocation structure and cluster-size balance, not only total participant count. The participant count determines outcome information; the cluster count determines where treatment randomisation entered.

Cluster-level versus individual-level statistics

A simple cluster-level analysis computes one outcome summary per cluster and applies randomisation inference to those cluster summaries. This makes the assignment structure transparent and can work well with few clusters. It may sacrifice information when individual-level covariates are highly predictive or cluster sizes vary substantially.

Individual-level model-assisted statistics can preserve more information while the reassignment still occurs at cluster level. The model can adjust baseline variables, period effects or precision weights; the randomisation engine still moves whole clusters according to the design.

The distinction echoes the entire article: analysis can be sophisticated without forgetting where randomisation happened.

Stepped-wedge designs require period-aware statistics

In a stepped-wedge trial, more clusters receive treatment as time progresses. A raw treated-versus-control difference can therefore confound intervention status with calendar period because late periods contain more treated observations than early periods.

Randomisation inference solves the assignment part by reassigning clusters to permissible sequences. The statistic still needs to account for period structure so it does not attribute secular time trends to treatment.

Current randomisation-based stepped-wedge methods exploit exactly this division of labour: the design defines the reference distribution; a period-aware statistic targets the marginal treatment effect.

Confidence interval inversion is a search over causal worlds

To invert a randomisation test for a constant additive effect τ, choose a candidate τ, impute the missing potential outcomes implied by that sharp hypothesis, run the randomisation test, and record whether τ is rejected. Repeat across a grid or use an efficient search algorithm.

The accepted τ values form a confidence set at the corresponding level. This is conceptually richer than attaching a normal-theory standard error to a point estimate because each candidate effect is evaluated through the experiment’s actual assignment mechanism.

The p-value function need not always behave as a perfectly smooth monotone curve in finite discrete designs. Confidence sets can inherit discreteness, asymmetry or even unusual shapes under complex statistics. Software should not assume the inversion problem is always solved by one symmetric plus-or-minus interval.

Discrete p-values and the temptation of mid-p

Exact randomisation p-values can be conservative because the finite assignment space may not permit a rejection probability exactly equal to α. Some statistical traditions use mid-p modifications that subtract part of the probability mass tied at the observed statistic.

Mid-p can improve average calibration or power in some discrete problems, but it gives up the same unconditional exactness guarantee as the ordinary tail probability. It should therefore be labelled as a modified procedure rather than described simply as “the exact randomisation p-value”.

For an educational library the important principle is transparency: discreteness is evidence about limited assignment information, not a defect that must always be smoothed away.

Monte Carlo precision can be planned before the analysis

When B independent assignments are sampled from the reference distribution, the Monte Carlo count of extreme assignments behaves approximately like a binomial count conditional on the observed data and test setup. If the true tail probability is p, the Monte Carlo standard error of the naive proportion is approximately sqrt[p(1−p)/B].

At p = 0.05 and B = 10,000, that standard error is about 0.00218. At B = 100,000 it falls to about 0.000689. These are simulation uncertainties, not sampling uncertainties from the experiment.

This allows computational planning. If the scientific interpretation would change between p = 0.049 and p = 0.052, a few hundred randomisations are inadequate. Increase B or use a sequential Monte Carlo procedure until the computational uncertainty is small relative to the decision.

Sequential Monte Carlo can stop when the decision is stable

A sequential Monte Carlo randomisation test samples assignments in batches and monitors evidence about the tail probability. If it becomes overwhelmingly clear that p is far above or below the decision threshold, computation can stop without spending resources on millions of additional assignments.

The stopping rule must be designed to preserve the intended error properties. Informally stopping because “the p-value looks small enough now” is another form of optional stopping.

This is a useful general lesson: computational efficiency is itself a statistical design problem when the computation is stochastic.

Randomisation-based maxT procedures preserve dependence across outcomes

Suppose an experiment measures twenty related outcomes. Testing each at 0.05 inflates the chance of at least one false positive. A maxT randomisation procedure computes all twenty test statistics under each reassignment, records the largest suitably standardised statistic, and compares each observed statistic with that joint null distribution.

Because the outcomes are permuted together under the same assignment, their dependence is preserved. This can be more powerful than corrections that ignore the correlation structure while still controlling a familywise error criterion under the procedure’s assumptions.

The hypothesis family must still be defined before inspecting results. Randomisation cannot rescue a family that expands every time an interesting outcome appears.

Model-assisted randomisation inference

A flexible prediction model can estimate outcomes from baseline covariates, and a randomisation statistic can then compare treatment groups using residuals or adjusted outcomes. If the model captures prognostic variation, the resulting statistic can be more powerful than the raw mean difference.

The design-based perspective gives the model a limited job. It helps compress baseline information and improve precision; the treatment randomisation remains the inferential anchor. This can reduce dependence on the literal truth of the outcome model.

Machine-learning adjustment raises additional issues: overfitting, data reuse, hyperparameter choice and computational cost across thousands of assignments. Cross-fitting or pre-specified training procedures can help, but every randomised replicate must reproduce the intended analysis rule consistently.

Regression adjustment should honour treatment interactions

In randomised experiments, regression adjustment can improve precision, but rigid common-slope models can behave poorly when covariate relationships differ by treatment arm. Including treatment-by-covariate interactions or using arm-specific adjustment can provide more robust design-based performance.

The point is not that one regression specification is universally mandatory. It is that “randomised” does not make every regression adjustment harmless. The adjustment procedure should be part of the pre-specified estimator and examined under randomisation.

A useful check is simulation under the planned design: generate plausible potential outcomes with treatment-effect heterogeneity, run the complete adjustment procedure, and examine bias, variance and confidence-interval coverage before the real outcome data are analysed.

Subgroup effects require interaction tests, not parallel significance stories

A treatment can be statistically significant in one subgroup and not significant in another even when the subgroup effects do not differ significantly. Comparing two p-values is not a test of interaction.

Randomisation inference can directly test an interaction statistic by reassigning treatment according to design and recomputing the difference in treatment effects across pre-specified subgroups.

Subgroup labels must be pre-treatment for ordinary causal interpretation. If subgroups are defined by post-treatment response, compliance or survival, the estimand changes and additional assumptions become necessary.

Non-inferiority and equivalence need more than failure to reject zero

Randomisation inference is often introduced through tests of no effect. Non-inferiority and equivalence ask different questions: whether an effect lies above a lower margin, below an upper margin, or inside a pre-specified equivalence region.

Failing to reject the sharp null of zero effect does not establish equivalence. A wide confidence interval can contain both meaningful benefit and meaningful harm.

Test inversion provides a natural route: construct a design-based confidence set for the relevant effect parameter and compare it with the pre-specified non-inferiority or equivalence margins. The margin itself is a substantive decision, not a number the randomisation distribution can choose.

Treatment misclassification is different from noncompliance

Noncompliance means assigned and received treatments differ. Treatment misclassification means the recorded assignment or received-treatment variable is wrong. The first is a behavioural or implementation phenomenon; the second is a measurement failure.

Randomisation inference relies on knowing the realised assignment. If the assignment record itself is corrupted, the reference distribution can be anchored to the wrong treatment vector.

Preserve randomisation logs, allocation-system records and audit trails independently of downstream data entry. The assignment mechanism is evidence and should be protected like primary measurement data.

Broken allocation concealment can compromise the design before treatment begins

A sequence can be generated randomly and still be compromised if investigators can predict the next assignment and selectively enrol participants. Allocation concealment protects the randomisation process from manipulation before assignment.

If enrolment depends on knowledge of upcoming assignments, the final treatment groups may not have arisen from the advertised mechanism. A later permutation test using the planned design cannot restore an assignment process that was not actually followed.

Design-based inference therefore depends on design integrity, not merely design documentation. The randomisation log should be consistent with the operational history of enrolment and assignment.

Interference requires an exposure mapping

When outcomes depend on other units’ assignments, the full vector Z can be too large to interpret directly. An exposure mapping compresses the assignment vector into a scientifically meaningful state for each unit: untreated with no treated neighbours, untreated with some treated neighbours, treated in a low-saturation cluster, treated in a high-saturation cluster, and so on.

The mapping is a causal model. If it omits the feature through which spillovers operate, the estimated “indirect effect” may combine different exposure states. Network distance, classroom membership, household contact and geographic proximity can imply different mappings.

Randomisation inference can compare assignments that change these exposure states while respecting the original treatment design. The design provides variation; the exposure mapping defines which causal contrasts are meaningful.

Randomised saturation designs identify direct and spillover effects

A saturation design can randomise the fraction of units treated within groups and then randomise individuals inside groups. This creates variation in both own treatment and peer treatment intensity.

Such a design can support direct effects, indirect spillover effects and total effects under appropriate exposure assumptions. A conventional two-arm individual-level test would discard much of the deliberate design information.

This illustrates the recurring principle at a larger scale: when the experiment randomises a structured treatment mechanism, the analysis should preserve that structure rather than flatten it into one binary label.

Attrition sensitivity can be embedded inside the design analysis

When outcomes are missing, analysts can supplement the primary randomised comparison with sensitivity analyses that vary assumptions about the unseen outcomes. For binary outcomes this can include best-case and worst-case bounds. For continuous outcomes it can use bounded shifts, pattern-mixture assumptions or inverse-probability weighting.

The assignment mechanism remains known, but the complete outcome schedule is not. Sensitivity analysis therefore has two layers: randomisation uncertainty from assignment and missing-data uncertainty from unobserved outcomes.

These uncertainties should not be merged into one unexplained standard error. Report which part is design-based and which part depends on unverifiable missingness assumptions.

Noncompliance and randomisation-based instrumental variables

When assignment affects treatment received but compliance is imperfect, assignment can serve as an instrument. Under additional assumptions, the ratio of the intention-to-treat effect on outcome to the intention-to-treat effect on treatment received can estimate a complier average causal effect.

Randomisation supplies the exogenous instrument. It does not supply the exclusion restriction, monotonicity or stable treatment-version assumptions needed for the complier interpretation.

Randomisation tests can target sharp instrumental-variable hypotheses or invert tests for effect-ratio parameters, but the causal interpretation remains conditional on those substantive assumptions. An exact p-value cannot make an exclusion restriction true.

Natural experiments need an assignment-mechanism audit before any permutation

A lottery is the cleanest natural experiment because the assignment probabilities can sometimes be reconstructed directly. Other institutional mechanisms are murkier: threshold rules with discretionary exceptions, rotating queues, oversubscribed programmes, weather shocks or administrative timing.

Before applying randomisation inference, reconstruct who was eligible, which assignments were possible, whether actors could manipulate timing or eligibility, whether probabilities varied, and whether treatment was assigned at individual, household, school or geographic level.

If the mechanism cannot be defended, describe the study as observational and use the appropriate causal tools. Calling an uncertain mechanism “as-if random” does not make it so.

Permutation diagnostics can test the randomisation implementation

Before analysing outcomes, the same assignment generator can be used to study baseline balance statistics, treatment counts, cluster-size distributions and other design properties. The realised assignment should look possible under the documented mechanism.

An extremely unusual baseline balance statistic is not proof of manipulation; rare assignments do occur. But several impossible or near-impossible design features can reveal coding errors, implementation deviations or an incorrectly reconstructed assignment mechanism.

This creates a useful audit sequence: verify the design generator before asking it to calibrate an outcome test.

Simulation can validate the randomisation code itself

A randomisation program should be tested under synthetic sharp-null data where the correct type-I error behaviour is known in principle. Repeatedly generate assignments from the design, apply the full test, and check whether rejection rates are consistent with the nominal level up to simulation error.

Then stress the code: unequal block sizes, repeated outcome values, missing clusters, extreme weights, zero variance within an arm, odd numbers of units, very small assignment spaces and restricted designs.

Software verification cannot prove the scientific assumptions, but it can prevent an implementation bug from masquerading as a methodological result.

A reproducible randomisation test has three seeds, not always one

In a modern computational experiment, several random-number streams can appear: the original treatment-assignment seed, a simulation seed used for Monte Carlo randomisation inference, and possibly a machine-learning or imputation seed used inside each analysis replicate.

These should be distinguished. Reusing one seed casually across nested random processes can create accidental dependence or make the audit trail confusing.

Reproducibility means another analyst can regenerate the same assignment space and analysis result from the documented protocol. It does not mean the original treatment assignment should be rerun; that historical assignment is fixed evidence once the experiment begins.

The assignment mechanism should be versioned like source code

Large trials sometimes change randomisation procedures during recruitment: new strata are added, sites open, allocation ratios change, blocks are exhausted or emergency rules are invoked. These changes can alter π(z).

A final analysis that assumes one static mechanism can then misrepresent the experiment. Preserve dated protocol versions, site-specific rules and the mapping from each recruited unit to the mechanism operating at its assignment time.

Randomisation inference is unusually sensitive to provenance because the design is the probability model. If the design history is lost, part of the inferential model is lost with it.

Protocol deviations should be classified before they are analysed

Not every deviation has the same consequence. A treatment delivered late differs from a treatment assignment generated outside the randomisation system. An outcome measured one day late differs from a participant enrolled after investigators knew the assignment.

Classify deviations by whether they affect assignment integrity, treatment delivery, outcome measurement, missingness or analysis. Intention-to-treat inference can often tolerate imperfect delivery while preserving the random assignment comparison. It cannot automatically tolerate corrupted assignment itself.

This classification helps determine which sensitivity analysis is relevant and prevents every protocol deviation from being treated as the same generic “violation”.

Randomisation inference can be a benchmark for model-rich analyses

Modern experiments often use generalized linear models, mixed models, generalized estimating equations, targeted estimators or machine learning. These methods can improve efficiency and accommodate complex outcomes, but they introduce modelling assumptions.

A design-based analysis can serve as a benchmark. If a sophisticated method and a transparent randomisation-based analysis agree materially, confidence in the substantive conclusion can increase. If they disagree, the disagreement becomes a diagnostic question rather than a reason to select the preferred answer.

The 2026 CARE framework for cluster-randomised trials explicitly advances this kind of design-based benchmarking logic in a modern trial-analysis context. The broader principle is durable: richer models should earn their added assumptions by changing precision or interpretation in a defensible way.

Design-based inference does not make modelling optional for generalisation

The experimental assignment can identify a treatment contrast for the randomised units. Generalising that contrast to another population often requires modelling effect modifiers, reweighting populations or combining experimental data with external information.

This creates a healthy division of labour. Use randomisation to protect the internal causal comparison. Use transport models, sampling weights and substantive knowledge to ask where that causal result should travel.

Do not weaken the internal design argument by asking it to prove external validity it was never built to provide.

When the randomisation test is less useful than the estimate

A study can have an enormous sample in which the sharp null is rejected decisively for a scientifically tiny effect. Another can have a small assignment space where p-values are coarse but the estimated effect and uncertainty are still decision-relevant.

Randomisation tests should therefore not become another p-value ritual. Report effect estimates, design-based uncertainty, clinically or operationally meaningful thresholds, and the randomisation p-value where it answers a useful hypothesis.

The test is strongest when it contributes to a decision: evidence of any effect, compatibility with a target effect, non-inferiority, robustness of a model-based result, or detection of assignment-sensitive conclusions.

A high-quality randomisation-inference report should be reconstructible

  1. Design: name the randomisation unit, allocation ratio, blocks, strata, pairs, clusters and restrictions.
  2. Assignment probabilities: state whether legal assignments were equally likely.
  3. Estimand: state the causal quantity of interest.
  4. Null: distinguish sharp from weak null hypotheses.
  5. Statistic: give the exact formula or analysis rule.
  6. Reassignment algorithm: explain how legal assignments were generated.
  7. Enumeration: report total legal assignments when exhaustive.
  8. Monte Carlo: report B, seed and tail-count convention when sampled.
  9. Tails: define one-sided or two-sided extremeness.
  10. Adjustment: state baseline covariates and model-assisted procedures.
  11. Clustering: show how the randomisation unit was preserved.
  12. Missingness: report attrition and assumptions used to address it.
  13. Compliance: separate assignment effects from treatment-received effects.
  14. Interference: state the no-interference assumption or exposure mapping.
  15. Multiplicity: identify hypothesis families and adjustments.
  16. Effect estimate: report magnitude, not only the p-value.
  17. Uncertainty: provide a design-based interval or confidence set when appropriate.
  18. External validity: state the population to which the conclusion is intended to apply.
  19. Code: preserve a reproducible implementation.
  20. Deviations: document departures from the assignment protocol.

Advanced worked example: unequal probabilities

Imagine four units with treatment probabilities 0.8, 0.6, 0.4 and 0.2 under independent Bernoulli assignment. A realised assignment of treated, treated, control, control does not have the same probability as every other two-treated allocation. Its assignment probability is 0.8 × 0.6 × 0.6 × 0.8 = 0.2304 because units 3 and 4 must be untreated.

An allocation treated, control, treated, control has probability 0.8 × 0.4 × 0.4 × 0.8 = 0.1024. Counting those allocations equally in an unconditional Bernoulli randomisation test would discard the design probabilities.

If an analyst conditions on exactly two treated units, the conditional probabilities among two-treated assignments must be renormalised from their original Bernoulli probabilities. Conditioning changes the reference distribution; it does not magically make all six two-treated assignments equally likely.

Advanced worked example: p-value granularity in a cluster trial

Ten clusters are completely randomised, five to treatment and five to control. There are 252 equally likely allocations. Suppose the observed statistic is so extreme that only the observed assignment and its complete treatment reversal are at least as extreme in absolute value.

The exact two-sided p-value is 2/252 ≈ 0.00794. Adding ten thousand more participants inside those same ten clusters does not create more assignment vectors. It can make the cluster summaries more precise, but the treatment-assignment granularity remains governed by ten clusters.

This example makes clear why “sample size” has multiple meanings in cluster experiments. Participant count, cluster count and assignment-space size answer different information questions.

Advanced worked example: Monte Carlo precision

Suppose the randomisation p-value is near 0.05. With B = 10,000 Monte Carlo assignments, the approximate simulation standard error at p = 0.05 is sqrt(0.05 × 0.95 / 10,000) ≈ 0.00218. A 95 per cent Monte Carlo interval based on a simple normal approximation would span roughly plus or minus 0.0043.

If that computational uncertainty is too large for the decision, increase the number of assignments. With B = 100,000, the standard error falls by sqrt(10), to about 0.000689.

The lesson is not to worship a threshold. It is to avoid presenting simulation noise as experimental evidence.

Advanced practice: diagnose the design before the statistic

Problem A. Twelve clinics are paired into six matched pairs and one clinic per pair is randomised to treatment. An analyst shuffles all twelve clinic labels while preserving six treated clinics. What is wrong?

Answer. The legal design has 2⁶ = 64 pairwise assignments, not C(12,6) = 924 unrestricted assignments. The analyst invented treatment allocations that break the matching protocol.

Problem B. Treatment probabilities vary by unit, but the analyst draws every treatment vector with equal probability. What assumption has been changed?

Answer. The assignment mechanism. The reference distribution no longer follows the design probabilities, so the resulting test is calibrated to a different experiment.

Problem C. A trial tests the weak null of zero average effect using an unstudentised sharp-null permutation distribution when treatment effects and variances are heterogeneous. What should be checked?

Answer. Whether the chosen permutation procedure is valid for the weak null. A studentised randomisation statistic or design-based asymptotic method may be needed; exact Fisher logic does not automatically transfer.

Problem D. A cluster trial has fifteen thousand participants but only eight randomised hospitals. Why might a conventional individual-level p-value look more certain than the design warrants?

Answer. Treatment was assigned eight times, not fifteen thousand times. Ignoring cluster assignment treats correlated outcomes as independent randomisation information and can dramatically understate uncertainty.

Problem E. A study rerandomised until baseline Mahalanobis distance was below a threshold but the analysis uses unrestricted complete randomisation. What information is discarded?

Answer. The acceptance rule that defined the actual assignment support. The randomisation distribution should usually preserve that restriction.

Problem F. A model-assisted statistic is fit once using the observed assignment and then treatment labels are shuffled without refitting the model. Is that always valid?

Answer. Not necessarily. The randomisation replicates must reproduce the analysis rule the method requires. Some procedures can freeze nuisance quantities by construction; others require refitting. The algorithm, not convenience, decides.

Problem G. The primary randomisation test gives p = 0.40 with a very wide effect interval. Can the study claim equivalence?

Answer. No. Failure to reject no effect does not establish a sufficiently narrow effect range. Equivalence or non-inferiority requires pre-specified margins and interval/test procedures targeted to those margins.

Problem H. A treatment affects peer behaviour, but the analysis treats each student’s outcome as depending only on their own assignment. What has been misspecified?

Answer. The potential-outcome exposure structure. An interference model or exposure mapping is needed to represent peer treatment.

The advanced release test

  1. Can the assignment mechanism be regenerated exactly from protocol records?
  2. Does the code generate only legal assignments?
  3. Does it attach the correct probability to each assignment?
  4. Does every replicate preserve pairs, blocks, strata, clusters and restrictions?
  5. Is the causal null sharp or weak, and is the test valid for that null?
  6. Does the statistic target the estimand rather than merely produce a convenient p-value?
  7. Are weights consistent with the intended individual- or cluster-level population?
  8. Does covariate adjustment use pre-treatment information and a reproducible rule?
  9. Are outcome missingness, noncompliance and interference treated as separate causal problems?
  10. Are Monte Carlo error and discrete p-value resolution visible?
  11. Can confidence intervals be traced to the same design logic as the test?
  12. Are multiplicity and subgroup searches accounted for?
  13. Has the implementation been validated under synthetic null cases?
  14. Are seeds, code versions and protocol versions preserved?
  15. Does the final claim stay inside the population and design that the evidence can support?

If those conditions are met, randomisation inference becomes more than an alternative way to calculate a p-value. It becomes an auditable chain from experimental design to causal claim.

The advanced compression

Randomisation inference is simplest when the experiment is simple, but its governing logic survives complexity. Represent the assignment law explicitly. Preserve its support and probabilities. Distinguish sharp from weak causal nulls. Use studentisation when the broader null requires it. Carry block, pair and cluster structure into every reassignment. Let weighting express the estimand. Treat Monte Carlo error as computational uncertainty. Model interference, missingness and noncompliance rather than pretending randomisation erased them.

The method’s deepest strength is accountability. The reference distribution is not a generic statistical fiction. It is a map of what the experiment was allowed to do. When the analysis remains faithful to that map, every p-value, confidence set and sensitivity check can be traced back to the mechanism through which chance entered the study.

That is the standard for world-class design-based evidence: not “we permuted the data many times”, but “we reconstructed the experiment’s legal counterfactual assignments, used a statistic matched to the causal estimand, tested the right null, and preserved enough provenance that another analyst can reproduce the entire inferential universe.”

Randomisation Inference Design Clinic: Worked Architectures, Estimands and Failure Checks

The fastest way to understand randomisation inference is to watch the same core logic move across different experiment architectures. In every case the workflow is unchanged: recover the assignment law, define the causal claim, choose a statistic, regenerate only legal assignments, and interpret the resulting distribution within the boundaries of the design. What changes is the geometry of the assignment space.

Clinic 1: a two-arm classroom experiment

Twenty students are randomly assigned, ten to a new vocabulary method and ten to the usual method. The primary outcome is a pre-specified test score two weeks later. Complete randomisation gives C(20,10) = 184,756 legal assignments. The primary statistic is the treated-minus-control mean score.

Under Fisher’s sharp null, every student would have the same score under either method, so the observed score vector can be reused under every legal assignment. Exhaustive enumeration is computationally easy at this scale. The result can be reported with the observed effect estimate, the exact two-sided randomisation p-value and, if desired, a confidence set obtained by inverting constant-effect tests.

If baseline vocabulary score is strongly predictive, an adjusted statistic can improve precision. But the labels are still reassigned according to the ten-of-twenty design. Regression adjustment changes the lens; it does not change the assignment universe.

Clinic 2: the same study with matched pairs

Now the twenty students are matched into ten pairs using baseline vocabulary score, and one student in each pair is randomly assigned to treatment. The number of legal assignments falls from 184,756 to 2¹⁰ = 1,024.

A pair-aware statistic can average the ten within-pair treatment–control differences. Under a sharp null, the exact randomisation distribution is generated by flipping treatment within each pair. An unrestricted ten-of-twenty permutation would erase the very structure introduced to improve precision.

The matched design has fewer assignment vectors but often less outcome noise. Assignment-space size and statistical power therefore do not move mechanically together. Good matching can increase power even while the exact p-value grid becomes coarser.

Clinic 3: four blocks with different treatment counts

Suppose a study uses four grade levels as blocks. Grade 1 assigns 3 of 6 students to treatment, Grade 2 assigns 4 of 8, Grade 3 assigns 5 of 10 and Grade 4 assigns 6 of 12. The legal assignment count is the product C(6,3) × C(8,4) × C(10,5) × C(12,6), because randomisation occurs independently within blocks under this simplified design.

The statistic can combine block-specific mean differences using weights proportional to block size when the target is the average individual effect across the study population. Equal block weights would answer a different question, closer to an average block effect.

The randomisation program should generate treatment labels separately within each grade. A single global shuffle that happens to preserve the total treated count is not the same experiment.

Clinic 4: twelve schools, six treated

Twelve schools are completely randomised with six assigned a literacy programme. Each school contains many pupils, but there are only twelve independent treatment assignments. The simple cluster assignment space contains C(12,6) = 924 legal allocations.

A transparent analysis could compute one adjusted outcome mean per school and use the difference in mean cluster outcomes as the statistic. A more efficient analysis could use pupil-level regression adjustment while treatment reassignment still occurs at school level.

The danger is pseudoreplication. A dataset with 6,000 pupil records can produce tiny individual-level standard errors if school dependence is ignored. Randomisation inference keeps the treatment information attached to the twelve schools where it entered.

Clinic 5: paired cluster randomisation

The twelve schools are instead matched into six pairs by size, baseline performance and neighbourhood context, then one school per pair is treated. The legal assignment space is 2⁶ = 64 allocations, not 924.

Only sixty-four assignments means the p-value grid is coarse. A two-sided exact test cannot manufacture arbitrary precision. Yet strong matching can substantially reduce between-school noise, so the design can still be efficient for estimating a treatment contrast.

Reporting should therefore emphasise effect estimates and uncertainty, not treat the inability to produce p = 0.0001 as a weakness. The assignment space describes the evidence the design actually created.

Clinic 6: unequal school sizes

Imagine the six treated schools include one with 1,800 pupils and another with 120. An unweighted mean of school-level outcomes treats those schools equally. A pupil-weighted statistic gives the large school much more influence.

If the target is the average effect on a randomly selected pupil from the enrolled population, pupil weighting is natural. If the target is the average effect on a randomly selected school, equal cluster weighting may be more natural. Neither choice is “more randomised”. They answer different estimands.

This is why design-based inference cannot be reduced to an algorithm. The assignment mechanism calibrates uncertainty; the scientific question chooses the estimand.

Clinic 7: a three-arm experiment

Thirty units are assigned equally to control, Treatment A and Treatment B. The primary hypothesis is that all three potential-outcome schedules are identical under the sharp null. An omnibus statistic such as between-arm dispersion can be calibrated across all legal three-arm assignments.

If the omnibus null is rejected, planned pairwise contrasts can compare A with control and B with control. Because more than one contrast is being reported, multiplicity should be handled according to the pre-specified family of claims.

A randomisation-based maxT procedure can use the joint distribution of the pairwise statistics across the same reassignments, preserving their dependence rather than adjusting each contrast as though it were unrelated to the others.

Clinic 8: a 2 × 2 factorial experiment

A factorial experiment randomises two binary factors, A and B, creating four treatment combinations. The design can estimate the main effect of A, the main effect of B and the A×B interaction.

A randomisation test for the full sharp null can reassign the four treatment combinations according to the factorial design. A test specifically targeting interaction should use a statistic representing the difference in A effects across levels of B.

The phrase “permute the treatment label” becomes ambiguous because treatment is now a vector of factor levels. The randomisation generator should reproduce the factorial assignment rule, not collapse the experiment into treated versus untreated.

Clinic 9: crossover treatment sequences

Participants receive A then B or B then A, with sequence randomised. The assignment unit is the participant’s treatment sequence. Outcomes occur within participant across periods.

A valid randomisation test swaps or reassigns sequences according to the protocol. Shuffling period-level observations across participants destroys both the within-person dependence and the assignment mechanism.

Carryover remains a scientific issue. If Treatment A changes the participant in a way that persists into the B period, random sequence assignment does not make the carryover disappear. Washout and period modelling remain part of the design argument.

Clinic 10: Bernoulli assignment with unequal probabilities

Suppose high-risk units are assigned treatment with probability 0.70 and low-risk units with probability 0.30. The total treatment count varies. A complete-randomisation test that fixes the observed treatment count and weights all allocations equally no longer reproduces the unconditional design.

One valid path is to sample treatment vectors from the original independent Bernoulli probabilities. Another is to perform a carefully defined conditional randomisation test given the realised count or another design feature. Conditional probabilities must be derived from the Bernoulli law rather than replaced with equal weights by habit.

Inverse-probability statistics can account for unequal chances of treatment when the target estimand requires it. The analysis should state both the assignment probabilities and the weighting rule.

Clinic 11: rerandomisation for baseline balance

An engineering field trial repeatedly generates fifty–fifty allocations until a baseline Mahalanobis distance is below a fixed threshold. The accepted allocation is then used. This is not ordinary complete randomisation even though the final treated count is the same.

The analysis should simulate or enumerate only assignments that satisfy the same balance rule. Doing so recognises that extremely imbalanced allocations were never eligible to be observed.

Because rerandomisation improves baseline balance, an analysis that ignores the restriction can be conservative or inefficient. More importantly, it misstates the design that generated the evidence.

Clinic 12: noncompliance after perfect randomisation

A job-training programme is randomly offered, but only 70 per cent of those offered attend. Ten per cent of control participants obtain similar training elsewhere. The comparison by original offer remains randomised and estimates an intention-to-treat effect of assignment.

A comparison of attendees versus non-attendees is not randomised. Attendance reflects motivation, access and other characteristics. To estimate a treatment-received effect using assignment as an instrument, additional assumptions are needed.

The design-based lesson is not “ignore compliance”. It is “do not surrender the randomised comparison while analysing compliance”. Preserve assignment and received-treatment variables separately.

Clinic 13: differential attrition

A school intervention is randomised correctly, but outcome data are missing for 18 per cent of treated pupils and 4 per cent of controls. Complete-case treatment labels are still the original labels, but the complete-case sample is no longer guaranteed to be a randomised subset.

The primary report should show attrition by arm and reasons where available. Sensitivity analyses can examine weighting, imputation or plausible missing-outcome shifts. A complete-case randomisation p-value alone does not resolve whether missingness changed the causal comparison.

Randomisation protects how treatment was assigned. It does not force outcomes to remain observable.

Clinic 14: network spillovers

A social-learning intervention is individually randomised within classrooms, but treated students share materials with friends. An untreated student with five treated friends is not causally equivalent to an untreated student with none.

The analysis can define exposure categories based on own treatment and peer treatment. The randomisation mechanism then determines how often those exposure states arise across legal assignments.

The validity of the spillover analysis depends on the exposure mapping. If friendship links are missing or the true mechanism operates through study groups rather than declared friends, the mapping can misclassify causal exposure even though treatment itself was randomised.

Clinic 15: a stepped-wedge rollout

Eight clinics all eventually receive an intervention, but the order of crossover is randomised across four rollout periods. The treatment label is structurally entangled with time because every later period contains at least as much treated exposure as the period before it.

Randomisation inference reassigns clinics to legal crossover sequences rather than independently flipping clinic-period observations. The statistic should adjust or contrast within periods so secular time trends are not mistaken for treatment effects.

This design demonstrates why the assignment mechanism can involve an entire trajectory rather than one static label.

Clinic 16: a binary outcome with a rare event

A safety intervention is randomised across small industrial sites and the outcome is whether a rare incident occurs. A logistic mixed model may be unstable with very few events and clusters.

A randomisation test can use a simple cluster-level incident statistic under a sharp null, providing a transparent design-based benchmark. The resulting p-value may be coarse because the assignment space is small, but it does not depend on asymptotic normality of a rare-event regression coefficient.

Effect estimation remains important. A risk difference or incidence-rate difference with an appropriate interval can be more informative for decisions than the hypothesis test alone.

Clinic 17: survival outcomes with censoring

A treatment is randomised by clinic and the outcome is time to service failure. Some systems remain failure-free when follow-up ends. A log-rank-type or model-assisted survival statistic can be recalculated across legal clinic assignments.

The treatment assignment is randomised; censoring may not be. If censoring differs because treated systems are monitored more closely or are withdrawn for treatment-related reasons, the survival statistic can inherit censoring bias.

Design-based calibration and censoring assumptions therefore coexist. One cannot substitute for the other.

Clinic 18: repeated outcomes

Participants are randomised once and measured weekly for twelve weeks. The twelve observations per participant are not twelve treatment assignments. A valid statistic can summarise each person’s trajectory, use a repeated-measures model or estimate an area-under-the-curve contrast.

Across the randomisation distribution, the entire participant assignment moves as one unit while all of that participant’s repeated outcomes remain together. Permuting individual weekly rows would create treatment histories the study never generated.

The rule generalises: longitudinal measurement increases outcome information, not the number of independent randomisations.

Clinic 19: an A/B test with triggered exposure

A digital product randomly assigns users to interface A or B, but only users who visit a particular feature actually see the change. Analysing only triggered users can introduce post-randomisation selection if treatment affects whether users reach the feature.

The intention-to-treat comparison across all randomised users remains protected by assignment, though it may dilute the effect of actual exposure. Triggered analyses require careful design definitions—such as pre-treatment eligibility or principal-stratum reasoning—rather than simply dropping unexposed users.

Randomisation inference is widely applicable outside classical laboratories precisely because the key object is assignment, not the scientific domain.

Clinic 20: a natural lottery

A programme receives 5,000 eligible applications for 1,000 places and allocates places by a documented lottery. If every eligible applicant has equal chance and the lottery is faithfully implemented, the assignment mechanism can support randomisation inference even though the study was not designed by researchers.

The audit should verify eligibility rules, duplicate applications, priority categories, withdrawals and whether administrators overrode lottery results. If priority categories existed, the mechanism may be stratified or unequal-probability rather than one simple thousand-of-five-thousand draw.

The credibility of the natural experiment lives in the operational assignment record. A statistical shuffle performed years later is only as trustworthy as that reconstruction.

Clinic 21: why a tiny p-value can coexist with a tiny effect

In a very large individually randomised experiment, a mean difference of 0.2 points on a 100-point scale can produce an extremely small randomisation p-value if outcome variability is modest and the sample is huge.

The p-value says the sharp no-effect assignment pattern is inconsistent with the observed statistic. It does not say the 0.2-point effect is educationally, medically or operationally important.

Effect size and decision threshold belong beside the test. Statistical detectability and practical importance are different dimensions of evidence.

Clinic 22: why a large p-value can coexist with meaningful uncertainty

A small cluster trial estimates an effect large enough to matter, but the confidence interval is wide and the exact p-value is 0.18. The correct interpretation is not “there is no effect”. The data remain compatible with a range that may include meaningful benefit, little effect and possibly harm.

The study may simply be underpowered. Decision-makers should examine the interval, design resolution and prior evidence rather than turning non-rejection into proof of absence.

Randomisation inference makes uncertainty honest; it does not make sparse evidence decisive.

Clinic 23: testing code with a null experiment

Before analysing the real data, construct synthetic outcomes that are fixed and unrelated to assignment. Repeatedly generate treatment assignments from the planned design and run the entire randomisation-test pipeline.

Across many synthetic experiments, the fraction of p-values below 0.05 should be compatible with the procedure’s nominal type-I error, allowing for Monte Carlo variation and discreteness. A systematic excess can reveal an invalid assignment generator, incorrect tail counting, misuse of clustering or a bug in the statistic.

This is statistical unit testing: test the inferential machinery before trusting it on outcomes whose truth is unknown.

Clinic 24: test inversion as a full p-value curve

Instead of calculating only the p-value for τ = 0, evaluate a grid of constant additive effects: −5, −4.9, −4.8 and so on through plausible positive effects. Plot the randomisation p-value against τ.

The curve shows which hypothesised effects are most compatible with the assignment evidence and which are rejected. The confidence set is the region where the p-value remains above the chosen α level.

This makes randomisation inference visibly estimative rather than merely dichotomous. Zero becomes one candidate effect among many, not the centre of the statistical universe.

Clinic 25: a pre-specified robustness ladder

A strong experimental report can pre-specify several analyses with different assumption loads: unadjusted design-based effect estimate, covariate-adjusted design-based statistic, model-based regression estimate, and sensitivity analyses for missing outcomes or noncompliance.

The purpose is not to vote among analyses. It is to ask which assumptions materially change the conclusion. Agreement across methods strengthens robustness; disagreement identifies the assumption that owns the result.

This turns method comparison into scientific diagnosis rather than methodological competition.

A compact implementation algorithm

  1. Load the immutable observed outcomes, baseline covariates and realised treatment assignment.
  2. Load the exact design specification and any block, pair, cluster, sequence or balance restrictions.
  3. Define the causal null and determine whether it is sharp.
  4. Impute missing potential outcomes only when the null logically permits it.
  5. Define the estimand and a statistic aligned with it.
  6. Compute the observed statistic using the full analysis pipeline.
  7. Generate one legal alternative assignment from the design law.
  8. Recompute every assignment-dependent part of the statistic required by the method.
  9. Record whether the replicate is at least as extreme as observed under the pre-specified tail rule.
  10. Repeat exhaustively or by Monte Carlo.
  11. Convert the tail count or probability mass into a p-value using the chosen exact or simulation convention.
  12. For interval estimation, repeat the test over candidate effect values and invert.
  13. Run implementation diagnostics and synthetic-null tests.
  14. Store the design generator, analysis code, seed information and output together.

What should never be hidden in a randomisation-inference appendix

  • The randomisation unit.
  • The number of legal assignments or the way they were sampled.
  • Whether assignment probabilities were equal.
  • Whether blocks, pairs, clusters or rerandomisation restricted the design.
  • The exact test statistic.
  • The null hypothesis actually tested.
  • The tail definition.
  • The number of Monte Carlo draws.
  • How missing outcomes were handled.
  • Whether treatment assignment and treatment received differed.
  • Whether interference was assumed absent.
  • Which population the causal estimate describes.

These are not minor computational settings. They are the architecture of the inference. Readers should not need to reverse-engineer them from software syntax.

Final design-clinic compression

Across individuals, pairs, blocks, schools, stepped wedges, factorials, networks and natural lotteries, the rule remains stable: reconstruct what chance was actually allowed to change. Then make every simulated or enumerated world obey that rule.

The best randomisation analysis is not the one with the most permutations. It is the one whose possible assignments, causal null, estimand, statistic, computation and final claim all refer to the same experiment.

101. Continue through the eduKateSingapore Library

102. Authoritative sources and further reading

  1. NIST/SEMATECH, Engineering Statistics Handbook. Current NIST project page for the engineering statistics reference.
  2. NIST/SEMATECH, Completely Randomized Designs. Random assignment of factor levels to experimental units.
  3. NIST Dataplot, Fisher Two Sample Randomization Test. NIST implementation and explanation of the Fisher randomisation test.
  4. NIST Dataplot, Two Sample Permutation Test. Permutation reference distributions for general two-sample statistics.
  5. Branson, Z. and Bind, M.-A., Randomization-based inference for Bernoulli trial experiments and implications for observational studies. Design-based inference with general treatment probabilities and conditional assignment mechanisms.
  6. Rabideau, D. J. and Wang, R., Randomization-based confidence intervals for cluster randomized trials. Randomisation-based confidence intervals under cluster assignment.
  7. Rabideau, D. J. and Wang, R., Randomization-based inference for a marginal treatment effect in stepped wedge cluster randomized trials. Design-based p-values and confidence intervals for stepped-wedge designs.
  8. Alexeev, S. and Morton, R. L., Cluster Trials Inference With CARE, 2026. A current example of design-based benchmarking in cluster-randomised trial analysis.

Final compression: define the randomisation unit, reconstruct the exact assignment mechanism, state the causal null precisely, choose a statistic that matches the scientific question, reproduce the design in every reassignment, enumerate when possible, use Monte Carlo carefully when necessary, separate sharp-null tests from average-effect inference, preserve blocks and clusters, treat missingness, noncompliance and interference as real causal problems, and never call a shuffle valid until the design gives you permission to shuffle.

Continue through the Research Collections Directory for connected guides and deeper routes.

Explore the connected learning guides

Choose the question that brought you here. Open one useful guide, try a small task, and stop when you have what you need.

Take one question further

The same learning habit can travel across subjects, while each subject keeps its own methods. These routes help you notice a difficulty, understand one part of it, and return to something you can do.

A word is familiar, but using it is difficult.

Move from recognising a word to retrieving it in a new context. Understand vocabulary plateaus.

Try it without the guide: Choose one word you already know. Close the guide and use it in a new sentence. Explain why it fits; try another context tomorrow.

A piece of writing has ideas, but the reader loses the thread.

Make the order of events and the links between sentences clear. Explore composition writing.

Try it without the guide: Choose one short paragraph. Read the relevant explanation, close it, and revise the paragraph. Ask someone to tell you what happened and why.

The Mathematics seems familiar, but marks still disappear.

Find the first point where the working stops being reliable. Find Secondary 4 A-Math mark leakage.

Try it without the guide: For a Secondary 4 A-Math question you have attempted, locate the first uncertain line. Repair that step, then try a comparable question without the worked answer.

A Science fact is remembered, but the explanation is incomplete.

Connect the evidence to a scientific idea and the resulting change. Follow the Primary Science learning route.

Try it without the guide: Choose a familiar Primary Science example. Explain the evidence, the idea and the result without notes. Then change one condition and explain your prediction.

Two accounts of the world seem to disagree.

Check the question, source, date and evidence before combining claims. Explore the World Knowledge research library.

Try it without the guide: Take one claim. Find the source best placed to support it, note its date, and state what remains uncertain. Return to your original question.

There is plenty of help, but independence is hard to see.

Check what the learner can understand and do after support is removed. Understand how education works.

Try it without the guide: Choose one small task the child has practised. Agree on a calm, brief attempt without prompts. Use what happens to choose one next step, then stop.

For the structure behind these connections, read the eduKateSingapore runtime manifest and the eduKate ecosystem boot contract. The reader map describes public navigation; those manifests preserve the wider ownership and return rules.

Discover more from eduKate SG

Subscribe now to keep reading and get access to the full archive.

Continue reading