Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Experimental Design

8 missions · 3 completed

Missions

Open5Completed3All8
🏆Completed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

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 TTT, assumed even, of subjects arrives sequentially. Subject ttt carries a covariate xt∈[0,1]x_t\in[0,1]xt​∈[0,1], and the whole sequence x=(x1,…,xT)x=(x_1,\dots,x_T)x=(x1​,…,xT​) 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 AAA or the treated group BBB, and in the end ∣A∣=∣B∣=T/2|A|=|B|=T/2∣A∣=∣B∣=T/2.

The discrepancy of a split is the cost of a minimum-weight perfect matching between the two groups (display (1) of the paper):

dA,B=min⁡e:A→B bijective ∑a∈A∣xa−xe(a)∣.d_{A,B}=\min_{e:A\to B\ \text{bijective}}\ \sum_{a\in A}|x_a-x_{e(a)}| .dA,B​=e:A→B bijectivemin​ a∈A∑​∣xa​−xe(a)​∣.

The completely randomized design chooses AAA uniformly among the (TT/2)\binom{T}{T/2}(T/2T​) subsets of size T/2T/2T/2; its expected discrepancy is written ALGC(x)\mathrm{ALG}^{\mathsf C}(x)ALGC(x).

A pigeonhole design takes a partition of [0,1][0,1][0,1] into cells. When subject ttt arrives: (1) if one group already holds T/2T/2T/2 subjects, ttt joins the other; (2) otherwise, if the cell of xtx_txt​ currently holds fewer control than treated subjects, ttt joins control, if fewer treated, ttt joins treatment, and on a tie a fair coin decides. Its expected discrepancy is the average of dA,Bd_{A,B}dA,B​ over the coins.

The uniform pigeonholes with parameter η∈(0,1)\eta\in(0,1)η∈(0,1) are the TηT^{\eta}Tη cells [0,T−η),[T−η,2T−η),…,[1−T−η,1][0,T^{-\eta}),[T^{-\eta},2T^{-\eta}),\dots,[1-T^{-\eta},1][0,T−η),[T−η,2T−η),…,[1−T−η,1].

Formalization targets

Goal: Lemma 3

For every fixed η∈(0,1)\eta\in(0,1)η∈(0,1) there are C>0C>0C>0 and T0T_0T0​ such that, for every even T≥T0T\ge T_0T≥T0​ and every x∈[0,1]Tx\in[0,1]^Tx∈[0,1]T, the pigeonhole design with uniform pigeonholes satisfies

E[dA,B] ≤ C(T12−η2+Tη2(log⁡T)12).\mathbb E\bigl[d_{A,B}\bigr]\ \le\ C\Bigl(T^{\frac12-\frac\eta2}+T^{\frac\eta2}(\log T)^{\frac12}\Bigr).E[dA,B​] ≤ C(T21​−2η​+T2η​(logT)21​).

The constant may depend on η\etaη but on nothing else. Corollary 1, the case η=1/2\eta=1/2η=1/2 giving O(T1/4(log⁡T)1/2)O(T^{1/4}(\log T)^{1/2})O(T1/4(logT)1/2), is included as a separate statement.

Milestones

In attack order:

  1. Hoeffding's inequality for a binomial with deviation nlog⁡n\sqrt{n\log n}nlogn​ (Lemma EC.1).
  2. The value of ALGC\mathrm{ALG}^{\mathsf C}ALGC on the two-point instance (0,…,0,1,…,1)(0,\dots,0,1,\dots,1)(0,…,0,1,…,1) (Lemma EC.4, with corrected constant).
  3. Permutation invariance of the completely randomized design (Lemma EC.5).
  4. ALGC\mathrm{ALG}^{\mathsf C}ALGC is Θ(T1/2)\Theta(T^{1/2})Θ(T1/2) in the worst case (Lemma 2).
  5. Every run of a pigeonhole design is balanced (remark after Definition 3).
  6. A median-crossing swap does not decrease the single-cell design's expected discrepancy (Lemma EC.7, corrected).
  7. The single-cell design has expected discrepancy O(T1/2)O(T^{1/2})O(T1/2) (Proposition EC.1).
  8. At the stopping time τ\tauτ, each cell has at most one unmatched subject and ∣Hτ0−Hτ1∣=T−τ|H^0_\tau-H^1_\tau|=T-\tau∣Hτ0​−Hτ1​∣=T−τ.
  9. The subjects matched inside cells contribute O(T1/2−η/2)O(T^{1/2-\eta/2})O(T1/2−η/2) (Component 1).
  10. The unmatched subjects and the last T−τT-\tauT−τ subjects contribute O(Tη/2(log⁡T)1/2)O(T^{\eta/2}(\log T)^{1/2})O(Tη/2(logT)1/2) (Component 2).

Significance

Lemma 3 shows that a simple, time-invariant, covariate-aware online rule beats complete randomization by a polynomial factor: with η=1/2\eta=1/2η=1/2 the expected discrepancy is O(T1/4(log⁡T)1/2)O(T^{1/4}(\log T)^{1/2})O(T1/4(logT)1/2), against Θ(T1/2)\Theta(T^{1/2})Θ(T1/2) for complete randomization (Lemma 2). A companion result of the paper (Lemma 4) shows that no pigeonhole design does better than Ω(T1/4)\Omega(T^{1/4})Ω(T1/4), 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, T−τT-\tauT−τ, 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 c ℓnc\,\ell\sqrt ncℓn​ for a cell of length ℓ\ellℓ holding nnn 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 000, so the paper's subject ttt is index t−1t-1t−1, and its odd index iii is an even 0-based position. An assignment is Fin T → Bool, with true meaning 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 000. The balance milestone shows that the designs never produce such a split.
  • Randomness. The pigeonhole design is run on a coin vector in {0,1}T\{0,1\}^T{0,1}T, and coin ttt is read only when subject ttt meets a tie. Every expectation is the average over all 2T2^T2T coin vectors (respectively over all (TT/2)\binom{T}{T/2}(T/2T​) control sets), never one run or the best run.
  • Partition. The printed partition has TηT^{\eta}Tη cells, which is not an integer in general. It is pinned as K=⌈Tη⌉K=\lceil T^{\eta}\rceilK=⌈Tη⌉ equal cells of length 1/K≤T−η1/K\le T^{-\eta}1/K≤T−η, with the last cell closed. This coincides with the printed one when TηT^\etaTη is an integer.
  • Asymptotics. "O(f(T))O(f(T))O(f(T))" means that there exist C>0C>0C>0 and T0T_0T0​, chosen before TTT and xxx, depending only on η\etaη (an absolute CCC where the page says "absolute constant"). "Θ\ThetaΘ" means both bounds. The logarithm is natural.
  • Corrected statements. Lemma EC.4 uses 1/2π1/\sqrt{2\pi}1/2π​ in place of the printed 1/π1/\sqrt\pi1/π​. Lemma EC.7 is the non-strict inequality for the specific swap of positions i+1i+1i+1 and j+1j+1j+1. 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 000 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 TTT or xxx. 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).
14 thms4 active usersReviewed
🏆Completed
Operations ResearchProbabilityReinforcement Learning+1·Captain: Shuze Chen

Treatment Locality in A/B TestingResearch Paper

Modern A/B tests must infer lifetime treatment effects — e.g. customer lifetime value under a new feature — from short-horizon experiment data. Chen, Simchi-Levi and Wang (arXiv:2407.19618) model the experiment as a Markov decision process and exploit a structural fact of many practical interventions: the treatment is local, modifying the system at a single crucial state only. This mission formalizes the core asymptotic theory of the paper: for any differentiable estimator built from the experiment's transition and reward statistics, information sharing — pooling across test arms the samples collected away from the treated state — keeps the estimator asymptotically normal with the same asymptotic bias and never increases its asymptotic variance (Theorem 9), and is asymptotically efficient among unbiased estimators (Theorem 5). The route runs through a Markov chain central limit theorem with the asymptotic variance identified as the autocovariance series, and the linearization/delta method for functionals of chain statistics.

42 thms4 active users
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective 3: For p ≥ 2 Continuous Covariates, Expected Discrepancy O(T^(1−φ) + T^((p−1)φ)), with (log T)^(3/2) at p = 2Research Paper

Motivation

Online platforms run randomized experiments on subjects (users, sessions, orders) that arrive one at a time and must be assigned to a control or a treatment group on arrival, before later subjects are seen. The precision of a treatment-effect estimate depends on how similar the two groups are in their observed covariates. When the groups are badly balanced, the estimator's variance grows, and a large literature on covariate balancing (blocking, rerandomization, matched pairs) addresses this for offline experiments, where all covariates are known in advance.

J. Zhao and Z. Zhou (arXiv:2201.12936, Management Science, 2025) cast the online problem as an online matching problem. The cost of an assignment is the discrepancy, the weight of a minimum-cost perfect matching between the two groups, and they compare three designs against an oblivious adversary that fixes the covariate sequence in advance:

  • the clairvoyant matched-pair design;
  • the completely randomized design;
  • their online pigeonhole design.

For one continuous covariate the pigeonhole design attains O(T1/4(log⁡T)1/2)O(T^{1/4}(\log T)^{1/2})O(T1/4(logT)1/2) against Θ(T1/2)\Theta(T^{1/2})Θ(T1/2) for complete randomization. This mission concerns the multi-dimensional result, Theorem 9.

Setting

TTT subjects arrive in order; TTT is even. Subject ttt carries a covariate vector xtx_txt​ with qqq discrete coordinates, the iii-th in a finite set Si⊆[0,1]S_i\subseteq[0,1]Si​⊆[0,1] of size mim_imi​, and p≥2p\ge2p≥2 continuous coordinates in [0,1][0,1][0,1]. Distances are Euclidean in Rq+p\mathbb R^{q+p}Rq+p. An assignment puts each subject in control (AAA) or treatment (BBB).

The discrepancy of a split with ∣A∣=∣B∣|A|=|B|∣A∣=∣B∣ is

dA,B=min⁡σ:A→B bijective ∑t∈A∥xt−xσ(t)∥2,d_{A,B}=\min_{\sigma:A\to B\text{ bijective}}\ \sum_{t\in A}\lVert x_t-x_{\sigma(t)}\rVert_2 ,dA,B​=σ:A→B bijectivemin​ t∈A∑​∥xt​−xσ(t)​∥2​,

the value of the assignment problem (1) of the paper.

The completely randomized design picks AAA uniformly among the (TT/2)\binom{T}{T/2}(T/2T​) subsets of size T/2T/2T/2; ALGC(x)\mathrm{ALG}^C(x)ALGC(x) is the mean of dA,Bd_{A,B}dA,B​.

A pigeonhole design fixes a partition of the covariate space into pigeonholes. When subject ttt arrives:

  1. if one group already has T/2T/2T/2 subjects, ttt joins the other group;
  2. otherwise ttt joins the group that has fewer subjects in its own pigeonhole, and on a tie a fair coin decides.

Theorem 9 uses the pigeonholes

