If a study observes 6 treated and 6 control units, may one treat the experiment as a fixed 6:6 split for calculation? The answer depends on how units were originally randomized: if each person entered treatment independently with probability one half, other group sizes could have occurred; if the design required exactly 6 treated units, the randomization space is entirely different. Exact inference must use the assignment mechanism that generated the data, and that distinction also governs how computation can be accelerated.[1]

Peng Zhang's 2026 preprint studies the finite-sample average treatment effect with binary outcomes. The advance is not another concentration inequality wrapped around an existing estimator, but a faster inversion of randomization tests: for a candidate average effect, find the largest p-value among all compatible potential-outcome tables, then find which candidate values are retained. Independence in balanced Bernoulli and paired randomization designs cuts the number of randomization tests needed for this process to a logarithmic order.[1]

One average effect corresponds to many potential-outcome tables

Fix n experimental units. Each unit has binary potential outcomes Yᵢ(1) and Yᵢ(0) under treatment and control; the target is the average effect for these units, τ=Σᵢ[Yᵢ(1)−Yᵢ(0)]/n. Only the outcome under the realized assignment is observed for each person; the other counterfactual is missing. Potential outcomes are treated as fixed, with randomness coming from the known assignment mechanism; units are assumed not to interfere, and treatment versions are assumed consistent.[1]

A candidate average effect τ₀ does not uniquely determine the missing values, nor does it mean every unit's effect equals τ₀. The proper testing object is a family of complete tables: each table must match the observed outcomes and have average effect exactly τ₀. For each such table, treat it as the full potential-outcome table and compute a two-sided centered randomization-test p-value under the original experimental mechanism; then take the maximum of those p-values, pmax(τ₀).[1]

The maximum has a direct reading: as long as one table compatible with the data and τ₀ cannot be rejected, that average effect cannot be ruled out merely because another compatible table was rejected. At significance level α, retain candidate values with pmax(τ₀)≥α; the retained values form a confidence set, which may also be reported by its minimum and maximum as an interval. The grid of effects that are merely compatible with binary outcomes and the observed data is not yet a confidence set obtained by test inversion.[1]

Under a Bernoulli design in which each unit is treated independently with common probability p, the paper uses the Horvitz–Thompson statistic HT=[ΣᵢZᵢYᵢ/p−Σᵢ(1−Zᵢ)Yᵢ/(1−p)]/n. For a given complete table, every possible assignment under that design is reconsidered; the p-value is the probability that |HT−τ₀| is at least as large as the observed |HTobs−τ₀|. Random group sizes are part of that distribution; p=1/2 means the two arms are equal in expectation, not that every realization must split exactly in half.[1]

A constructed example with 12 units

Suppose 12 units are assigned independently with probability 1/2, and in the realized assignment the first 6 are treated with all outcomes 1 while the last 6 are controls with all outcomes 0. Then HTobs=1; each of the 12 counterfactuals may be 0 or 1, giving 4096 complete tables consistent with the observations. Binary arithmetic yields candidate average effects 0, 1/12, …, 1.

Left panel lists observed and unknown outcomes; middle panel shows maximum p-values over candidate effects; right panel compares three assignment designs

Constructed example: question marks on the left mark unknown counterfactuals; the middle panel shows maximum two-sided centered HT tail probabilities from enumerating complete tables and Bernoulli assignments, with a dashed line at 0.05; the right panel compares exact p-values for one fixed potential-outcome table under three assignment mechanisms. Computations follow [1].

Computing tail probabilities over all 4096 Bernoulli assignments for each table, then taking maxima by candidate effect, gives pmax(0)=0.03125, pmax(1/12)=0.03125, and pmax(2/12)=0.078125. At α=0.05 the first two candidates are excluded and grid points from 2/12 through 1 are retained; the interval envelope of the confidence set is [1/6, 1]. This step separates mere compatibility screening from test inversion.

The right panel fixes another table consistent with the same observations: the first 6 units have outcome 1 under either assignment and the last 6 have outcome 0, so the table's average effect is 0. For that same table and the same observations, independent Bernoulli assignment yields p=0.03125; complete randomization with exactly a 6:6 split yields p=2/924; pairing unit 1 with unit 7 and so on into 6 pairs with randomization within each pair yields p=0.03125. The same observations can correspond to different randomization distributions, so one must not switch mechanisms after the fact based only on group sizes.

From exponentially many tables to boundaries, then bisection

Direct enumeration grows exponentially because each additional unit adds an unknown binary outcome. The paper first compresses tables, via the binary structure, into counts of the four types (Y(1), Y(0)). Under a balanced Bernoulli design, the randomization distribution of centered HT can be written as a sum of independent symmetric random variables: the number of type-(1,1) units sets how many ±1 terms appear, and the combined count of types (1,0) and (0,1) sets how many ±1/2 terms appear. The test need not distinguish complete tables that share the same relevant counts.[1]

The second key step further shrinks the search using feasibility and monotone relations among tail probabilities. For fixed τ₀, the paper considers two classes—those with zero ±1/2 terms and those with at least one—and within each class only the lexicographically maximal boundary counts that meet the observation and candidate-effect constraints need checking. Thus one pmax requires at most two randomization tests; when τ₀ is nonzero the first class cannot arise and usually one test suffices. Bernoulli boundaries are fixed by a constant number of feasibility constraints.[1]

The third step no longer walks the entire candidate-effect grid. Using monotonicity of pmax on either side of the observed HT, the paper bisects toward each end to locate the retained set's boundaries. For balanced Bernoulli and paired designs, the stated upper bound is at most 8log₂(n) randomization tests, i.e. O(log n); in the paper's threshold-query and inversion model, the worst case still needs Ω(log n) queries.[1]

Test count and full running time are different

A single exact test must still compute a discrete tail probability. The paper evaluates the needed convolutions with the fast Fourier transform at O(n log n) per call; under its unit-cost RAM arithmetic model, balanced Bernoulli total time is O(n log² n), not O(log n). Exactness here means finite-sample coverage from the known assignment distribution, without large-sample approximations or Monte Carlo sampling.[1]

Changing the design changes the usable structure and the cost. An independent Bernoulli extension with common treatment probability p ≠ 1/2 needs O(n²) tests and has stated total time O(n³ log n). In a paired design, exactly one unit in each pair is treated and pairs are independent, so the test count can again fall to logarithmic order, but finding boundaries requires a fixed-dimension integer linear program. By contrast, the fastest cited procedure for balanced complete randomization needs O(n log n) tests: fixing the number treated makes assignments dependent, so the independent-Bernoulli computational structure does not carry over directly.[1]

The advance separates two layers of search in exact inference: first use potential-outcome counts to find the least favorable compatible table, then use monotonicity over candidate effects to locate interval endpoints. In practice, recover the experiment's true assignment rule first and compute the randomization distribution that rule induces; matching observed group sizes does not replace that step.[1]

References

  1. [1] Zhang, Peng. Fast Algorithms for Exact Confidence Intervals in Randomized Experiments with Binary Outcomes. arXiv:2602.20498v1 [stat.ME], 2026-02-24.