Does vaccination prevent symptomatic COVID-19?
Random assignment (1:1 within strata) → two injections, 28 days apart → follow-up
Per-protocol population
| Group | Cases | Total | Risk |
|---|---|---|---|
| mRNA-1273 | 11 | 14,134 | 0.078% |
| Placebo | 185 | 14,073 | 1.315% |
Risk ratio:
0.078% / 1.315% = 5.92%.
Baden et al. (2021; online 30 December 2020), Efficacy and Safety of the mRNA-1273 SARS-CoV-2 Vaccine, Fig. 1 and primary efficacy results; open full text. R documentation: Fisher’s Exact Test for Count Data.
Cox (2009), Randomization in the Design of Experiments, §2, p. 416.
Theorem (Identification). Consider i.i.d. units in the Neyman–Rubin model with pre-treatment \(X\) and binary exposure \(A\). Assume \(A\independent\{Y(0),Y(1)\}\mid X\) and \(0<\operatorname{\mathsf{P}}(A=1\mid X)<1\). Then the population ATE is identified by
\[\begin{aligned} \operatorname{\mathsf{E}}\{Y(1)-Y(0)\} &=\operatorname{\mathsf{E}}\!\left\{\operatorname{\mathsf{E}}(Y\mid A=1,X)-\operatorname{\mathsf{E}}(Y\mid A=0,X)\right\}\\[0.5em] &=\operatorname{\mathsf{E}}\!\left\{\frac{AY}{\operatorname{\mathsf{P}}(A=1\mid X)} -\frac{(1-A)Y}{\operatorname{\mathsf{P}}(A=0\mid X)}\right\}. \end{aligned}\]
Right-most quantity is called inverse-probability weighting (IPW).
Analysis of variance
| Source | Sum of squares | d.f. | Mean square | \(F\)-statistic |
|---|---|---|---|---|
| Treatment | \(S_A\) | \(1\) | \(S_A\) | \(\dfrac{S_A}{S_E/(n-2)}\) |
| Residual | \(S_E\) | \(n-2\) | \(S_E/(n-2)\) | — |
| Total | \(S_T\) | \(n-1\) | — | — |
Theorem. Consider a completely randomized (\(n_1\) out of \(n\)) experiment. Under the sharp null, \(Y_i(1)=Y_i(0)\) for all \(i\), we have
\[\operatorname{\mathsf{E}}(S_A\mid Y(\cdot)) =S^2 \quad \text{and} \quad \operatorname{\mathsf{E}}(S_E\mid Y(\cdot)) =(n-2) S^2,\]
where \(S^2=S_0^2=S_1^2\) is the sample variance of \(Y_1(0), \dots, Y_n(0)\).
Cox (2009), Randomization in the Design of Experiments, §3.2. Ding and Dasgupta (2018), A randomization-based perspective on analysis of variance….

“He could picture the distribution of n results as a pattern in n-dimensional space, and he could see that randomization would produce a symmetry in that pattern rather like that produced by a kaleidoscope, and which approximated the required spherical symmetry available, in particular, from standard normal theory assumptions.”
— Joan Fisher Box (1980)
Box (1980), R. A. Fisher and the Design of Experiments, 1922–1926. Portrait: unknown photographer (1913), public domain.
Fisher’s exact test and randomization inference
Zhang and Zhao (2023), What is a randomization test?, §§1.3, 3, 5.1; open preprint.
Compare fitted outcomes at the overall covariate mean \(\bar X\).
| Method | Least-squares fit | Fitted lines |
|---|---|---|
| ANOVA | \(Y\sim1+A\) | Horizontal |
| ANCOVA | \(Y\sim1+A+X\) | Parallel |
| ANHECOVA | \(Y\sim1+A+(X-\bar X)+A(X-\bar X)\) | Separate slopes |
ANCOVA: analysis of covariance. ANHECOVA: analysis of heterogeneous covariance.
Reluga, Ye and Zhao (2022), A unified analysis of regression adjustment in randomized experiments, §§2–3.
Potential outcomes: \(Y(0)=X+\epsilon_0\), \(Y(1)=2+X+\epsilon_1\).
Potential outcomes: \(Y(0)=X+\epsilon_0\), \(Y(1)=2-X+\epsilon_1\).

Compare treatments within groups of similar units.
Latin square
Fisher (1926), The arrangement of field experiments; The Design of Experiments (1935), ch. V. Caius window: Maria McClafferty; photo Schutz (2006), straightened by McGeddon, CC BY-SA 2.5.
Further reading and talks: Gonville & Caius College, Fisher in the 21st Century.
Opposing slopes: \(Y(0)=X+\epsilon_0\), \(Y(1)=2-X+\epsilon_1\).
Each new sample: sort by \(X\); form 100 blocks of five. Assign one treated unit and four controls per block; estimate by difference in means.