Paper commentary
Estimation and Inference of Heterogeneous Treatment Effects using Random Forests
Random forests can estimate treatment effects with valid confidence intervals
- Problem Classical matching and kernel estimators lose accuracy as covariates are added. Random forests handle many covariates, but they lacked the asymptotic theory needed for valid confidence intervals.
- Method Causal forests extend Breiman's random forest to estimate heterogeneous treatment effects. Each tree places splits without looking at outcomes, and the forest's variance is estimated with the infinitesimal jackknife.
- Results Causal forest mean-squared error stays at 0.02 for every dimension from 2 to 30. The 10-NN error rises from 0.21 to 0.33 over the same range.
Why many covariates break classical estimators
Exploring heterogeneous treatment effects is attractive because individual-level estimates can support customized decisions, but searching many subgroups invites reporting only the extreme ones. Pre-specified subgroup protocols guard against that search, yet they also make unexpected heterogeneity hard to find.
Nearest-neighbor matching, kernel methods and series estimators work reasonably with a few covariates but degrade as covariates are added. Random forests handle many covariates by weighting nearby observations in a data-driven way, which is why the authors look to them for this problem.
For a random forest to support hypothesis tests and confidence intervals, its predictions need a known sampling distribution, and the asymptotics of random forests had been largely left open even for ordinary regression. Causal settings make this harder because each treatment effect contrasts two potential outcomes of which only one is observed, so a held-out test set cannot evaluate the estimator directly.
Earlier forest-based treatment-effect work, including BART-based posterior intervals and regression forests applied to treated and control outcomes, did not come with formal statistical inference results. The contribution therefore has to be an inference theory for a forest that is built for the treatment-effect target.
What one honest causal tree does
Each tree in the forest is a causal tree: it partitions the covariate space into leaves and estimates the treatment effect within each leaf from the treated and control observations that fall there. The causal forest is built from these trees, so the leaf structure is what determines which observations are compared at a test point.
Honesty restricts the splitting step: a causal tree may use the covariates and the treatment assignments to place its splits, but it may not use the responses. Keeping the outcomes out of the split choice means the leaf estimates are not selected to fit the same outcomes they are computed from, which the authors use to control bias.
A further condition ties the leaf counts to 2k-1 for the rarer treatment group, which lets the tree act like a fully grown tree for that group while allowing more of the common group.
A double-sample tree separates the work into two halves: the I-sample is used to place splits, and the J-sample is used only for the leaf estimates, so the J-sample's contribution is folded into an auxiliary noise term in the theory.
Averaging subsampled trees under unconfoundedness and overlap
The causal forest at a test point x averages the causal-tree estimates over every subsample of size s drawn from the n training observations, with the tree's auxiliary randomness xi averaged out inside each term. Subsampling is what gives the forest a variety of trees, and the average over all subsamples is the object whose distribution the theory has to describe.
For an honest tree, the splits depend on the covariates and assignments only, so conditioning on the covariates and assignments reduces the leaf estimate to averages of conditional mean outcomes over the treated units in the leaf minus the same averages over the control units. Unconfoundedness then replaces the conditional outcome given the assignment with the conditional outcome given the covariates, which is what turns this quantity into an estimate of the potential-outcome means at x.
Overlap is needed so that the leaf around x shrinks fast enough: the diameter of that leaf has to decay quickly, and overlap supplies the condition under which it does. The consistency and asymptotic normality results for the causal forest therefore rest on both unconfoundedness and overlap, in addition to honesty and regularity.
Regularity can hold at only one test point for a given tree, so for predictions at many points the authors assign different trees to different test points. When predicting at a specific x, the set of trees assigned to that x is treated as the relevant forest, and the theorem is applied to that set.
Why the forest becomes asymptotically Gaussian
The argument starts from the Hájek projection of a tree, which captures part of its variation, and calls a predictor incremental when that captured part does not vanish. Subsampling is then used to make the forest incremental at rate 1 (in the paper's terms), which lets a classical central limit argument apply.
The key ingredient is a lower bound on how much the first observation Z1 reveals about whether it is selected into the subsample, and the bound is of order C_{f,d} divided by (log s)^d, where C_{f,d} depends only on the density f and the dimension d. For a uniform density the constant is given explicitly as 2^-(d+1) times (d-1)!.
Theorem 5 applies this lower bound to honest k-regular symmetric trees, provided the conditional moments of the outcome are Lipschitz at x and the conditional variance of Y given X = x is positive, and the resulting incrementality rate is C_{f,d} divided by (log s)^d. Corollary 6 extends the same conclusion to double-sample trees, with the rate reduced by a factor of 4.
The result that links incrementality to a Gaussian limit bounds the mean-squared gap between the forest and its Hájek projection by (s/n)^2 times the variance of the base learner. Theorem 8 then requires the subsample size s_n to tend to infinity with s_n (log n)^d / n tending to zero, and a conditional moment bound of order 2 + delta, so the centered and scaled forest prediction converges to a standard normal.
The scale sigma_n(x) in that limit goes to zero, so the forest's sampling variance is what sets the interval width at each x.
Estimating the variance without a plug-in formula
The variance is estimated with the infinitesimal jackknife for random forests, which the theory shows is consistent: the estimate divided by sigma_n(x) squared converges in probability to 1 under the conditions of Theorem 8. The estimator carries a finite-sample factor of n(n-1)/(n-s)^2, which tends to 1, so the asymptotic result holds without it.
The authors keep the factor because they find it improves the finite-sample performance of the method. A check on this choice comes from trivial trees that make no splits and average the subsample responses, where the forest reduces to the sample mean.
For trivial trees, the infinitesimal jackknife estimate equals the standard variance estimator for the sample mean, which is well known to be unbiased. Proposition 10 states that the expected value of the infinitesimal jackknife estimate then equals the variance of the forest prediction in finite samples.
Simulation design and the k-NN baseline
Each simulation draws covariates uniformly from the d-dimensional unit cube, respects unconfoundedness, and uses homoscedastic normal noise with unit variance around the potential-outcome means. Performance is measured by the expected mean-squared error for estimating tau(X) at a random test point, and by the expected coverage of tau(X) against a target rate of 0.95.
The k-NN baseline estimates the treatment effect as the difference between the mean outcomes of the k nearest treated observations and the k nearest control observations. Its confidence intervals treat the estimate as Gaussian with variance built from the sample variances of the two neighbour sets, divided by k(k-1).
Setup (27) fixes the treatment effect at zero and sets the propensity to a beta-shaped function of X1 and the main effect to 2X1 - 1, so that the propensity and the main effect interact and create bias unless the method adjusts for them. It uses n = 500, dimension d between 2 and 30, propensity trees as the base learner, B = 1000 trees and s = 50.
Setup (28) makes the treatment effect a product of two smooth functions of X1 and X2 and sets the propensity to one half, so it is a randomized experiment. It uses n = 5000, d between 2 and 8, double-sample trees with the splitting rule of Athey and Imbens, s = 2500 with |I| = 1250, and B = 2000 trees.
Setup (29) keeps the same product form but makes the spike in the treatment effect sharper near x1 and x2 close to 1, with n = 10000, s = 2000, B = 10000 and the same training method as setup (28). All trees in these simulations have a minimum leaf size of k = 1, and results are aggregated over 500, 25 and 40 replications for setups (27), (28) and (29) respectively.
Setup (27): bias from confounded propensities
In setup (27) causal forests keep mean-squared error at 0.02 for every dimension from d = 2 to d = 30. Over the same range the 10-NN error rises from 0.21 to 0.33, and the 100-NN error stays between 0.09 and 0.13.
The authors argue that k-NN has an irreducible noise term, from the variance of Y after conditioning on X and W, equal to 2/k, so with k at most 100 it cannot match the forest's error here. They also say 100-NN is dominated by bias even at d = 2, which is why its error does not depend strongly on dimension.
For coverage, the causal forest intervals fall from 0.95 at d = 2 to 0.85 at d = 30. The 10-NN intervals stay between 0.89 and 0.93, while the 100-NN intervals fall from 0.62 at d = 2 to 0.48 at d = 30.
Coverage for 10-NN is therefore steadier than for the forest, but its intervals are much wider, as the mean-squared error shows. The authors say the forest reaches nominal coverage only up to d = 10, after which its intervals start to decay.
Setup (28): smooth effect and rising dimension
In setup (28) the causal forest mean-squared error falls from 0.04 at d = 2 to 0.02 at d = 6, and it is 0.03 at d = 8. The 7-NN error ranges from 0.29 to 0.38 over d from 2 to 8, while the 50-NN error rises from 0.04 at d = 2 to 0.21 at d = 8.
Causal forest coverage falls from 0.97 at d = 2 to 0.90 at d = 8, while 50-NN coverage falls from 0.94 to 0.57 over the same range.
The authors find the forest's performance improves with d at small d, which they did not expect. They attribute this to the variance of a forest being the product of individual tree variance and the correlation between trees, so when d is larger the trees have more flexibility to place splits, lower their correlation and reduce the ensemble variance.
Setup (29): a sharper effect and coverage
In setup (29) the causal forest keeps mean-squared error between 0.02 and 0.03 across d from 2 to 8. The 10-NN error ranges from 0.20 to 0.29, and the 100-NN error rises from 0.02 at d = 2 to 0.26 at d = 8.
Causal forest coverage is 0.94 at d = 2 and 0.73 at d = 8. Over the same range 10-NN coverage stays at 0.90 or higher, while 100-NN coverage falls from 0.94 to 0.45.
The authors attribute the coverage loss mainly to bias: as d grows the forest is dominated by bias rather than variance, so the intervals miss the target more often. They describe the mean-squared error gain over k-NN as an order-of-magnitude improvement when d is above 2, while coverage is the weaker side of the result.
Limitations of the pointwise theory
The confidence intervals are pointwise: the results cover tau(x) at a fixed x, and extending them to global functional estimation is left for further work. Nearest-neighbor estimators also suffer bias at the boundaries of the feature space, and a systematic trimming or bias-correction step is not developed here.
Regular causal trees cannot be built at every test point at once, so the theory needs a separate set of trees for each test point. The simulations use uniform covariates and homoscedastic normal noise, so the reported coverage does not speak to heteroscedastic or non-uniform designs.
The authors note that identifying methods that give accurate variance estimates with small samples or many covariates remains open, as does identifying when the variance estimates are unreliable. In setup (27) the coverage of the causal forest intervals decays beyond d = 10, and in setup (29) it falls to 0.73 at d = 8.
Paper info
- Authors
- Stefan Wager, Susan Athey
- Venue
- arXiv · Preprint
- First published
- 2015-10-14
- Added
- 2026-11-12
- Updated
- 2017-7-10
- Version
- v4
- arXiv
- 1510.04342
- Category
- stat.ME · math.ST · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Stefan Wager, Susan Athey (2015). Estimation and Inference of Heterogeneous Treatment Effects using Random Forests. arXiv:1510.04342v4. https://arxiv.org/abs/1510.04342v4
BibTeX
@misc{wager2015estimation,
title = {{Estimation and Inference of Heterogeneous Treatment Effects using Random Forests}},
author = {Stefan Wager and Susan Athey},
year = {2015},
eprint = {1510.04342},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1510.04342v4}
}