P(S)=S1×⋯×Sq×{[0,c1/pT−φ), …, [1−c1/pT−φ,1]}p,\mathcal P(\mathcal S)=S_1\times\cdots\times S_q\times\Big\{[0,c^{1/p}T^{-\varphi}),\ \dots,\ [1-c^{1/p}T^{-\varphi},1]\Big\}^p ,P(S)=S1​×⋯×Sq​×{[0,c1/pT−φ), …, [1−c1/pT−φ,1]}p,

uniform cells of edge c1/pT−φc^{1/p}T^{-\varphi}c1/pT−φ on each continuous axis, for parameters φ∈(0,1)\varphi\in(0,1)φ∈(0,1) and c>1c>1c>1. The expected discrepancy is the mean of dA,Bd_{A,B}dA,B​ over the design's coins.

Formalization targets

Goal: Theorem 9 (p. 26)

There are C>0C>0C>0 and T0T_0T0​, depending only on p,q,S1,…,Sq,φ,cp,q,S_1,\dots,S_q,\varphi,cp,q,S1​,…,Sq​,φ,c, such that for every even T≥T0T\ge T_0T≥T0​ and every admissible arrival sequence,

E[dA,B]≤C(T1−φ+T(p−1)φ λp(T)),λ2(T)=(log⁡T)3/2,λp(T)=1 (p≥3).\mathbb E[d_{A,B}]\le C\Big(T^{1-\varphi}+T^{(p-1)\varphi}\,\lambda_p(T)\Big),\qquad \lambda_2(T)=(\log T)^{3/2},\quad \lambda_p(T)=1\ (p\ge3).E[dA,B​]≤C(T1−φ+T(p−1)φλp​(T)),λ2​(T)=(logT)3/2,λp​(T)=1 (p≥3).

Milestones

  1. Lemma EC.1: Hoeffding for a binomial, Pr⁡(∣H(n)−pn∣≤nlog⁡n)≥1−2/n2\Pr(|H(n)-pn|\le\sqrt{n\log n})\ge1-2/n^2Pr(∣H(n)−pn∣≤nlogn​)≥1−2/n2.
  2. Lemma 5, p=2p=2p=2: if T=m2T=m^2T=m2 and the subjects occupy each cell of the m×mm\times mm×m grid exactly once, then ALGC(x)=O(T1/2log⁡T)\mathrm{ALG}^C(x)=O(T^{1/2}\log T)ALGC(x)=O(T1/2logT).
  3. Lemma 5, p≥3p\ge3p≥3: on the full grid of T=mpT=m^pT=mp cells, ALGC(x)=O(T(p−1)/p)\mathrm{ALG}^C(x)=O(T^{(p-1)/p})ALGC(x)=O(T(p−1)/p).
  4. Balance: every run of a pigeonhole design has ∣A∣=∣B∣=T/2|A|=|B|=T/2∣A∣=∣B∣=T/2.
  5. Component 1: the subjects paired within their pigeonhole before the stopping time τ\tauτ contribute at most 12c1/pp T1−φ\tfrac12c^{1/p}\sqrt p\,T^{1-\varphi}21​c1/pp​T1−φ, on every run.
  6. Unmatched subjects: at most one unmatched subject per pigeonhole, Hτ0+Hτ1H^0_\tau+H^1_\tauHτ0​+Hτ1​ at most the number of pigeonholes, and ∣Hτ0−Hτ1∣=T−τ|H^0_\tau-H^1_\tau|=T-\tau∣Hτ0​−Hτ1​∣=T−τ.
  7. Component 2: the remaining subjects contribute O(T(p−1)φλp(T))O(T^{(p-1)\varphi}\lambda_p(T))O(T(p−1)φλp​(T)) in expectation.

Corollary 2 (the case φ=1/p\varphi=1/pφ=1/p) is an extra theorem after the goal.

Significance

At φ=1/p\varphi=1/pφ=1/p Theorem 9 gives O(T(p−1)/p)O(T^{(p-1)/p})O(T(p−1)/p) for p≥3p\ge3p≥3. This is the order Θ(T(p−1)/p)\Theta(T^{(p-1)/p})Θ(T(p−1)/p) of the matched-pair design (Theorem 7), which sees all covariates in advance. An online design that commits to each assignment on arrival therefore loses at most a constant factor in dimension p≥3p\ge3p≥3, and at most a (log⁡T)3/2(\log T)^{3/2}(logT)3/2 factor at p=2p=2p=2. For the completely randomized design no comparable upper bound is known for general sequences (p. 21). Lemma 5 is the paper's bound for complete randomization on the special family of full grids, and is of independent interest as a random-labelling matching estimate.

The results are proved on paper; none of them has a machine-checked proof, and the platform holds no item on them. A formalization would close the gaps of the printed argument:

  • Lemma 5's induction for p=2p=2p=2 ends at T(log⁡T)3/2\sqrt T(\log T)^{3/2}T​(logT)3/2 rather than the stated Tlog⁡T\sqrt T\log TT​logT.
  • Component 2 applies Lemma 5 to unmatched subjects, which occupy distinct cells but do not fill the grid.
  • The case q≥1q\ge1q≥1 is argued per discrete support, although the balancing rule acts across supports.

Every statement in the mission is believed true.

Difficulty

The matched part (Component 1) is deterministic: paired subjects share a pigeonhole of diameter O(T−φ)O(T^{-\varphi})O(T−φ). The difficulty lies in the subjects left over: the unmatched ones and the subjects after τ\tauτ. Their labels come from coins, but which subjects end up unmatched, and when τ\tauτ occurs, depend on the same coins. So the leftover set is not a fixed set with independent fair labels, and the conditional binomial law used on p. ec22 does not hold literally.

A second obstacle is the random-matching estimate itself. Bounding the expected optimal matching between randomly labelled points of a grid at the rates T1/2log⁡TT^{1/2}\log TT1/2logT (p=2p=2p=2) and T(p−1)/pT^{(p-1)/p}T(p−1)/p (p≥3p\ge3p≥3) is a multi-scale problem of Ajtai–Komlós–Tusnády type. A single-scale count of imbalances per cell gives only T1/2T^{1/2}T1/2 times a power of TTT that is too large.

