Variance Estimation for Weighted Average Treatment Effects

Huiyue Li, Yi Liu, Yunji Zhou, Jiajun Liu, Dan Fu, Roland Matsouaka

Abstract

In observational studies, estimating the Average Treatment Effect (ATE) or Weighted Average Treatment Effects (WATEs) requires robust variance estimation to ensure the validity of causal inferences. While nonparametric bootstrapping and sandwich variance estimators are standard, they often face computational bottlenecks or structural limitations. This paper evaluates two efficient alternatives: a "post-weighting" bootstrap and a generalized wild bootstrap. Through simulation and real-world application to NHANES data, we demonstrate that while these new methods offer significant computational advantages for ATE, the standard bootstrap remains the most reliable choice for specific weighted effects like the Average Treatment Effect on the Treated (ATT) and Overlap Weights (ATO).

Introduction

Causal inference in non-randomized settings relies heavily on Propensity Scores (PS)—the estimated probability of receiving treatment—to balance groups. While point estimates for treatment effects are well-established, calculating their variance (uncertainty) remains a challenge. Researchers typically choose between the computationally intensive nonparametric bootstrap or the mathematically complex sandwich estimator. This study explores a "middle way," proposing methods that maintain the flexibility of bootstrapping while approaching the efficiency of closed-form formulas.

Methodology: Four Approaches to Variance

The study compares four distinct methodologies for variance estimation:

  1. Standard Bootstrap (BOOT I): The traditional approach where the entire estimation process—including propensity score modeling and weight calculation—is repeated for thousands of resampled datasets. While robust, it is computationally expensive and prone to "positivity violations" in small samples, where a replicate may lack enough treated or control units to function.
  2. Post-weighting Bootstrap (BOOT II): A more efficient variant where propensity scores are estimated once on the full dataset. Resampling is then performed on the data and these pre-calculated scores. This avoids re-estimating the PS model in every iteration, saving time and preventing numerical instability.
  3. Wild Bootstrap (WB): A nonparametric resampling strategy that "perturbs" the Influence Function—a mathematical representation of an individual's contribution to the estimate—using random variables. This study generalizes the WB from the ATT to a broader class of WATEs.
  4. Sandwich Estimator (SAND): A model-based, closed-form formula. It is fast but requires complex derivations for different weighting functions and can be sensitive to model misspecification.

Key Insights: The Role of the Propensity Score

A central finding of this research is that the role of the Propensity Score changes depending on the target estimand. For the general ATE, the PS is considered "ancillary"—it is a tool used to adjust the data but does not define the population of interest. In this context, the uncertainty in the PS estimation has a negligible impact on the final variance, which is why the Post-weighting Bootstrap (BOOT II) performs so well.

Conversely, for estimands like Overlap Weights (ATO), the PS actually defines the target population. In these cases, the uncertainty in the PS estimation is intrinsic to the variance of the treatment effect. Failing to re-estimate the PS (as in BOOT II) leads to "anti-conservative" results, meaning the method underestimates the true margin of error.

Experimental Results

Simulation Studies

The authors conducted Monte Carlo simulations across five scenarios, varying group overlap and treatment effect complexity.

  • For ATE: Both BOOT II and the Wild Bootstrap provided excellent coverage (approximately 95%) and were significantly faster than BOOT I.
  • For ATT and ATO: BOOT II and WB tended to be overly optimistic, producing narrower confidence intervals than the standard bootstrap. In these scenarios, BOOT I and the Sandwich estimator remained the gold standards.
  • Small Sample Performance: In datasets as small as $N=50$, the Sandwich estimator frequently failed due to numerical instability, leaving the Standard Bootstrap as the only viable option.

Real-World Application: NHANES

The methods were applied to data from the National Health and Nutrition Examination Survey (2013–2014) to study the effect of fish consumption on blood mercury levels. The analysis demonstrated that the choice of variance estimator is not merely academic; different methods led to different p-values when noise was introduced, potentially altering the scientific conclusions of the study.

Conclusion and Practical Recommendations

For researchers conducting observational studies, this paper offers several practical takeaways:

  • Use BOOT II or Wild Bootstrap for ATE: These methods provide a significant speed boost without sacrificing accuracy when estimating the general average treatment effect.
  • Stick to Standard Bootstrap for ATT/ATO: When the propensity score defines the target population, the full resampling of the PS model is necessary to capture all sources of uncertainty.
  • Sandwich Estimators for Large Samples: While fast, they should be used with caution in small samples where they may fail to converge.

Future work will focus on integrating these variance estimation techniques with machine learning models (such as Double Machine Learning) and extending the framework to time-to-event (survival) data.

Summary updated

BibTeX
@inproceedings{li2025variance,
  author = {Huiyue Li and Yi Liu and Yunji Zhou and Jiajun Liu and Dan Fu and Roland Matsouaka},
  title = {{Variance Estimation for Weighted Average Treatment Effects}},
  booktitle = {Statistics},
  year = {2025},
  doi = {10.1007/s12561-025-09503-7},
}
Figure