Causal forests¶
In the app: Help → Help contents, Causal forests.
A causal forest estimates how a treatment's effect varies: an effect for each observation, given its effect modifiers, with a confidence interval. Like double machine learning, it first learns the outcome's and the treatment's conditional means by cross-fitting and works on what is left of them (local centering), so that confounding by the controls is removed before the forest looks for heterogeneity. Each tree is honest: one half of its subsample chooses the splits, the other half, unseen by the splits, estimates the effect in each leaf; the forest's estimate at a point is a weighted regression of the outcome's residual on the treatment's, the weights being how often each observation shares the point's leaf. Trees come in small bags sharing a half-sample, and how much the bags disagree gives the variance (the bootstrap of little bags). Each observation's own effect is estimated only from trees that did not see it (out of bag).
Individual effects are noisy and their intervals pointwise. Three summaries are firmer. The average effect (and, for a 0/1 treatment, the effect on the treated) comes from doubly robust scores, as in the interactive model of double ML. The best linear projection regresses those scores on chosen covariates: how the effect moves with each, with valid standard errors even if the forest is poor. The calibration test asks whether the forest's predictions line up with the data: a coefficient near 1 on the mean prediction says the average is right, and a significantly positive one on the differential prediction that the heterogeneity the forest finds is real. Variable importance counts how often the forest splits on each variable, the first splits weighted most; a variable can matter yet be split on rarely when another stands in for it.
pymetrix grows the trees with scikit-learn's CART on the generalized random forest's gradient pseudo-outcomes, computed once per tree rather than at every node (a first-order approximation to GRF's splitting rule); the estimates, the honesty, the out-of-bag predictions and the variance are GRF's.
See also¶
References¶
- Wager, S. and Athey, S. (2018). Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association 113(523), 1228-1242. doi:10.1080/01621459.2017.1319839
- Athey, S., Tibshirani, J. and Wager, S. (2019). Generalized random forests. Annals of Statistics 47(2), 1148-1178. doi:10.1214/18-AOS1709
- Nie, X. and Wager, S. (2021). Quasi-oracle estimation of heterogeneous treatment effects. Biometrika 108(2), 299-319. (search)
- Chernozhukov, V., Demirer, M., Duflo, E. and Fernández-Val, I. (2018). Generic machine learning inference on heterogeneous treatment effects in randomized experiments. NBER Working Paper 24678. (search)
- Sexton, J. and Laake, P. (2009). Standard errors for bagged and random forest estimators. Computational Statistics & Data Analysis 53(3), 801-811. (search)