Formalization scope

  • Subjects are indexed 0,…,T−10,\dots,T-10,…,T−1; an assignment is a map to Bool (false = control). The covariate space is EuclideanSpace ℝ (Fin q ⊕ Fin p). Admissible sequences have discrete coordinates in SiS_iSi​ and continuous ones in [0,1][0,1][0,1], with Si⊆[0,1]S_i\subseteq[0,1]Si​⊆[0,1] (the paper's normalisation).
  • Discrepancy: an infimum over bijections between the groups. An unbalanced split has the junk value 000. The designs, the matched set and its complement are balanced on every run, so the junk is never reached.
  • Cells: the printed edge c1/pT−φc^{1/p}T^{-\varphi}c1/pT−φ gives a partition only when c−1/pTφc^{-1/p}T^{\varphi}c−1/pTφ is an integer. The formalization uses m=⌈c−1/pTφ⌉m=\lceil c^{-1/p}T^{\varphi}\rceilm=⌈c−1/pTφ⌉ cells per axis of edge 1/m≤c1/pT−φ1/m\le c^{1/p}T^{-\varphi}1/m≤c1/pT−φ, with the last cell closed. A pigeonhole is keyed by the exact discrete values and the cell index on each axis. The partition is the printed one, not a quantified family.
  • Randomness: the pigeonhole design uses one coin per subject, consulted only on a tie. Its expected discrepancy is the average over all 2T2^T2T coin vectors, which is exactly the paper's law. The completely randomized design averages over all (TT/2)\binom{T}{T/2}(T/2T​) control sets.
  • Asymptotics: O(f(T))O(f(T))O(f(T)) means ∃C>0,∃T0,∀T≥T0\exists C>0,\exists T_0,\forall T\ge T_0∃C>0,∃T0​,∀T≥T0​ even, ∀x\forall x∀x admissible. CCC and T0T_0T0​ are chosen before TTT and xxx and depend only on the fixed parameters. log⁡\loglog is the natural logarithm.
  • Lemma 5's family X\mathcal XX: T=mpT=m^pT=mp subjects in [0,1]p[0,1]^p[0,1]p, one per cell, stated as injectivity of the cell map.
  • Stopping objects: τ\tauτ is the first nnn at which a group holds T/2T/2T/2 subjects. Within a pigeonhole the subjects before τ\tauτ are paired in arrival order, and the last one is unmatched when their number is odd.
  • Corrections to the page: the second cell printed as [T−φ,2c1/pT−φ)[T^{-\varphi},2c^{1/p}T^{-\varphi})[T−φ,2c1/pT−φ) on p. ec21 is read as [c1/pT−φ,2c1/pT−φ)[c^{1/p}T^{-\varphi},2c^{1/p}T^{-\varphi})[c1/pT−φ,2c1/pT−φ). The family's xt′∉Xx'_t\notin\mathbb Xxt′​∈/X is read as xt′∉Xx_{t'}\notin\mathbb Xxt′​∈/X. The bound H≤1cTpφH\le\frac1cT^{p\varphi}H≤c1​Tpφ becomes H≤(∏imi) mpH\le(\prod_i m_i)\,m^pH≤(∏i​mi​)mp under the ceiling and the discrete supports.

The following formalizations would trivialize the mission and are ruled out:

  • a bound on the discrepancy of one run, or of the best run, instead of the average over all coin vectors;
  • constants that depend on TTT or xxx;
  • an unbalanced design that exploits the junk value 000;
  • an arbitrary partition in place of the printed grid.

A complete development needs a binomial Hoeffding bound and an exact analysis of the design's recursion (balance, alternation within a pigeonhole before τ\tauτ). It also needs a multi-scale bound on random bichromatic matchings of grid points. That bound is reusable for Lemma 5 and for matching estimators generally. Contributions on any milestone are welcome, as are proofs of Lemma 5 for arbitrary subsets of grid points, which is what Component 2 needs.

Selected references

  • J. Zhao and Z. Zhou, Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective, Management Science, 2025; arXiv:2201.12936v6, 2024. https://arxiv.org/abs/2201.12936
  • M. Ajtai, J. Komlós and G. Tusnády, On optimal matchings, Combinatorica 4 (1984) 259–264. https://doi.org/10.1007/BF02579135
  • N. Fournier and A. Guillin, On the rate of convergence in Wasserstein distance of the empirical measure, Probability Theory and Related Fields 162 (2015) 707–738. https://doi.org/10.1007/s00440-014-0583-7
  • 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
12 thms3 active usersReviewed
🏆Completed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Pigeonhole Design: Balancing Sequential Experiments from an Online Matching Perspective 2: Every Pigeonhole Design on [0,1] Has Worst-Case Expected Discrepancy Ω(T^(1/4))Research Paper

Motivation

Online platforms run experiments on subjects that arrive one at a time: a user opens an app, a customer reaches a checkout page, a patient enters a trial. Each subject must be assigned to control or treatment at once, before the next one arrives, and the quality of the final estimate depends on how well the two groups resemble each other in their observed covariates. Classical sequential randomization such as Efron's biased coin (Efron 1971) balances the group sizes; Zhao and Zhou (arXiv:2201.12936, Management Science 2025) instead measure imbalance by an online matching cost and ask how small it can be made against an adversarial sequence of covariates.

Their pigeonhole design partitions the covariate space into cells and balances the two groups inside each cell. With one continuous covariate the paper shows (Lemma 3 and Corollary 1) that T\sqrt TT​ uniform cells achieve an expected cost of order O(T1/4(log⁡T)1/2)O(T^{1/4}(\log T)^{1/2})O(T1/4(logT)1/2), against Θ(T1/2)\Theta(T^{1/2})Θ(T1/2) for complete randomization (Lemma 2). This mission concerns the matching lower bound, Lemma 4: no choice of pigeonholes does better than T1/4T^{1/4}T1/4.

Setting

A horizon of TTT subjects, with TTT even, arrives at times t=1,…,Tt=1,\dots,Tt=1,…,T. Subject ttt carries a covariate xt∈[0,1]x_t\in[0,1]xt​∈[0,1], and the whole sequence x=(x1,…,xT)x=(x_1,\dots,x_T)x=(x1​,…,xT​) is fixed in advance by an oblivious adversary. An assignment puts each subject in the control group AAA or the treated group BBB.

The discrepancy of the split (display (1), p. 11) is the cost of a minimum-weight perfect matching between the two groups:

dA,B=min⁡e:A→B bijective ∑a∈A∣xa−xe(a)∣.d_{A,B}=\min_{e:A\to B\ \text{bijective}}\ \sum_{a\in A}|x_a-x_{e(a)}| .dA,B​=e:A→B bijectivemin​ a∈A∑​∣xa​−xe(a)​∣.

A pigeonhole design (Definition 3, p. 16) takes a partition of [0,1][0,1][0,1] into pigeonholes. When subject ttt arrives:

  1. if one group already holds T/2T/2T/2 subjects, ttt joins the other group;
  2. otherwise, with nk,t−10n^0_{k,t-1}nk,t−10​ and nk,t−11n^1_{k,t-1}nk,t−11​ the control and treated subjects already in the pigeonhole kkk of xtx_txt​, subject ttt joins control if nk,t−10<nk,t−11n^0_{k,t-1}<n^1_{k,t-1}nk,t−10​<nk,t−11​, treatment if nk,t−10>nk,t−11n^0_{k,t-1}>n^1_{k,t-1}nk,t−10​>nk,t−11​, and either group with probability 1/21/21/2 in case of a tie.

The design's expected discrepancy E[dA,B]\mathbb E[d_{A,B}]E[dA,B​] on xxx is the average over these fair coins.

An interval partition is given by breakpoints 0=l0<l1<⋯<lK=10=l_0<l_1<\dots<l_K=10=l0​<l1​<⋯<lK​=1, K≥1K\ge1K≥1; its pigeonholes are [l0,l1),[l1,l2),…,[lK−1,lK][l_0,l_1),[l_1,l_2),\dots,[l_{K-1},l_K][l0​,l1​),[l1​,l2​),…,[lK−1​,lK​], and the cell lengths are Lk=lk−lk−1L_k=l_k-l_{k-1}Lk​=lk​−lk−1​.

Formalization targets

Goal: Lemma 4 (p. 18)

There are an absolute constant c>0c>0c>0 and a threshold T0T_0T0​ such that for every even T≥T0T\ge T_0T≥T0​ and every interval partition of [0,1][0,1][0,1], some arrival sequence x∈[0,1]Tx\in[0,1]^Tx∈[0,1]T gives

E[dA,B] ≥ c T1/4.\mathbb E\bigl[d_{A,B}\bigr]\ \ge\ c\,T^{1/4}.E[dA,B​] ≥ cT1/4.

The partition is arbitrary and the hard sequence is chosen after it; ccc and T0T_0T0​ do not depend on TTT or on the partition.

Milestones (proof of Lemma 4, pp. ec15–ec16)

  1. Lemma EC.2 (p. ec3), the binomial mean absolute deviation: for X∼Bin(n,p)X\sim\mathrm{Bin}(n,p)X∼Bin(n,p),
E∣X−np∣=2p(1−p)π n+O(n−1/2).\mathbb E|X-np|=\sqrt{\tfrac{2p(1-p)}{\pi}\,n}+O(n^{-1/2}).E∣X−np∣=π2p(1−p)​n​+O(n−1/2).
  1. Per-pigeonhole bound. On the alternating instance, which places nk/2n_k/2nk​/2 consecutive pairs (lk−1,lk−ϵ)(l_{k-1},l_k-\epsilon)(lk−1​,lk​−ϵ) in cell kkk (the pairs (lK−1,lK)(l_{K-1},l_K)(lK−1​,lK​) in the last cell), the expected discrepancy is at least c∑k(Lk−ϵ)nkc\sum_k(L_k-\epsilon)\sqrt{n_k}c∑k​(Lk​−ϵ)nk​​.
  2. Cauchy–Schwarz display. With nk=Lk2T/∑iLi2n_k=L_k^2T/\sum_iL_i^2nk​=Lk2​T/∑i​Li2​,
∑kLknk=(∑kLk2)(∑knk)=T∑kLk2.\sum_k L_k\sqrt{n_k}=\sqrt{\Bigl(\sum_k L_k^2\Bigr)\Bigl(\sum_k n_k\Bigr)}=\sqrt{T\sum_kL_k^2}.k∑​Lk​nk​​=(k∑​Lk2​)(k∑​nk​)​=Tk∑​Lk2​​.
  1. Jensen display. If ∑kLk=1\sum_kL_k=1∑k​Lk​=1 then T∑kLk2≥TK(1/K)2=T/K\sqrt{T\sum_kL_k^2}\ge\sqrt T\sqrt{K(1/K)^2}=\sqrt{T/K}T∑k​Lk2​​≥T​K(1/K)2​=T/K​, with equality iff every Lk=1/KL_k=1/KLk​=1/K.
  2. Few pigeonholes, K≤C0T1/2K\le C_0T^{1/2}K≤C0​T1/2 for a fixed C0>0C_0>0C0​>0: some instance gives E[dA,B]≥cT1/4\mathbb E[d_{A,B}]\ge cT^{1/4}E[dA,B​]≥cT1/4.
  3. Many pigeonholes, K≥C0T1/2K\ge C_0T^{1/2}K≥C0​T1/2 for a fixed C0>0C_0>0C0​>0: some instance gives E[dA,B]≥cT1/4\mathbb E[d_{A,B}]\ge cT^{1/4}E[dA,B​]≥cT1/4.

Milestones 5 and 6 (with C0=1C_0=1C0​=1) together give the goal.

Significance

Lemma 4 makes the upper bound of Lemma 3 meaningful as an optimality statement: among all pigeonhole designs on one continuous covariate, T\sqrt TT​ uniform cells are optimal up to the factor (log⁡T)1/2(\log T)^{1/2}(logT)1/2. It also locates the source of the T1/4T^{1/4}T1/4 rate in a tension between two kinds of randomness. Long cells let fair coins inside a cell create imbalance across the cell's length. Many cells leave one unmatched subject per cell, and these must be matched across cells. The rate cannot be improved by tuning the partition alone; doing better requires designs outside the pigeonhole class.

The paper's proof is a short sketch, and no part of it has been machine-checked. A formal proof would supply an explicit hard instance for every interval partition, including the rounding of the counts nkn_knk​ to even integers and the instance for the many-cell case, which the paper leaves unspecified. Lemma EC.2 is a classical result (Blyth 1980) that also has no formal proof in Mathlib.

Difficulty

The algebra of milestones 3 and 4 is elementary. The difficulty lies in the two cases.

In the few-cell case, the per-cell bound of milestone 2 must be computed from the design's actual run. That requires showing that on the alternating instance the first member of each pair always meets a tie in its cell, and that the global T/2T/2T/2 cap never alters an assignment. The matching cost must then be bounded below. On the line the optimal matching is determined by the order of the points, so a cell's internal imbalance cannot be cancelled by subjects of other cells, and this needs proof. The ideal counts Lk2T/∑iLi2L_k^2T/\sum_iL_i^2Lk2​T/∑i​Li2​ are not even integers, and the rounding must not destroy the T/K\sqrt{T/K}T/K​ bound.

The many-cell case is the least specified step. The paper's sketch (an odd number of subjects per cell, then a coupling with complete randomization) does not say where the unmatched subjects lie. As printed, it does not handle a partition that mixes one long interval with many short ones; such a partition must be handled by a combination of the two constructions. Lemma EC.2 needs a sharp local estimate of the binomial distribution: the error term is O(n−1/2)O(n^{-1/2})O(n−1/2), which is finer than what a plain central limit theorem gives.

Formalization scope

  • Covariates and time. x:Fin T→Rx:\mathrm{Fin}\,T\to\mathbb Rx:FinT→R with every xt∈[0,1]x_t\in[0,1]xt​∈[0,1]. Subjects and cells are indexed from 000, so the paper's subject ttt is index t−1t-1t−1 and its cell k∈[K]k\in[K]k∈[K] is index k−1k-1k−1.
  • Discrepancy. Display (1) is an assignment problem, and it is encoded as the infimum over bijections between the two groups. If the groups differ in size this infimum is Lean's junk value 000. The pigeonhole design always ends with T/2T/2T/2 subjects in each group, so this value is never reached; it could only make a lower bound harder.
  • Randomness. The design reads a coin vector {0,1}T\{0,1\}^T{0,1}T, and coin ttt is used only when subject ttt meets a tie. The expected discrepancy is the average over all 2T2^T2T coin vectors, which is exactly the paper's law. Step 1 (the T/2T/2T/2 cap) is checked before the pigeonhole rule.
  • Partitions. Lemma 4 says "any pigeonhole design", and Definition 3 allows any partition. The proof treats partitions of [0,1][0,1][0,1] into KKK intervals, and the goal is stated for those, encoded by breakpoints. Partitions into arbitrary measurable sets are not covered.
  • Asymptotics. Ω(T1/4)\Omega(T^{1/4})Ω(T1/4) is read as: there exist c>0c>0c>0 and T0T_0T0​, chosen before TTT and the partition, such that for every even T≥T0T\ge T_0T≥T0​ and every partition there exists a hard sequence. T1/4T^{1/4}T1/4 is the real power. In the two cases, K=O(T1/2)K=O(T^{1/2})K=O(T1/2) and K=Ω(T1/2)K=\Omega(T^{1/2})K=Ω(T1/2) are read as K≤C0TK\le C_0\sqrt TK≤C0​T​ and K≥C0TK\ge C_0\sqrt TK≥C0​T​ for an arbitrary fixed C0>0C_0>0C0​>0, on which ccc and T0T_0T0​ may depend. In Lemma EC.2, ppp is fixed before the constant.
  • Printed slips corrected. The proof's Lk=lK−lK−1L_k=l_K-l_{K-1}Lk​=lK​−lK−1​ is read as lk−lk−1l_k-l_{k-1}lk​−lk−1​. Its "due to Lemma EC.4" is read as Lemma EC.2, because the count is binomial, not hypergeometric. In milestone 2 the per-cell constant is absolute and the gap factor is the exact width Lk−ϵL_k-\epsilonLk​−ϵ; the counts are arbitrary even integers, since Lk2T/∑iLi2L_k^2T/\sum_iL_i^2Lk2​T/∑i​Li2​ is not an integer in general.
  • Ruled out. None of the following counts as a proof of the goal: the junk discrepancy 000 of an unbalanced split; a bound on one run of the design, or on its best run, instead of the average over all coin vectors; constants that depend on TTT, KKK or the partition; a hard sequence chosen before the partition.
  • Infrastructure. A complete development needs: the one-dimensional optimal matching (sorted matching, or the L1L^1L1 distance between counting functions); a lemma computing the design's run on structured instances; and the binomial mean absolute deviation. The first and third are reusable well beyond this mission, and contributions of them are welcome. An extension of the goal to arbitrary finite partitions of [0,1][0,1][0,1] is also welcome, but it is not claimed here.

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
  • C. R. Blyth, Expected absolute error of the usual estimator of the binomial parameter, The American Statistician 34(3), 155–157, 1980. https://doi.org/10.1080/00031305.1980.10483022
  • B. Efron, Forcing a sequential experiment to be balanced, Biometrika 58(3), 403–417, 1971. https://doi.org/10.1093/biomet/58.3.403
9 thms3 active usersReviewed
Operations ResearchOptimizationStatistics·Captain: mikedeng1

Optimal Experimental Design for Staggered Rollouts: S-Shaped, Covariate-Balanced Rollouts Maximize the Trace of the GLS Precision of Instantaneous and Lagged EffectsResearch Paper

Motivation

Firms and public agencies often roll a new product, feature or policy out gradually: a few markets first, more later, every market eventually. When the rollout is itself an experiment, its schedule determines how precisely the effect of the treatment can be estimated. A staggered rollout is the common design in which treatment, once switched on in a unit, stays on. Examples are a ride-sharing feature introduced city by city, a hospital protocol adopted ward by ward, or a stepped-wedge clinical trial. The effect of such a treatment often builds up over several periods, so the analyst wants the instantaneous effect and the lagged ones. The design question is then: in which period should each unit adopt?

Xiong, Athey, Bayati and Imbens (arXiv:1911.03764, Management Science 2024) answer this question in closed form for the trace criterion. Their non-adaptive result, Theorem 3.1, says that an optimal rollout has a treated fraction that follows a fixed S-shaped curve in time, and that each adoption cohort balances the observed and latent covariates.

Setting

There are NNN units and TTT periods. A design assigns to every unit iii an adoption time Ai∈[T]∪{∞}A_i\in[T]\cup\{\infty\}Ai​∈[T]∪{∞}, where ∞\infty∞ means never treated. The treatment indicator is coded zit=+1z_{it}=+1zit​=+1 if Ai≤tA_i\le tAi​≤t and zit=−1z_{it}=-1zit​=−1 otherwise. The outcome model, (3.1) of the paper, is

Yit=αi+βt+Xi⊤θt+τ0zit+τ1zi,t−1+⋯+τℓzi,t−ℓ+ui⊤vt+εit.Y_{it}=\alpha_i+\beta_t+X_i^\top\theta_t+\tau_0z_{it}+\tau_1z_{i,t-1}+\dots+\tau_\ell z_{i,t-\ell}+u_i^\top v_t+\varepsilon_{it}.Yit​=αi​+βt​+Xi⊤​θt​+τ0​zit​+τ1​zi,t−1​+⋯+τℓ​zi,t−ℓ​+ui⊤​vt​+εit​.

It has unit effects αi\alpha_iαi​, time effects βt\beta_tβt​, observed covariates Xi∈RdxX_i\in\mathbb R^{d_x}Xi​∈Rdx​ with period-specific slopes θt\theta_tθt​, and ℓ≥0\ell\ge0ℓ≥0 known lags. Latent covariates ui∈Rduu_i\in\mathbb R^{d_u}ui​∈Rdu​ load on random factors vtv_tvt​ with covariance Σv\Sigma_vΣv​, and the noise εit\varepsilon_{it}εit​ has variance σε2\sigma_\varepsilon^2σε2​. The effects τ=(τ0,…,τℓ)\tau=(\tau_0,\dots,\tau_\ell)τ=(τ0​,…,τℓ​) are estimated by generalized least squares on periods ℓ+1,…,T\ell+1,\dots,Tℓ+1,…,T. The per-period error covariance is Ψ=UΣvU⊤+σε2IN\Psi=U\Sigma_vU^\top+\sigma_\varepsilon^2I_NΨ=UΣv​U⊤+σε2​IN​, and the errors are uncorrelated across periods.

By the Gauss–Markov (Aitken) theorem, which is proved on Prove2Me as VectorSpaceOpt.gauss_markov, the covariance of the GLS estimator is (W⊤Σe−1W)−1(W^\top\Sigma_e^{-1}W)^{-1}(W⊤Σe−1​W)−1 for the regressor matrix WWW. The precision Prec⁡(τ^;A)\operatorname{Prec}(\hat\tau;A)Prec(τ^;A) is therefore a deterministic matrix, (EC.2.1)–(EC.2.2): the Schur complement of the nuisance block. The T-optimal design problem (3.2) is

max⁡A∈([T]∪{∞})N tr⁡Prec⁡(τ^;A).\max_{A\in([T]\cup\{\infty\})^N}\ \operatorname{tr}\operatorname{Prec}(\hat\tau;A).A∈([T]∪{∞})Nmax​ trPrec(τ^;A).

With h=⌊ℓ/2⌋h=\lfloor\ell/2\rfloorh=⌊ℓ/2⌋, the paper defines a vector a(ℓ)=(M(ℓ))−1b(ℓ)a^{(\ell)}=(M^{(\ell)})^{-1}b^{(\ell)}a(ℓ)=(M(ℓ))−1b(ℓ) of length ℓ−h\ell-hℓ−h from explicit M(ℓ)M^{(\ell)}M(ℓ), b(ℓ)b^{(\ell)}b(ℓ) ((EC.1.2)–(EC.1.3)). The S-shaped fraction ωℓ,t∗\omega^*_{\ell,t}ωℓ,t∗​ of (3.4) has five stages: it is −1-1−1 for t≤ht\le ht≤h, equals at−h(ℓ)a^{(\ell)}_{t-h}at−h(ℓ)​ for h<t≤ℓh<t\le\ellh<t≤ℓ, is linear, −1+(2t−(ℓ+1))/(T−ℓ)-1+(2t-(\ell+1))/(T-\ell)−1+(2t−(ℓ+1))/(T−ℓ), for ℓ<t≤T−ℓ\ell<t\le T-\ellℓ<t≤T−ℓ, is antisymmetric in the fourth stage, and is 111 at the end.

Formalization targets

Goal: Theorem 3.1

Assume σε2>0\sigma_\varepsilon^2>0σε2​>0, Σv=σε2I\Sigma_v=\sigma_\varepsilon^2IΣv​=σε2​I, centred rows ∑iXi=0\sum_iX_i=0∑i​Xi​=0 and ∑iui=0\sum_iu_i=0∑i​ui​=0, ∑iXiui⊤=0\sum_iX_iu_i^\top=0∑i​Xi​ui⊤​=0, and, when ℓ>0\ell>0ℓ>0, T>(ℓ3+13ℓ2+7ℓ+3)/(8ℓ)T>(\ell^3+13\ell^2+7\ell+3)/(8\ell)T>(ℓ3+13ℓ2+7ℓ+3)/(8ℓ). If

A∈Aℓ∩AX∩AU,A\in\mathbb A_\ell\cap\mathbb A_X\cap\mathbb A_U,A∈Aℓ​∩AX​∩AU​,

then tr⁡Prec⁡(τ^;A′)≤tr⁡Prec⁡(τ^;A)\operatorname{tr}\operatorname{Prec}(\hat\tau;A')\le\operatorname{tr}\operatorname{Prec}(\hat\tau;A)trPrec(τ^;A′)≤trPrec(τ^;A) for every design A′A'A′. Here Aℓ\mathbb A_\ellAℓ​ is the set of designs whose treated fraction at every ttt is (1+ωℓ,t∗)/2(1+\omega^*_{\ell,t})/2(1+ωℓ,t∗​)/2, and AX\mathbb A_XAX​, AU\mathbb A_UAU​ are the sets of designs whose adoption cohorts in periods 2,…,T2,\dots,T2,…,T have zero sum of XiX_iXi​ (respectively uiu_iui​).

Milestones

  1. Lemma EC.1.2 (corrected): tr⁡Prec⁡(τ^)=−Nσε2∑j(fj,1+fj,X+fj,U)\operatorname{tr}\operatorname{Prec}(\hat\tau)=-\frac N{\sigma_\varepsilon^2}\sum_{j}\big(f_{j,1}+f_{j,X}+f_{j,U}\big)trPrec(τ^)=−σε2​N​∑j​(fj,1​+fj,X​+fj,U​). The first term depends only on the treated fractions, the second only on XXX, the third only on UUU.
  2. The vector a(ℓ)a^{(\ell)}a(ℓ) exists, and the resulting ω∗\omega^*ω∗ is feasible: nondecreasing, with values in [−1,1][-1,1][−1,1], and the stage-2 values lie in [−1,−1+(ℓ+1)/(T−ℓ)][-1,-1+(\ell+1)/(T-\ell)][−1,−1+(ℓ+1)/(T−ℓ)].
  3. ω∗\omega^*ω∗ minimizes f1=∑jfj,1f_1=\sum_jf_{j,1}f1​=∑j​fj,1​ over all nondecreasing paths in [−1,1]T[-1,1]^T[−1,1]T.
  4. The covariate terms are nonnegative, and they vanish when X⊤ztX^\top z_tX⊤zt​ and U⊤ztU^\top z_tU⊤zt​ are constant in ttt.

Significance

The theorem turns a combinatorial design problem over (T+1)N(T+1)^N(T+1)N schedules into explicit conditions. The fraction of treated units follows a universal curve that depends only on (ℓ,T)(\ell,T)(ℓ,T), and the cohorts must balance the covariates. Two features are useful in practice. Without lags the optimal fraction grows linearly. With lags the optimal rollout starts and ends more slowly, which is what the extra stages capture. The paper uses these conditions to build practical designs (rounding the fractions to integers, stratifying on estimated latent factors) and an adaptive version.

The result is proved in the paper; this mission formalizes it. Formalizing it also repairs the record. Two statements in the printed proof are false as printed, and so is one display. The vector bℓb_\ellbℓ​ of Lemma EC.1.2 has an off-by-one, and its observed-covariate term is correct only when X⊤X=N IX^\top X=N\,IX⊤X=NI. The linear term of (EC.2.6) is summed over the wrong range. The mission states the corrected versions, each with a counterexample to the printed one. Theorem 3.1 itself is true as printed. Planning checked it by brute force on small instances, and checked the optimality of ω∗\omega^*ω∗ with an exact certificate for ℓ≤12\ell\le12ℓ≤12. As far as a search of Prove2Me shows, nothing about panel experimental design or GLS precision has been formalized there before.

Difficulty

The objective is a trace of a Schur complement, and the design enters through ±1\pm1±1 entries in a large regression. Expanding that objective into the separable form of Lemma EC.1.2 requires exact control of the projection onto the two-way fixed effects and the period-specific covariate slopes. This is where the printed lemma goes wrong. The relaxed problem in ω\omegaω is a convex quadratic program with monotonicity and box constraints. Its solution is not linear when ℓ>0\ell>0ℓ>0: the stage-2 values solve a linear system whose feasibility (bounds and monotonicity) holds only above a threshold in TTT. That is the role of the cubic threshold. A natural first idea is that "spread adoption evenly" is optimal. It is optimal only for ℓ=0\ell=0ℓ=0; for ℓ>0\ell>0ℓ>0 the KKT system forces nonlinear stages at both ends. A second step must also be checked: the ±1\pm1±1 designs, whose fractions satisfy Aℓ\mathbb A_\ellAℓ​ and whose cohorts satisfy the balance conditions, minimize all three terms at once.

Formalization scope

  • Units and periods are Fin N and Fin T, with periods 0-based. A design is Fin N → WithTop (Fin T), with ⊤ for never treated, and zit=±1z_{it}=\pm1zit​=±1.
  • The precision trace is ∑j=0ℓmin⁡γ\sum_{j=0}^{\ell}\min_\gamma∑j=0ℓ​minγ​ of the Ψ−1\Psi^{-1}Ψ−1-weighted residual sum of squares of the lag-jjj column regressed on the nuisance columns. These are all NNN unit dummies, a time dummy for each observed period, and a slope on XiX_iXi​ for each observed period. This equals the trace of (EC.2.2) wherever that formula is defined. It is defined for every design and every XXX, with no matrix inverse of a possibly singular matrix.
  • The random model enters only through Σe=I⊗Ψ\Sigma_e=I\otimes\PsiΣe​=I⊗Ψ. Assumptions 2.1, 2.2 and 3.1 are encoded by the design type and this covariance; σε2>0\sigma_\varepsilon^2>0σε2​>0 is a hypothesis.
  • The threshold is read as "if ℓ>0\ell>0ℓ>0 then T>…T>\dotsT>…", because the expression is undefined at ℓ=0\ell=0ℓ=0.
  • Lemma EC.1.2 is stated with bℓ,t=(Tℓ+1−2t)/Tℓb_{\ell,t}=(T_\ell+1-2t)/T_\ellbℓ,t​=(Tℓ​+1−2t)/Tℓ​, and its XXX-term is 1Nz⊤(P⊗HX)z\frac1N z^\top(P\otimes H_X)zN1​z⊤(P⊗HX​)z, with HXH_XHX​ the projector onto the column space of XXX, written without a pseudo-inverse.

The comparison design A′A'A′ ranges over all designs, never over Aℓ\mathbb A_\ellAℓ​ or relaxed fractions. The coding is ±1\pm1±1, not 0/10/10/1. The estimator uses only periods ℓ+1,…,T\ell+1,\dots,Tℓ+1,…,T. Coding with 0/10/10/1 or dropping the period-specific slopes would change ω∗\omega^*ω∗ and the covariate term, and would be a different theorem. The set Aopt\mathbb A_{\mathrm{opt}}Aopt​ can be empty for some NNN, in which case the goal holds vacuously, exactly as the paper's "if" allows. A sanity file exhibits nonempty instances, at ℓ=0\ell=0ℓ=0 with dx=du=1d_x=d_u=1dx​=du​=1 and at ℓ=1\ell=1ℓ=1, and reproduces a value of Example EC.1.4.

A complete development needs least-squares projections, Schur complements, centring matrices, and a KKT certificate for a monotone-constrained quadratic program. The first three are reusable well beyond this mission. Contributions to any milestone are welcome.

Selected references

  • R. Xiong, S. Athey, M. Bayati, G. Imbens, Optimal Experimental Design for Staggered Rollouts, Management Science, 2024; arXiv:1911.03764v6. https://arxiv.org/abs/1911.03764
  • A. C. Atkinson, V. V. Fedorov, The design of experiments for discriminating between two rival models, Biometrika 62(1), 1975. https://doi.org/10.1093/biomet/62.1.57
  • J. Bai, Inferential theory for factor models of large dimensions, Econometrica 71(1), 2003. https://doi.org/10.1111/1468-0262.00392
  • M. A. Hussey, J. P. Hughes, Design and analysis of stepped wedge cluster randomized trials, Contemporary Clinical Trials 28(2), 2007. https://doi.org/10.1016/j.cct.2006.05.007
7 thms1 active userReviewed
Operations ResearchOptimizationStatistics·Captain: mikedeng1

Correlated Cluster-Based Randomized Experiments: Robust Variance Minimization: The Optimal Independent Block Randomization Experiment Is Asymptotically Optimal at Rate O(√(w₁²/Σwᵢ²))Research Paper

Motivation

Online platforms run randomized experiments on users who interact with each other. When the treatment of one user affects the outcome of another, comparing treated and control users is biased. A standard remedy is cluster-based randomization: users are grouped into clusters with few edges between them, and whole clusters are assigned to treatment or control (Ugander et al., KDD 2013). The price is variance: there are far fewer clusters than users, and clusters differ in size, so the Horvitz–Thompson estimator of the treatment effect can be very noisy.

Candogan, Chen and Niazadeh (SSRN 3852100; Management Science, 2024) observe that the experimenter controls more than the marginal treatment probability of each cluster: it also controls the correlation between the assignments of different clusters. Correlating assignments negatively, for example by treating exactly a fixed number of clusters, can reduce the variance. Since the potential outcomes are unknown, the paper designs the correlation against the worst case. This mission formalizes the paper's main asymptotic result: a simple family of designs, independent block randomization (IBR), is asymptotically as good as the best possible design whenever no single cluster dominates.

Setting

There are nnn clusters. Cluster iii is assigned Zi∈{0,1}Z_i\in\{0,1\}Zi​∈{0,1} (111 = treatment), and every cluster is treated with the same known probability q∈(0,12]q\in(0,\tfrac12]q∈(0,21​]. An experiment is a joint law PPP of Z=(Z1,…,Zn)Z=(Z_1,\dots,Z_n)Z=(Z1​,…,Zn​) with P[Zi=1]=q\mathbb P[Z_i=1]=qP[Zi​=1]=q for every iii; the set of experiments is Pq\mathcal P_qPq​. Its correlation matrix is Σ(P)ik=(EP[ZiZk]−q2)/(q(1−q))\Sigma(P)_{ik}=(\mathbb E_P[Z_iZ_k]-q^2)/(q(1-q))Σ(P)ik​=(EP​[Zi​Zk​]−q2)/(q(1−q)).

Each cluster has a size wi≥0w_i\ge0wi​≥0. Nature chooses a vector yyy in the box ×i∈[n][0,wi]\times_{i\in[n]}[0,w_i]×i∈[n]​[0,wi​], and the worst-case variance of a matrix SSS is max⁡y∈×i[0,wi]y⊤Sy\max_{y\in\times_i[0,w_i]}y^\top Symaxy∈×i​[0,wi​]​y⊤Sy. Under the paper's Assumption 2.1, the variance of the Horvitz–Thompson estimator reduces to this quantity (Lemma 2.1). The robust correlation-design problem (1) is

VOPT=min⁡P∈Pq max⁡y∈×i∈[n][0,wi]y⊤Σ(P) y.V^{\mathrm{OPT}}=\min_{P\in\mathcal P_q}\ \max_{y\in\times_{i\in[n]}[0,w_i]}y^\top\Sigma(P)\,y .VOPT=P∈Pq​min​ y∈×i∈[n]​[0,wi​]max​y⊤Σ(P)y.

Relaxing Σ(P)\Sigma(P)Σ(P) to an arbitrary correlation matrix (positive semidefinite, unit diagonal) gives the lower bound VLB≤VOPTV^{\mathrm{LB}}\le V^{\mathrm{OPT}}VLB≤VOPT of (5).

An IBR experiment sorts the clusters by decreasing size, w1≥w2≥⋯≥wnw_1\ge w_2\ge\dots\ge w_nw1​≥w2​≥⋯≥wn​, cuts the sorted list into consecutive blocks, and on each block of mmm clusters independently treats a uniformly random set of ⌊qm⌋\lfloor qm\rfloor⌊qm⌋ clusters with probability p=⌈qm⌉−qmp=\lceil qm\rceil-qmp=⌈qm⌉−qm, and of ⌈qm⌉\lceil qm\rceil⌈qm⌉ clusters otherwise. The best IBR experiment is found by a dynamic program, the Bellman equation (4). Its worst-case variance is VDPV^{\mathrm{DP}}VDP. For an integer k≥1k\ge1k≥1, the kkk-partition IBR experiment first groups the clusters into consecutive groups of kkk and partitions each group optimally; its worst-case variance is VkV^kVk. Finally, fq(k)f_q(k)fq​(k) denotes VOPTV^{\mathrm{OPT}}VOPT for kkk clusters of size one.

Formalization targets

Goal: Theorem 4.8

For every q∈(0,12]q\in(0,\tfrac12]q∈(0,21​] there is a constant C(q)C(q)C(q) such that for all sorted sizes with w1>0w_1>0w1​>0,

VDP−VLBVLB≤C(q)w12∑i∈[n]wi2,\frac{V^{\mathrm{DP}}-V^{\mathrm{LB}}}{V^{\mathrm{LB}}}\le C(q)\sqrt{\frac{w_1^2}{\sum_{i\in[n]}w_i^2}},VLBVDP−VLB​≤C(q)∑i∈[n]​wi2​w12​​​,

and along every sequence of instances with w12/∑iwi2→0w_1^2/\sum_iw_i^2\to0w12​/∑i​wi2​→0, both this quotient tends to 000 and VDP/VOPT→1V^{\mathrm{DP}}/V^{\mathrm{OPT}}\to1VDP/VOPT→1. The constant is not fixed: only its dependence on qqq alone is asserted, so an improved constant does not invalidate the goal.

Milestones

In attack order:

  • additivity of the IBR worst case over blocks (§3.2);
  • Proposition 3.1, the optimal experiment for equal sizes, with VOPT=14n2n−1V^{\mathrm{OPT}}=\tfrac14\tfrac{n^2}{n-1}VOPT=41​n−1n2​, n+14\tfrac{n+1}{4}4n+1​ or h∗+h∗(h∗−1)σh^*+h^*(h^*-1)\sigmah∗+h∗(h∗−1)σ, and 4VOPT/n→14V^{\mathrm{OPT}}/n\to14VOPT/n→1;
  • the Bellman equation (4);
  • Lemma 4.1, VLB≤VOPTV^{\mathrm{LB}}\le V^{\mathrm{OPT}}VLB≤VOPT;
  • Lemma 4.2, max⁡{w12,14∑iwi2}≤VLB≤VOPT≤∑iwi2\max\{w_1^2,\tfrac14\sum_iw_i^2\}\le V^{\mathrm{LB}}\le V^{\mathrm{OPT}}\le\sum_iw_i^2max{w12​,41​∑i​wi2​}≤VLB≤VOPT≤∑i​wi2​;
  • the bound (13), Vk≤fq(k)SkV^k\le f_q(k)S_kVk≤fq​(k)Sk​;
  • Lemma 4.3, Vk/VLB≤fq(k)(4k+k−1kw12VLB)V^k/V^{\mathrm{LB}}\le f_q(k)\big(\tfrac4k+\tfrac{k-1}{k}\tfrac{w_1^2}{V^{\mathrm{LB}}}\big)Vk/VLB≤fq​(k)(k4​+kk−1​VLBw12​​);
  • Theorem 4.5, the approximation ratio of the optimal IBR experiment;
  • Lemma 4.7, fq(k)≤14(k+C(q))f_q(k)\le\tfrac14(k+C(q))fq​(k)≤41​(k+C(q)).

Significance

The result. Problem (1) optimizes over all joint laws of nnn binary variables, an exponentially large polytope, and its optimal design is unknown in general. Theorem 4.8 says that nothing is lost asymptotically by restricting to IBR designs, which are computable in polynomial time and easy to implement and explain. The rate quantifies the loss through a single statistic of the cluster sizes. Example 4.1 of the paper shows that the no-dominating-cluster condition cannot be dropped. Theorem 4.5 adds a finite-nnn guarantee: for instance, a 7/37/37/3-approximation at q=12q=\tfrac12q=21​, against a factor 444 for independent assignment.

Formalizing it. The result is proved in the paper; none of it is machine-checked. A formal proof requires: the second-moment calculus of exchangeable Bernoulli laws behind Proposition 3.1; the identification of VOPTV^{\mathrm{OPT}}VOPT for equal sizes; the lower bound of Lemma 4.2, obtained through a randomized outcome vector; and the analysis chain of §4. The development also checks the paper's informal steps, such as "the worst case of a group grows with its sizes" in the proof of (13), and the proof of Lemma 4.7, whose displayed equality in Appendix B.7 holds only as an inequality (the lemma is unaffected).

Difficulty

The obvious argument compares VDPV^{\mathrm{DP}}VDP with VOPTV^{\mathrm{OPT}}VOPT directly. It fails because VOPTV^{\mathrm{OPT}}VOPT has no closed form beyond equal sizes, so the comparison has to go through the relaxation VLBV^{\mathrm{LB}}VLB, and the lower bound on VLBV^{\mathrm{LB}}VLB must hold for every correlation matrix at once. A second obstacle is that the IBR worst case is a maximum of a quadratic over a box, and maxima do not add in general; additivity holds only because the blocks are independent. Finally, the asymptotic statement needs Proposition 3.1 with all its constants: the linear growth fq(k)≈k/4f_q(k)\approx k/4fq​(k)≈k/4 is what makes the bound vanish, and that growth needs the exact optimal value for kkk equal clusters, not just a bound.

Formalization scope

All objects are finite and real-valued; no measure theory is used. Clusters are Fin n, 0-based (w1w_1w1​ is w ⟨0, _⟩). Assignments are Fin n → Bool. A law is a nonnegative real weight function on assignments with total mass one and marginals qqq. The worst case is a real sSup over the whole box (not only its vertices). VOPTV^{\mathrm{OPT}}VOPT and VLBV^{\mathrm{LB}}VLB are real sInfs of nonempty sets bounded below by 000. Partitions into consecutive blocks are Mathlib's Composition n, and VDPV^{\mathrm{DP}}VDP is the minimum over them. VkV^kVk is the minimum over the compositions refining the kkk-grouping, which equals the paper's construction because the IBR worst case is additive. fq(k)f_q(k)fq​(k) is VOPTV^{\mathrm{OPT}}VOPT of kkk unit clusters, not a closed formula. Every statement assumes 0<q≤120<q\le\tfrac120<q≤21​ and w≥0w\ge0w≥0. The §4 statements also assume sizes sorted decreasingly (Remark 4.1) and w1>0w_1>0w1​>0, which excludes only the all-zero instance where every ratio is 0/00/00/0. Proposition 3.1 assumes n≥2n\ge2n≥2, and k≥1k\ge1k≥1 wherever kkk appears.

The statements rule out the trivializing formalizations. The constant CCC is chosen after qqq and before nnn and www, never per instance. VDPV^{\mathrm{DP}}VDP ranges over consecutive blocks of the sorted clusters, not over arbitrary partitions. It is defined from the actual IBR law and its correlation matrix, not from a hand-written block matrix.

All definitions live in one file, CorrClusterExp.IBR.Setting. Reusable beyond this mission: the robust correlation-design problem, the exchangeable block law, and the IBR construction. Proofs of any milestone are welcome, as are Lemma 3.3 (the worst case of a block) and the high-multiplicity and logarithmic-partition results (Theorems 4.9, 4.10), which are not part of this mission.

Selected references

  • O. Candogan, C. Chen, R. Niazadeh, Correlated Cluster-Based Randomized Experiments: Robust Variance Minimization, Management Science, 2024; author manuscript SSRN 3852100, version of March 22, 2023. https://ssrn.com/abstract=3852100
  • J. Ugander, B. Karrer, L. Backstrom, J. Kleinberg, Graph Cluster Randomization: Network Exposure to Multiple Universes, KDD 2013. https://doi.org/10.1145/2487575.2487695
  • D. G. Horvitz, D. J. Thompson, A Generalization of Sampling Without Replacement from a Finite Universe, Journal of the American Statistical Association 47, 1952. https://doi.org/10.1080/01621459.1952.10483446
11 thms1 active userReviewed
Operations ResearchProbabilityStatistics+1·Captain: mikedeng1

Stochastic Kriging for Simulation Metamodeling II: The MSE of the Optimal Stochastic Kriging Predictor Exceeds the Kriging MSE by a Positive Definite FormResearch Paper

Motivation

A simulation metamodel is a cheap surrogate for an expensive stochastic simulation: after running the simulation at a few design settings, one predicts the mean response at settings never simulated. Kriging, the interpolation method of geostatistics and of the design and analysis of computer experiments (DACE; Sacks, Welch, Mitchell and Wynn 1989; Santner, Williams and Notz 2003), treats the unknown response surface as a realization of a random field and predicts by the best linear predictor. Kriging was developed for deterministic computer codes, where an observation is the exact response. A stochastic simulation returns the response plus sampling noise, and the noise may be correlated across settings when the experimenter uses common random numbers (CRN).

Ankenman, Nelson and Staum, Stochastic Kriging for Simulation Metamodeling (Proc. 2008 Winter Simulation Conference, pp. 362–370), extend kriging to this setting. The mission formalizes §2 of that paper: the form of the optimal linear predictor, called stochastic kriging, and the formula for its mean squared error, which shows how much the simulation noise costs. The source used throughout is the WSC 2008 proceedings paper, not the later Operations Research 58(2) 2010 article, whose numbering differs.

Setting

Fix a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) and a set of design settings x\mathbf xx. On replication j=1,2,…j=1,2,\dotsj=1,2,… at setting x\mathbf xx the simulation outputs (display (3), with constant trend)

Yj(x)=β0+M(x)+εj(x).\mathcal Y_j(\mathbf x)=\beta_0+\mathsf M(\mathbf x)+\varepsilon_j(\mathbf x).Yj​(x)=β0​+M(x)+εj​(x).

The constant β0\beta_0β0​ is the overall mean. M\mathsf MM is a mean-zero random field, the extrinsic uncertainty imposed by the modeller. εj(x)\varepsilon_j(\mathbf x)εj​(x) is mean-zero sampling noise, the intrinsic uncertainty of the simulation; its variance may depend on x\mathbf xx, and noises at different settings may be correlated (CRN). All of these have finite second moments, and the field is uncorrelated with the noise.

An experiment design runs ni≥1n_i\ge1ni​≥1 replications at each of kkk design points x1,…,xk\mathbf x_1,\dots,\mathbf x_kx1​,…,xk​. The data are the sample means (4)

Yˉ(xi)=1ni∑j=1niYj(xi),Yˉ=(Yˉ(x1),…,Yˉ(xk))⊤,\bar{\mathcal Y}(\mathbf x_i)=\frac1{n_i}\sum_{j=1}^{n_i}\mathcal Y_j(\mathbf x_i),\qquad\bar{\mathcal Y}=(\bar{\mathcal Y}(\mathbf x_1),\dots,\bar{\mathcal Y}(\mathbf x_k))^\top,Yˉ​(xi​)=ni​1​j=1∑ni​​Yj​(xi​),Yˉ​=(Yˉ​(x1​),…,Yˉ​(xk​))⊤,

and the target at a point x0\mathbf x_0x0​ is the noise-free response Y(x0)=β0+M(x0)\mathsf Y(\mathbf x_0)=\beta_0+\mathsf M(\mathbf x_0)Y(x0​)=β0​+M(x0​).

Write ΣM(x,x′)=Cov[M(x),M(x′)]\Sigma_{\mathsf M}(\mathbf x,\mathbf x')=\mathrm{Cov}[\mathsf M(\mathbf x),\mathsf M(\mathbf x')]ΣM​(x,x′)=Cov[M(x),M(x′)]. Then ΣM\Sigma_{\mathsf M}ΣM​ is the k×kk\times kk×k matrix of these covariances at the design points, ΣM(x0,⋅)\Sigma_{\mathsf M}(\mathbf x_0,\cdot)ΣM​(x0​,⋅) is the vector (Cov[M(x0),M(xi)])i(\mathrm{Cov}[\mathsf M(\mathbf x_0),\mathsf M(\mathbf x_i)])_{i}(Cov[M(x0​),M(xi​)])i​, and Σε\Sigma_\varepsilonΣε​ is the k×kk\times kk×k covariance matrix of the averaged noises ∑j=1niεj(xi)/ni\sum_{j=1}^{n_i}\varepsilon_j(\mathbf x_i)/n_i∑j=1ni​​εj​(xi​)/ni​. A linear predictor (5) is λ0+λ⊤Yˉ\lambda_0+\lambda^\top\bar{\mathcal Y}λ0​+λ⊤Yˉ​ with arbitrary weights (λ0,λ)∈R×Rk(\lambda_0,\lambda)\in\mathbb R\times\mathbb R^k(λ0​,λ)∈R×Rk; its mean squared error is E[(λ0+λ⊤Yˉ−Y(x0))2]\mathrm E[(\lambda_0+\lambda^\top\bar{\mathcal Y}-\mathsf Y(\mathbf x_0))^2]E[(λ0​+λ⊤Yˉ​−Y(x0​))2]. The optimal MSE MSE⋆\mathrm{MSE}^\starMSE⋆ is the infimum of this quantity over all weights.

Formalization targets

Goal: display (7)

There is a rule Ξ\XiΞ, assigning a positive definite matrix Ξ(ΣM,Σε)\Xi(\Sigma_{\mathsf M},\Sigma_\varepsilon)Ξ(ΣM​,Σε​) to every pair of positive definite matrices, such that in every model as above with ΣM≻0\Sigma_{\mathsf M}\succ0ΣM​≻0 and Σε≻0\Sigma_\varepsilon\succ0Σε​≻0, and at every x0\mathbf x_0x0​,

MSE⋆=ΣM(x0,x0)−ΣM(x0,⋅)⊤[ΣM+Σε]−1ΣM(x0,⋅)=[ΣM(x0,x0)−ΣM(x0,⋅)⊤ΣM−1ΣM(x0,⋅)]+ΣM(x0,⋅)⊤ Ξ ΣM(x0,⋅).\begin{aligned}\mathrm{MSE}^\star&=\Sigma_{\mathsf M}(\mathbf x_0,\mathbf x_0)-\Sigma_{\mathsf M}(\mathbf x_0,\cdot)^\top[\Sigma_{\mathsf M}+\Sigma_\varepsilon]^{-1}\Sigma_{\mathsf M}(\mathbf x_0,\cdot)\\&=\Big[\Sigma_{\mathsf M}(\mathbf x_0,\mathbf x_0)-\Sigma_{\mathsf M}(\mathbf x_0,\cdot)^\top\Sigma_{\mathsf M}^{-1}\Sigma_{\mathsf M}(\mathbf x_0,\cdot)\Big]+\Sigma_{\mathsf M}(\mathbf x_0,\cdot)^\top\,\Xi\,\Sigma_{\mathsf M}(\mathbf x_0,\cdot).\end{aligned}MSE⋆​=ΣM​(x0​,x0​)−ΣM​(x0​,⋅)⊤[ΣM​+Σε​]−1ΣM​(x0​,⋅)=[ΣM​(x0​,x0​)−ΣM​(x0​,⋅)⊤ΣM−1​ΣM​(x0​,⋅)]+ΣM​(x0​,⋅)⊤ΞΣM​(x0​,⋅).​

The bracket is the usual kriging MSE. The goal also states that MSE⋆\mathrm{MSE}^\starMSE⋆ strictly exceeds it whenever ΣM(x0,⋅)≠0\Sigma_{\mathsf M}(\mathbf x_0,\cdot)\neq0ΣM​(x0​,⋅)=0. The matrix Ξ\XiΞ is existential and depends only on the two covariance matrices, not on x0\mathbf x_0x0​.

Milestone: display (6)

If ΣM+Σε≻0\Sigma_{\mathsf M}+\Sigma_\varepsilon\succ0ΣM​+Σε​≻0, the stochastic kriging predictor

Y^(x0)=β0+ΣM(x0,⋅)⊤[ΣM+Σε]−1(Yˉ−β01k)\widehat{\mathsf Y}(\mathbf x_0)=\beta_0+\Sigma_{\mathsf M}(\mathbf x_0,\cdot)^\top[\Sigma_{\mathsf M}+\Sigma_\varepsilon]^{-1}(\bar{\mathcal Y}-\beta_0\mathbf 1_k)Y(x0​)=β0​+ΣM​(x0​,⋅)⊤[ΣM​+Σε​]−1(Yˉ​−β0​1k​)

is of the form (5), attains the smallest MSE among all predictors of that form, and is the only one that does.

Further items (not milestones)

  • (9)–(10): the two-point example, with closed forms for the predictor and its MSE in terms of τ2\tau^2τ2, r12r_{12}r12​, r0r_0r0​, V\mathsf VV, ρ\rhoρ and nnn.
  • (14): the equicorrelated example, MSE⋆=τ2(1−kr02/(1+(k−1)r+γ/n))\mathrm{MSE}^\star=\tau^2\big(1-k r_0^2/(1+(k-1)r+\gamma/n)\big)MSE⋆=τ2(1−kr02​/(1+(k−1)r+γ/n)).
  • §3, p. 365: under the Gaussian Assumption 1, Y^(x0)=E[Y(x0)∣Yˉ]\widehat{\mathsf Y}(\mathbf x_0)=\mathrm E[\mathsf Y(\mathbf x_0)\mid\bar{\mathcal Y}]Y(x0​)=E[Y(x0​)∣Yˉ​] almost surely.

Significance

Display (7) quantifies the price of simulation noise. With exact observations the best achievable error is the kriging MSE; with noisy observations it is larger by a positive definite form in the cross-covariance vector. Every point x0\mathbf x_0x0​ that is correlated with the design therefore loses accuracy. The two examples make this concrete. In (10) the MSE increases with the intrinsic correlation ρ\rhoρ, which is why the paper concludes that common random numbers, a standard variance-reduction device for comparing systems, do not help prediction. Display (14) is the baseline against which the paper measures the cost of estimating the noise variance. The conditional-expectation statement shows that under Gaussian assumptions stochastic kriging is optimal among all predictors, not only linear ones.

The results are classical in substance: they are the best-linear-prediction formulas of second-order random-field theory, applied to data whose covariance is ΣM+Σε\Sigma_{\mathsf M}+\Sigma_\varepsilonΣM​+Σε​. The paper states them without proof ("we can show"). No machine-checked version exists. Formalizing them yields a reusable, measure-theoretic best-linear-predictor theorem for random vectors defined from a model rather than postulated, together with the Loewner-order fact behind the positive definiteness of Ξ\XiΞ.

Difficulty

The algebra is short; the difficulty is in deriving the second-moment structure from the model, not assuming it. The covariance of Yˉ\bar{\mathcal Y}Yˉ​ must be computed from the sample-mean definition, using bilinearity of covariance over finite sums of square-integrable variables, and shown to equal ΣM+Σε\Sigma_{\mathsf M}+\Sigma_\varepsilonΣM​+Σε​. The cross-covariance with Y(x0)\mathsf Y(\mathbf x_0)Y(x0​) must be shown to equal ΣM(x0,⋅)\Sigma_{\mathsf M}(\mathbf x_0,\cdot)ΣM​(x0​,⋅). The MSE of an arbitrary affine predictor then has to be written as a quadratic in (λ0,λ)(\lambda_0,\lambda)(λ0​,λ), and its infimum identified.

A first idea is to take "a random vector with mean β01\beta_0\mathbf 1β0​1 and covariance Σ\SigmaΣ" as the hypothesis. That proves a different, more abstract statement and leaves the model's content unproved.

For the second line of (7), the positive definiteness of Ξ\XiΞ does not follow from a scalar argument. It is a matrix inequality, (A+B)−1≺A−1(A+B)^{-1}\prec A^{-1}(A+B)−1≺A−1 for A,B≻0A,B\succ0A,B≻0, and it fails without Σε≻0\Sigma_\varepsilon\succ0Σε​≻0: when Σε=0\Sigma_\varepsilon=0Σε​=0 the two lines coincide.

Formalization scope

  • The model. Settings form an arbitrary type X; design points are x : Fin k → X, so the paper's index iii is i.val + 1. Replication j≥1j\ge1j≥1 is index j - 1 of a sequence ε : ℕ → X → Ω → ℝ.
  • Moments and covariances. Field and noise are in L2L^2L2 and have mean zero. Covariances are Mathlib's covariance. The optimal MSE is an infimum over all of R×Rk\mathbb R\times\mathbb R^kR×Rk, with no unbiasedness constraint and no sign constraint.
  • Hypotheses not printed in §2. Three are added and disclosed:
    1. uncorrelatedness of M\mathsf MM and ε\varepsilonε, the second-order content of Assumption 1's "independent of M\mathsf MM", without which the covariance of Yˉ\bar{\mathcal Y}Yˉ​ is not ΣM+Σε\Sigma_{\mathsf M}+\Sigma_\varepsilonΣM​+Σε​;
    2. square integrability;
    3. ΣM≻0\Sigma_{\mathsf M}\succ0ΣM​≻0 and Σε≻0\Sigma_\varepsilon\succ0Σε​≻0 in the goal. Lean's matrix inverse returns 000 for a singular matrix, and Ξ≻0\Xi\succ0Ξ≻0 is false when Σε\Sigma_\varepsilonΣε​ is singular.
  • Generality kept. No Gaussianity, no independence across replications and no "no CRN" restriction is imposed on (6) and (7).
  • Examples. ∣r12∣<1|r_{12}|<1∣r12​∣<1 in (10) and r≤1r\le1r≤1 in (14) are added, since both are correlations.
  • Non-trivializing. A positive semidefinite Ξ\XiΞ, or a Ξ\XiΞ chosen after x0\mathbf x_0x0​, would make the goal trivial or strictly weaker; the statement fixes Ξ\XiΞ as a function of (ΣM,Σε)(\Sigma_{\mathsf M},\Sigma_\varepsilon)(ΣM​,Σε​) before the model and the point.

Infrastructure needed and reusable beyond this mission:

  • covariance of averages of L2L^2L2 random variables;
  • the MSE of an affine predictor as a quadratic form;
  • minimization of a positive definite quadratic;
  • the Loewner antitonicity of the inverse;
  • for the conditional-expectation item, Gaussian conditioning via uncorrelated-hence-independent residuals.

Contributions to any of these are welcome.

Selected references

  • B. Ankenman, B. L. Nelson, J. Staum, Stochastic Kriging for Simulation Metamodeling, Proceedings of the 2008 Winter Simulation Conference, IEEE, pp. 362–370, 2008. http://www.informs-sim.org/wsc08papers/042.pdf
  • B. Ankenman, B. L. Nelson, J. Staum, Stochastic Kriging for Simulation Metamodeling, Operations Research 58(2), 371–382, 2010 (later journal version, not used here). https://doi.org/10.1287/opre.1090.0754
  • J. Sacks, W. J. Welch, T. J. Mitchell, H. P. Wynn, Design and Analysis of Computer Experiments, Statistical Science 4(4), 409–423, 1989. https://doi.org/10.1214/ss/1177012413
  • T. J. Santner, B. J. Williams, W. I. Notz, The Design and Analysis of Computer Experiments, Springer, 2003. https://doi.org/10.1007/978-1-4757-3799-8
4 thms1 active userReviewed
Operations ResearchProbabilityStatistics+1·Captain: mikedeng1

Stochastic Kriging for Simulation Metamodeling I: The Plug-In Stochastic Kriging Predictor Is UnbiasedResearch Paper

Motivation

Stochastic simulation models of queues, supply chains and manufacturing systems are often too slow to run at every input setting of interest. A metamodel fitted to a moderate number of simulation runs then stands in for the simulation, for instance inside an optimization or a sensitivity analysis. Kriging, developed in geostatistics and in the design and analysis of deterministic computer experiments (DACE), predicts an unknown response surface by treating it as a realization of a Gaussian random field. Deterministic kriging interpolates its data exactly, which is wrong for stochastic simulation, where each run returns the response plus sampling noise.

Ankenman, Nelson and Staum's stochastic kriging separates the two sources of uncertainty: the extrinsic uncertainty of the unknown surface and the intrinsic uncertainty of the simulation output. Its optimal predictor requires the intrinsic noise variances, which are never known in practice and are replaced by sample variances computed from the same replications. This mission formalizes the paper's first key result: this plug-in step introduces no prediction bias.

The source is the Winter Simulation Conference 2008 proceedings version of the paper (pp. 362–370). The later Operations Research 58(2) (2010) article numbers its results differently and is not the reference here.

Setting

Fix a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) and design variables x∈Rd\mathbf x\in\mathbb R^dx∈Rd. On replication j=1,2,…j=1,2,\dotsj=1,2,… at setting x\mathbf xx the simulation returns

