CausalSmith · seminar slides
Estimating Average Treatment Effects with Many Categories
Rare covariate categories need not prevent accurate estimation of an average treatment effect.
slides for Sharp Minimax Rates for Average Treatment Effects with Discrete Confounding under Fixed Overlap
Research Question
We observe n independent units with binary treatment A, binary outcome Y, and an adjustment covariate with d categories. Treatment probabilities and outcome means can vary arbitrarily across categories.
The standard rule estimates each category’s treatment–control contrast and weights it by empirical prevalence.
- Its all-category estimate is ∑k=1dhk, where hk is the empirical ratio contribution shown on “Heavy categories,” evaluated using the full sample.
- An unobserved treatment arm contributes zero.
- Zeng et al. (2024) show that regression, inverse probability weighting, and doubly robust estimators coincide with this rule when categorywise quantities are fitted on the same sample.
Their worst-case mean-squared error has scale d2/n2+1/n, and consistency requires d/n→0.
Can estimating the average directly improve on estimating every category’s contrast?
Key Idea
Use ratios for abundant categories and polynomial estimates for sparse categories’ contributions to the average.
Let πk be the treatment probability in category k. Fixed overlap means ϵ≤πk≤1−ϵ: both arms have positive population probability within every relevant category.
For fixed 0<ϵ<1/2, we attain the mean-squared-error scale
rn,d:=n1+n2(logn)2d2,
where rn,d combines ordinary sampling error with the cost of many categories.
The guarantee holds for n≥Nϵ and 0<d≤ρϵnlogn, with constants depending only on overlap.
The polynomial estimates use counts without dividing by an observed treatment-arm count. This repairs the sparse-category failure of empirical ratios.
Example
At exact randomization, πk=1/2 in every category. Outcome means can still differ arbitrarily across categories.
τctr=n1i=1∑n2(2Ai−1)(Yi−21).
The centered estimator τctr averages outcomes centered at one-half, with opposite signs for treatment and control.
For every positive n,d, its worst-case mean-squared error is at most 1/n; minimax error is at least 1/(100n).
Known randomization removes the need to estimate category treatment probabilities. With unknown probabilities, how can sparse categories still contribute useful information?
Model
We observe independent, identically distributed units Oi=(Xi,Ai,Yi) from a law P, with Xi∈{1,…,d}.
For category k:
- pk=P(X=k) is its population prevalence.
- μak=EP[Y∣A=a,X=k] is its outcome mean in arm a.
- qaky=P(A=a,X=k,Y=y) is a joint treatment–outcome mass.
- qk=(q0k0,q0k1,q1k0,q1k1) collects its four masses.
τ(P)=k=1∑dϕ(qk).
The target τ(P) adds the contributions ϕ(qk)=pk(μ1k−μ0k): prevalence times the treatment–control contrast.
Small prevalence limits a category’s contribution even when its contrast is difficult to estimate.
Assumptions
Every category with pk>0 satisfies
ϵ≤πk≤1−ϵ.
Overlap guarantees population support for both arms. A finite sample can still contain no observations from one arm.
The statistical result allows arbitrary category prevalences and outcome means, without smoothness or sparsity connecting categories.
For τ(P) to be the causal ATE, additionally require:
- Consistency: Y=Y(A); the recorded outcome is the potential outcome under the treatment received.
- Conditional exchangeability: (Y(0),Y(1))⊥A∣X; treatment carries no additional information about potential outcomes within a category.
In the randomized example, ϵ=1/2 forces every πk=1/2.
Main Result
Let En,d,ϵ be the class of iid sample laws satisfying overlap. The notation P⊗n means n independent draws from P.
The minimax risk Rn,d,ϵ is the smallest worst-case mean-squared error attainable by any estimator.
informal · Theorem T-2 For fixed 0<ϵ<1/2, n≥Nϵ, and 0<d≤ρϵnlogn, hybrid worst-case MSE is at most Cϵrn,d, and minimax MSE is at least aϵrn,d.
aϵrn,d≤Rn,d,ϵ≤P⊗n∈En,d,ϵsupEP[(τnhyb−τ(P))2]≤Cϵrn,d.
Here τnhyb is our ratio–polynomial estimator. The positive constants aϵ,Cϵ,ρϵ and cutoff Nϵ depend only on overlap.
Its upper bound matches the lower bound for every estimator, improving the category term by a squared logarithmic factor over standard ratios.
Heavy Categories
Split the sample in half: the pilot half selects categories, and the independent estimation half estimates their contributions.
Let m0,m1 be the split sizes and L=log(en). A category is heavy when its pilot count exceeds 256L; the remaining categories are light.
For heavy categories, retain the standard ratio contribution:
hk=m1Nk(1){N1k(1)N1k1(1)1{N1k(1)>0}−N0k(1)N0k1(1)1{N0k(1)>0}}.
Superscript 1 denotes estimation-half counts: Nk(1) is the category total, Nak(1) its arm total, and Nak1(1) its outcome-one count.
This computes empirical prevalence times empirical contrast, setting an empty arm’s contribution to zero.
Pilot abundance and overlap control missing-arm error. The improvement comes from changing what we do with light categories.
Light Categories
Consider one light category with four population masses u=(u00,u01,u10,u11) and an unknown treatment probability.
Write sa(u)=ua0+ua1 for arm mass, s(u)=s0(u)+s1(u) for total mass, and ta(u)=ua1 for outcome-one mass.
Its contribution is ϕ(u)=s(u)[t1(u)/s1(u)−t0(u)/s0(u)].
Replace the reciprocals by a polynomial:
PM,B(u)=Bs(u)t1(u)GM(Bs1(u))−Bs(u)t0(u)GM(Bs0(u)).
Here B bounds light-category mass, M controls degree, and GM supplies the reciprocal approximation. The expression computes an approximation to the category’s mass-weighted contrast.
We approximate the contribution to the average, allowing small categories to tolerate inaccurate conditional contrasts.
Polynomial Construction
Let TM be the degree-M Chebyshev polynomial, characterized by TM(cosθ)=cos(Mθ).
HM(x)=2M21−TM(1−2x),EM(x)=xHM(x),GM(x)=x1−EM(x),
These formulas construct the reciprocal approximation GM. The quotients extend to polynomials at zero.
For positive x, xGM(x)=1−EM(x): EM measures the error from replacing the reciprocal.
Under overlap and s(u)≤B, the contribution error is at most 2B/(ϵM2).
For our light category, overlap keeps each arm’s mass at least an ϵ fraction of total mass. This converts reciprocal error into an absolute contribution error that shrinks quadratically with degree.
Unbiased Polynomial Estimation
Expand the approximating polynomial:
PM,B(u)=∣r∣≤M∑crur.
Here r lists the four cell exponents, ∣r∣ is total degree, ur is their monomial, and cr is its coefficient.
Estimate it from counts:
Pk=∣r∣≤M∑cr(m1)∣r∣∏a,y(Naky(1))ray.
The falling factorial (z)t=z(z−1)⋯(z−t+1), with (z)0=1, counts ordered choices of distinct observations. Its normalization estimates each population monomial without bias.
Thus EP[Pk]=PM,B(qk): sampling adds noise without adding approximation bias.
This approximation-and-moment strategy follows Jiao et al. (2015).
Return to the light category with unknown treatment probability.
The factor s(u)t1(u) includes the monomial u01u11: control outcome-one mass times treated outcome-one mass.
Its unbiased estimate is N0k1(1)N1k1(1)/(m1)2.
- The numerator counts pairs of distinct observations, one from each outcome-one cell.
- The denominator counts all ordered pairs in the estimation half.
- If the treated arm is unobserved, this term equals zero and remains defined.
Every term of Pk works this way. The denominators depend on sample size and degree, rather than the observed arm counts.
Across repeated samples, these terms recover the polynomial’s population value. The procedure estimates a contribution without first recovering an accurate treatment probability or conditional contrast.
Logarithmic Bias Improvement
The degree and mass scale are calibrated together:
M(n)=max{2,⌊α0L⌋},B(n)=b0L/m1.
Here α0 is a fixed small numerical constant, b0=4096, and L=log(en). These choices are the same for every overlap level.
With high probability, pilot-light categories have pk≤B/4. Classification errors receive a separate mean-square bound.
- Per-category approximation error is at most 2B/(ϵM2).
- With B proportional to logn/n and M proportional to logn, this is of order 1/(nlogn).
- Summing over at most d categories and squaring gives the category term d2/(n2(logn)2).
The remaining question is whether estimating a growing-degree polynomial costs too much sampling variance.
Sampling Cost per Category
Let Pˉk=PM,B(qk) be the polynomial’s population value.
For a light category satisfying pk+4M/m1≤B and 4M2≤m1,
VarP(Pk)≤8(e+1)(B6M)2.
Why does the bound contain a small mass factor B2?
- Coefficients of GM can grow exponentially: their absolute sum at arguments at most one is bounded by 6M.
- A degree-j+2 contribution has coefficient scale B−j−1, but its count moments supply powers of the small cell masses.
- Falling-factorial normalization cancels the corresponding sample-size powers.
- When two observation tuples share observations, the moment bound inflates each cell mass by at most M/m1. The mass condition keeps the scaled arguments within one.
These ingredients leave a second-moment scale (B6M)2. Small category mass offsets coefficient growth.
Aggregate Sampling Variance
Condition on the pilot and consider its selected categories with pk≤B/4. Independence of the estimation half makes this a fixed set.
Categories share a multinomial sample, so covariance also matters. For distinct light categories, covariance is at most 8M2(B6M)2/m1.
Consequently, their aggregate sampling variance is at most
C{d+d2M2/m1}(B6M)2,
where C is a numerical constant.
The small degree constant ensures, for sufficiently large n, (62M)2L6≤n. Exponential coefficient growth is therefore affordable:
- The diagonal term is at most Cd/(n3/2L), bounded by C{1/n+d2/(n2L2)}.
- The covariance term is at most Cd2L/n5/2, bounded by Cd2/(n2L2).
Logarithmic degree improves bias while keeping aggregate sampling fluctuations within the target risk scale.
Putting the Pieces Together
Let Hn and Ln denote the pilot-selected heavy and light sets.
TH=k∈Hn∑hk,TL=k∈Ln∑Pk.
These are the heavy ratio total and light polynomial total.
τnhyb=max{−1,min(1,TH+TL)}.
Clipping keeps the estimate within the ATE’s feasible range and cannot increase squared error.
Heavy-category error, light approximation bias, light sampling variance, and pilot classification errors are all controlled at the target mean-square scale.
The matching lower bound from Zeng et al. (2024) establishes optimality.
Further Results
- Computation: the estimator can be evaluated from split counts in at most KdM(n)4 arithmetic and comparison operations, for a universal constant K.
- Near randomization: for every positive n,d and 0<ϵ≤1/2, the centered estimator’s worst-case mean-squared error is at most 1/n+4(1/2−ϵ)2.
The randomized example is the endpoint of the second bound: when every πk=1/2, its category penalty vanishes.
Open Questions
What is the matching minimax lower envelope when overlap varies with sample size, ϵ=ϵn, especially near exact randomization?
Our fixed-interior theorem establishes the sharp rate for each fixed 0<ϵ<1/2 in its calibrated range. The randomized endpoint has parametric risk for every positive d.
A matching lower envelope for varying overlap would characterize the transition between these regimes.
Takeaways
- For fixed 0<ϵ<1/2, n≥Nϵ, and 0<d≤ρϵnlogn, minimax mean-squared error has scale rn,d=1/n+d2/(n2(logn)2).
- Ratios handle abundant categories. Sparse categories use polynomial contribution estimates whose factorial moments are unbiased; small masses and a small logarithmic degree control their sampling cost.
- Within this range, parametric accuracy extends to d=O(nlogn), and consistency holds exactly when d=o(nlogn).
Appendix: Sharp Fixed-interior Minimax Rate
Matching risk bounds establish the optimal scale, its parametric regime, and its consistency threshold for each fixed interior overlap level.
Fix an overlap level ϵ with 0<ϵ<1/2. Then there are constants aϵ,ρϵ,Cϵ>0 and an integer Nϵ<∞ such that, writing rn,d:=n1+n2(logn)2d2, the following statements hold.
- (Matched minimax envelope.) For every n,d, every single-observation law P, and every sample law μn in the experiment class En,d,ϵ of Definition P-1, if d>0,n≥Nϵ,d≤ρϵnlogn, then the minimax risk Rn,d,ϵ of Definition P-6 and the truncated balanced ratio-polynomial hybrid estimator τnhyb of Definition P-5 satisfy aϵrn,d≤Rn,d,ϵ≤P⊗n∈En,d,ϵsupEP[(τnhyb−τ(P))2]≤Cϵrn,d.
- (Parametric interior.) For every K>0 there is a constant CK>0 such that, for every n,d, every single-observation law P, and every sample law μn in En,d,ϵ, if d>0,n≥Nϵ,d≤Knlogn,d≤ρϵnlogn, then naϵ≤Rn,d,ϵ≤nCK.
- (Consistency threshold.) For every pair of integer sequences nj,dj with nj→∞, dj>0 eventually, and dj≤ρϵnjlognj eventually, the minimax risk converges to zero exactly along the sequences satisfying the vanishing normalized dimension condition: Rnj,dj,ϵ→0⟺njlognjdj→0.
Appendix: Overlap Adaptive Hybrid Envelope
One statement gives computation, universal hybrid tuning, the oracle comparison, and the near-randomization and endpoint guarantees.
With τnhyb as in Definition P-5 and Rn,d,ϵ as in Definition P-6, the following assertions hold.
- Computability. There is a universal integer K>0 such that, for every n,d∈N, a real-arithmetic program based on the hybrid count input has operation count at most KdM(n)4 and, for every sample O1,…,On, evaluates exactly to τnhyb.
- Fixed-overlap hybrid calibration. For every overlap level ϵ with 0<ϵ<1/2, there are constants Cϵ,ρϵ>0 and an integer Nϵ such that, for all n,d∈N with n>0, d>0, n≥Nϵ, and d≤ρϵnlogn, the hybrid estimator satisfies P⊗n∈En,d,ϵsupEP[(τnhyb−τ(P))2]≤Cϵ{n1+n2(logn)2d2}. For the deterministic estimator τCϵ,ϵ={τnhyb,τctr,if Cϵ{n1+n2(logn)2d2}≤n1+4(1/2−ϵ)2,otherwise, one also has Rn,d,ϵ≤P⊗n∈En,d,ϵsupEP[(τCϵ,ϵ−τ(P))2]≤max{Cϵ,4}[n1+min{n2(logn)2d2,(1/2−ϵ)2}].
- Centered randomization bound. For every overlap level ϵ with 0<ϵ≤1/2 and every n,d∈N with n>0 and d>0, the centered estimator τctr=n1i=1∑n2(2Ai−1)(Yi−21) satisfies P⊗n∈En,d,ϵsupEP[(τctr−τ(P))2]≤n1+4(1/2−ϵ)2.
- Endpoint randomization bracket. For every n,d∈N with n>0 and d>0, 100n1≤Rn,d,1/2≤n1.