Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective 1: With T^η Uniform Pigeonholes on [0,1] the Expected Discrepancy Is O(T^(1/2−η/2) + T^(η/2)(log T)^(1/2))Research Paper
Motivation
Online platforms run controlled experiments in which subjects (users, sessions, sellers) arrive one at a time and must be assigned to control or treatment on arrival, before later subjects are seen. A good design makes the two groups look alike in their observed covariates, because covariate imbalance inflates the variance of treatment-effect estimates. Classical offline remedies such as matched-pair designs need all covariates in advance, and the simplest online design, complete randomization, ignores covariates altogether.
Zhao and Zhou (arXiv:2201.12936, Management Science 2025) measure imbalance by the cost of the best one-to-one matching between the treated and the control subjects, which links sequential experimental design to online matching. They propose the pigeonhole design: partition the covariate space into cells and, inside each cell, assign each arrival to the group that is currently short there. This mission formalizes their main upper bound for one continuous covariate.
Setting
A horizon , assumed even, of subjects arrives sequentially. Subject carries a covariate , and the whole sequence is fixed in advance by an adversary who does not see the randomization (an oblivious adversary). Each subject is assigned, at arrival and irrevocably, to the control group or the treated group , and in the end .
The discrepancy of a split is the cost of a minimum-weight perfect matching between the two groups (display (1) of the paper):
The completely randomized design chooses uniformly among the subsets of size ; its expected discrepancy is written .
A pigeonhole design takes a partition of into cells. When subject arrives: (1) if one group already holds subjects, joins the other; (2) otherwise, if the cell of currently holds fewer control than treated subjects, joins control, if fewer treated, joins treatment, and on a tie a fair coin decides. Its expected discrepancy is the average of over the coins.
The uniform pigeonholes with parameter are the cells .
Formalization targets
Goal: Lemma 3
For every fixed there are and such that, for every even and every , the pigeonhole design with uniform pigeonholes satisfies
The constant may depend on but on nothing else. Corollary 1, the case giving , is included as a separate statement.
Milestones
In attack order:
- Hoeffding's inequality for a binomial with deviation (Lemma EC.1).
- The value of on the two-point instance (Lemma EC.4, with corrected constant).
- Permutation invariance of the completely randomized design (Lemma EC.5).
- is in the worst case (Lemma 2).
- Every run of a pigeonhole design is balanced (remark after Definition 3).
- A median-crossing swap does not decrease the single-cell design's expected discrepancy (Lemma EC.7, corrected).
- The single-cell design has expected discrepancy (Proposition EC.1).
- At the stopping time , each cell has at most one unmatched subject and .
- The subjects matched inside cells contribute (Component 1).
- The unmatched subjects and the last subjects contribute (Component 2).
Significance
Lemma 3 shows that a simple, time-invariant, covariate-aware online rule beats complete randomization by a polynomial factor: with the expected discrepancy is , against for complete randomization (Lemma 2). A companion result of the paper (Lemma 4) shows that no pigeonhole design does better than , so the bound is tight up to the logarithm. The same two-component argument underlies the paper's multi-dimensional result.
The paper proves these statements in an e-companion; none is machine-checked. A formalization adds the following. It fixes the exact model behind each expectation, namely an average over coin vectors with the balancing rule included. It repairs the places where the printed argument does not close as written. The printed constant of Lemma EC.4 is wrong, and the stated value here is the corrected one. Lemma EC.7 is false as printed in its strict form and trivial in its weak form, and the stated version is the one the proof actually establishes. The printed proof of Lemma 2 passes through a lemma (EC.6) that is false. Component 2 relies on a conditional binomial law that does not hold literally. A complete development would certify Lemma 3 independently of these slips.
Difficulty
The natural first idea is to bound each cell separately and add the results. This handles subjects that are paired inside their own cell, but it leaves out the balancing rule. Once one group is full, every later subject is forced into the other group regardless of its covariate. These forced subjects can be far from everything they are matched to. The number of forced subjects, , equals the imbalance among the cells' leftover subjects, which is random and read at a random time. Bounding its expectation requires a concentration argument that is uniform over time.
A second difficulty is the per-cell bound itself. Inside one cell the design pairs consecutive arrivals with random orientation, but the number of pairs in a cell is random and depends on the stopping time. A bound of the form for a cell of length holding subjects must therefore survive a coin-dependent truncation. Finally, the discrepancy is a minimum over matchings, so every upper bound must exhibit a matching, and every comparison between instances (Lemma EC.7) is an exchange argument over all coin outcomes.
Formalization scope
All statements live in the namespace PigeonholeDesign.Upper, and the conventions are fixed as follows:
- Time and assignments. Subjects are indexed by
Fin T, from , so the paper's subject is index , and its odd index is an even 0-based position. An assignment isFin T → Bool, withtruemeaning treated. - Discrepancy. The minimum over bijections between the two groups of the summed distances, which equals the assignment problem (1). When the groups differ in size this infimum is Lean's junk value . The balance milestone shows that the designs never produce such a split.
- Randomness. The pigeonhole design is run on a coin vector in , and coin is read only when subject meets a tie. Every expectation is the average over all coin vectors (respectively over all control sets), never one run or the best run.
- Partition. The printed partition has cells, which is not an integer in general. It is pinned as equal cells of length , with the last cell closed. This coincides with the printed one when is an integer.
- Asymptotics. "" means that there exist and , chosen before and , depending only on (an absolute where the page says "absolute constant"). "" means both bounds. The logarithm is natural.
- Corrected statements. Lemma EC.4 uses in place of the printed . Lemma EC.7 is the non-strict inequality for the specific swap of positions and . Component 2 states only its conclusion. Lemma EC.6 is not posed.
Several formalizations would make the statements easy for the wrong reason, and the statements rule them out. The junk value of an unbalanced split never applies, because the designs are balanced. A bound on a single run, or on the best run, in place of the average over all coin vectors is not the claim. Constants may not depend on or . The partition is fixed, and the statements do not range over arbitrary partitions.
A complete development needs:
- finite combinatorics of the design run;
- one-dimensional matching (on the line the sorted matching is optimal);
- binomial and hypergeometric tail and mean-absolute-deviation estimates;
- a central-binomial asymptotic for Lemma EC.4.
The design definitions and the balance lemma are reusable by the paper's lower-bound and multi-dimensional missions. Contributions of any milestone, of alternative proofs that bypass the faulty printed steps, and of sharper constants are welcome.
Selected references
- J. Zhao and Z. Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, arXiv:2201.12936v6 (2024); Management Science (2025). https://arxiv.org/abs/2201.12936
- W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58 (1963) 13–30. https://doi.org/10.1080/01621459.1963.10500830
- C. R. Blyth, Expected absolute error of the usual estimator of the binomial parameter, The American Statistician 34 (1980) 155–157. https://doi.org/10.1080/00031305.1980.10483022
- D. Bertsimas and J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific (1997), Chapter 7.8 (assignment problem).