Yj(x)=β0+M(x)+εj(x),\mathcal Y_j(\mathbf x)=\beta_0+\mathsf M(\mathbf x)+\varepsilon_j(\mathbf x),Yj​(x)=β0​+M(x)+εj​(x),

where β0∈R\beta_0\in\mathbb Rβ0​∈R is a constant trend, M\mathsf MM is a mean-zero random field on Rd\mathbb R^dRd (the unknown surface) and εj(x)\varepsilon_j(\mathbf x)εj​(x) is the noise of replication jjj. The quantity to predict at any point x0\mathbf x_0x0​, simulated or not, is the noise-free response Y(x0)=β0+M(x0)\mathsf Y(\mathbf x_0)=\beta_0+\mathsf M(\mathbf x_0)Y(x0​)=β0​+M(x0​).

An experiment design is a list of pairs (xi,ni)(\mathbf x_i,n_i)(xi​,ni​), i=1,…,ki=1,\dots,ki=1,…,k, with distinct design points xi\mathbf x_ixi​ and nin_ini​ replications at xi\mathbf x_ixi​. The data are summarized by the sample means Yˉ(xi)=1ni∑j=1niYj(xi)\bar{\mathcal Y}(\mathbf x_i)=\frac1{n_i}\sum_{j=1}^{n_i}\mathcal Y_j(\mathbf x_i)Yˉ​(xi​)=ni​1​∑j=1ni​​Yj​(xi​), collected in the vector Yˉ∈Rk\bar{\mathcal Y}\in\mathbb R^kYˉ​∈Rk, and the sample variances

