Skip to main content
QUICK REVIEW

[Paper Review] Statistical Inference for Heterogeneous Treatment Effects Discovered by Generic Machine Learning in Randomized Experiments

Kosuke Imai, Michael Lingzhi Li|arXiv (Cornell University)|Mar 28, 2022
Advanced Causal Inference TechniquesMathematics4 citations
TL;DR

This paper develops a valid statistical inference framework for heterogeneous treatment effects identified by generic machine learning algorithms in randomized experiments. By leveraging Neyman's repeated sampling approach and randomization-based inference, it constructs confidence intervals and nonparametric tests for group average treatment effects (GATES) without requiring ML algorithm consistency, ensuring robustness in small samples with many covariates.

ABSTRACT

Researchers are increasingly turning to machine learning (ML) algorithms to investigate causal heterogeneity in randomized experiments. Despite their promise, ML algorithms may fail to accurately ascertain heterogeneous treatment effects under practical settings with many covariates and small sample size. In addition, the quantification of estimation uncertainty remains a challenge. We develop a general approach to statistical inference for heterogeneous treatment effects discovered by a generic ML algorithm. We apply the Neyman's repeated sampling framework to a common setting, in which researchers use an ML algorithm to estimate the conditional average treatment effect and then divide the sample into several groups based on the magnitude of the estimated effects. We show how to estimate the average treatment effect within each of these groups, and construct a valid confidence interval. In addition, we develop nonparametric tests of treatment effect homogeneity across groups, and rank-consistency of within-group average treatment effects. The validity of our methodology does not rely on the properties of ML algorithms because it is solely based on the randomization of treatment assignment and random sampling of units. Finally, we generalize our methodology to the cross-fitting procedure by accounting for the additional uncertainty induced by the random splitting of data.

Motivation & Objective

  • To address the lack of reliable statistical inference for treatment effects discovered via machine learning in small-sample randomized experiments.
  • To develop a method that remains valid regardless of ML algorithm performance, relying only on random treatment assignment and sampling.
  • To enable formal hypothesis testing for treatment effect heterogeneity and rank-consistency of estimated effects across groups.
  • To account for uncertainty from data splitting and cross-fitting procedures common in ML applications.
  • To provide a practical, open-source R package (evalITR) for applied researchers to implement the methodology.

Proposed method

  • Applies Neyman’s repeated sampling framework to estimate group average treatment effects (GATES) after partitioning units based on ML-predicted conditional average treatment effects (CATE).
  • Constructs asymptotically valid confidence intervals for GATES using only the randomization of treatment and sampling of units, not ML properties.
  • Develops nonparametric tests for (1) treatment effect homogeneity across groups and (2) rank-consistency of GATES across ordered groups.
  • Generalizes the method to cross-fitting by accounting for additional uncertainty from random data splitting into folds.
  • Uses sample splitting or cross-fitting to estimate CATE on training folds and GATES on validation folds, then aggregates results.
  • Employs randomization inference principles to ensure valid inference even when ML algorithms are inconsistent or biased.

Experimental results

Research questions

  • RQ1Can we construct valid confidence intervals for average treatment effects within groups identified by machine learning algorithms in randomized experiments?
  • RQ2How can we test whether treatment effects are homogeneous across groups identified by ML predictions?
  • RQ3Is there statistical evidence that the ranking of group average treatment effects (GATES) is consistent with the ML-predicted CATE scores?
  • RQ4How does cross-fitting improve inference efficiency compared to simple sample splitting in small samples?
  • RQ5To what extent can the method ensure valid inference even when ML algorithms fail to consistently estimate the CATE?

Key findings

  • Causal Forest identified a statistically significant positive GATES for the top quintile (estimated at $20,000) under both sample-splitting and cross-fitting, with narrower confidence intervals in the cross-fitting case.
  • Under cross-fitting, Causal Forest rejected the null hypothesis of treatment effect homogeneity at the 0.1% level, while LASSO rejected it at the 10% level, indicating strong evidence of heterogeneity.
  • BART failed to reject the homogeneity null in both settings, suggesting it did not detect meaningful treatment effect variation across groups.
  • All three algorithms (Causal Forest, BART, LASSO) failed to reject the null hypothesis of rank-consistency of GATES, indicating no strong evidence of unreliable ranking.
  • Cross-fitting produced more precise GATES estimates with narrower confidence intervals than sample-splitting, confirming its higher efficiency.
  • The method remains valid under minimal assumptions—only requiring randomization and sampling—making it robust even when ML algorithms are inconsistent or poorly calibrated.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.