S2(xi)=1ni−1∑j=1ni(Yj(xi)−Yˉ(xi))2.\mathcal S^2(\mathbf x_i)=\frac1{n_i-1}\sum_{j=1}^{n_i}\big(\mathcal Y_j(\mathbf x_i)-\bar{\mathcal Y}(\mathbf x_i)\big)^2 .S2(xi​)=ni​−11​j=1∑ni​​(Yj​(xi​)−Yˉ​(xi​))2.

The extrinsic covariances are the k×kk\times kk×k matrix ΣM=(Cov[M(xh),M(xi)])h,i\Sigma_{\mathsf M}=(\mathrm{Cov}[\mathsf M(\mathbf x_h),\mathsf M(\mathbf x_i)])_{h,i}ΣM​=(Cov[M(xh​),M(xi​)])h,i​ and the vector ΣM(x0,⋅)=(Cov[M(x0),M(xi)])i\Sigma_{\mathsf M}(\mathbf x_0,\cdot)=(\mathrm{Cov}[\mathsf M(\mathbf x_0),\mathsf M(\mathbf x_i)])_{i}ΣM​(x0​,⋅)=(Cov[M(x0​),M(xi​)])i​.

Assumption 1. M\mathsf MM is a stationary Gaussian random field: all its finite-dimensional laws are multivariate normal with mean 000, the covariance is τ2R(x−x′)\tau^2R(\mathbf x-\mathbf x')τ2R(x−x′) with τ2>0\tau^2>0τ2>0 and R(0)=1R(\mathbf 0)=1R(0)=1, and the covariance matrix at finitely many distinct points is positive definite. At each design point the noises ε1(xi),ε2(xi),…\varepsilon_1(\mathbf x_i),\varepsilon_2(\mathbf x_i),\dotsε1​(xi​),ε2​(xi​),… are i.i.d. N(0,V(xi))N(0,\mathsf V(\mathbf x_i))N(0,V(xi​)) with V(xi)>0\mathsf V(\mathbf x_i)>0V(xi​)>0; noises at different design points are independent (no common random numbers); and the whole noise family is independent of M\mathsf MM.

The intrinsic variance at a design point is estimated by V^(xi)=S2(xi)\widehat{\mathsf V}(\mathbf x_i)=\mathcal S^2(\mathbf x_i)V(xi​)=S2(xi​), giving Σ^ε=Diag{V^(x1)/n1,…,V^(xk)/nk}\widehat\Sigma_\varepsilon=\mathrm{Diag}\{\widehat{\mathsf V}(\mathbf x_1)/n_1,\dots,\widehat{\mathsf V}(\mathbf x_k)/n_k\}Σε​=Diag{V(x1​)/n1​,…,V(xk​)/nk​} and the plug-in stochastic kriging predictor

Y^^(x0)=β0+ΣM(x0,⋅)⊤[ΣM+Σ^ε]−1(Yˉ−β01k).(13)\widehat{\widehat{\mathsf Y}}(\mathbf x_0)=\beta_0+\Sigma_{\mathsf M}(\mathbf x_0,\cdot)^\top\big[\Sigma_{\mathsf M}+\widehat\Sigma_\varepsilon\big]^{-1}\big(\bar{\mathcal Y}-\beta_0\mathbf 1_k\big).\tag{13}Y(x0​)=β0​+ΣM​(x0​,⋅)⊤[ΣM​+Σε​]−1(Yˉ​−β0​1k​).(13)

Formalization targets

Goal: Theorem 1 (p. 366)

Under Assumption 1, with ni≥2n_i\ge2ni​≥2 replications at every design point, the prediction error is integrable and

E[Y^^(x0)−Y(x0)]=0.\mathrm E\Big[\widehat{\widehat{\mathsf Y}}(\mathbf x_0)-\mathsf Y(\mathbf x_0)\Big]=0 .E[Y(x0​)−Y(x0​)]=0.

Milestones (p. 365)

  1. Under Assumption 1, (Y(x0),Yˉ(x1),…,Yˉ(xk))(\mathsf Y(\mathbf x_0),\bar{\mathcal Y}(\mathbf x_1),\dots,\bar{\mathcal Y}(\mathbf x_k))(Y(x0​),Yˉ​(x1​),…,Yˉ​(xk​)) is multivariate normal.
  2. Under Assumption 1, S2(xi)\mathcal S^2(\mathbf x_i)S2(xi​) has a scaled chi-squared distribution: (ni−1)S2(xi)/V(xi)∼χni−12(n_i-1)\mathcal S^2(\mathbf x_i)/\mathsf V(\mathbf x_i)\sim\chi^2_{n_i-1}(ni​−1)S2(xi​)/V(xi​)∼χni​−12​.
  3. Under Assumption 1, S2(xi)\mathcal S^2(\mathbf x_i)S2(xi​) is strongly consistent for V(xi)\mathsf V(\mathbf x_i)V(xi​): the sample variance of the first mmm replications converges to V(xi)\mathsf V(\mathbf x_i)V(xi​) almost surely as m→∞m\to\inftym→∞.

Significance

Theorem 1 says that the practitioner's shortcut, estimating the noise variances from the replications and plugging them into the optimal predictor, keeps the predictor unbiased; the cost of not knowing the intrinsic variance is paid entirely in mean squared error. This is what makes the paper's subsequent comparison of the plug-in MSE with the known-variance MSE the right measure of the penalty for estimation.

None of these statements has a machine-checked proof, and Mathlib has neither the chi-squared law of the normal sample variance nor the independence of the normal sample mean and sample variance. A complete development produces these classical facts of normal sampling theory for the first time in Lean, together with a reusable model of noisy observations of a Gaussian random field.

Difficulty

The predictor is a nonlinear function of the data: its weight vector [ΣM+Σ^ε]−1ΣM(x0,⋅)[\Sigma_{\mathsf M}+\widehat\Sigma_\varepsilon]^{-1}\Sigma_{\mathsf M}(\mathbf x_0,\cdot)[ΣM​+Σε​]−1ΣM​(x0​,⋅) is random and depends on the same replications as Yˉ\bar{\mathcal Y}Yˉ​. Linearity of expectation therefore does not apply directly: the obvious argument, which treats the weights as constants, fails, and the dependence between the estimated variances, the sample means and the field has to be controlled exactly. The joint independence structure of Assumption 1 — across replications, across design points, and between noise and field — is load-bearing; a weaker pairwise or pointwise independence does not suffice. Integrability of the error must also be established, since the weights depend on random variances.

Formalization scope

Design points are indexed by Fin k (the paper's iii is i.val + 1) and lie in EuclideanSpace ℝ (Fin d); replication j≥1j\ge1j≥1 of the paper is index j - 1 of a sequence, so sums run over Finset.range. The field is M : EuclideanSpace ℝ (Fin d) → Ω → ℝ with Mathlib's IsGaussianProcess; covariances are ProbabilityTheory.covariance; stationarity is Cov[M(y),M(y′)]=τ2R(y−y′)\mathrm{Cov}[\mathsf M(\mathbf y),\mathsf M(\mathbf y')]=\tau^2R(\mathbf y-\mathbf y')Cov[M(y),M(y′)]=τ2R(y−y′) with R(0)=1R(\mathbf 0)=1R(0)=1. The noise law is HasLaw … (gaussianReal 0 (V (x i))); independence is one iIndepFun over the family indexed by Fin k × ℕ plus one IndepFun between that whole family and the whole field. The variance function is ℝ≥0-valued with V(xi)>0\mathsf V(\mathbf x_i)>0V(xi​)>0 assumed; replication counts satisfy ni≥2n_i\ge2ni​≥2 wherever S2\mathcal S^2S2 appears and ni≥1n_i\ge1ni​≥1 where only means appear. The chi-squared law χν2\chi^2_\nuχν2​ is gammaMeasure (ν/2) (1/2).

The covariance quantities ΣM\Sigma_{\mathsf M}ΣM​ and ΣM(x0,⋅)\Sigma_{\mathsf M}(\mathbf x_0,\cdot)ΣM​(x0​,⋅) in (13) are the true ones; only Σε\Sigma_\varepsilonΣε​ is estimated, and Σ^ε\widehat\Sigma_\varepsilonΣε​ is built from the same replications as Yˉ\bar{\mathcal Y}Yˉ​. A formalization in which Σ^ε\widehat\Sigma_\varepsilonΣε​ is deterministic or independent of the data, in which the matrix ΣM+Σ^ε\Sigma_{\mathsf M}+\widehat\Sigma_\varepsilonΣM​+Σε​ may be singular (Lean's Matrix.inv returns 000 there, reducing the claim to E[M(x0)]=0\mathrm E[\mathsf M(\mathbf x_0)]=0E[M(x0​)]=0), or in which the expectation is asserted without integrability, would trivialize the goal and is ruled out: positive definiteness of ΣM\Sigma_{\mathsf M}ΣM​ at distinct design points is part of Assumption 1, and integrability is part of the conclusion. x0\mathbf x_0x0​ may coincide with a design point.

A complete development needs: the law of linear images of independent Gaussian vectors; independence of the sample mean and the residual vector for i.i.d. normal samples (Cochran's theorem); the chi-squared law of the normal sample variance; the strong law of large numbers for the sample variance; and a measurability and boundedness argument for the random weight vector. The normal-sampling results are reusable well beyond this mission and are welcome as separate contributions.

Selected references

  • B. Ankenman, B. L. Nelson, J. Staum, Stochastic Kriging for Simulation Metamodeling, Proceedings of the 2008 Winter Simulation Conference, IEEE, pp. 362–370, 2008. http://www.informs-sim.org/wsc08papers/042.pdf
  • B. Ankenman, B. L. Nelson, J. Staum, Stochastic Kriging for Simulation Metamodeling, Operations Research 58(2):371–382, 2010. https://doi.org/10.1287/opre.1090.0754
  • T. J. Santner, B. J. Williams, W. I. Notz, The Design and Analysis of Computer Experiments, Springer, 2003. https://doi.org/10.1007/978-1-4757-3799-8
6 thms1 active userReviewed

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me