Generalized Random Forests

Susan Athey, Julie Tibshirani, Stefan Wager
10/5/2016
stat.MEecon.EMstat.ML

Official code: grf-labs/grf (1,117 stars, GPL-3.0, last commit 2026-04-30).

Abstract

We propose generalized random forests, a method for non-parametric statistical estimation based on random forests (Breiman, 2001) that can be used to fit any quantity of interest identified as the solution to a set of local moment equations. Following the literature on local maximum likelihood estimation, our method considers a weighted set of nearby training examples; however, instead of using classical kernel weighting functions that are prone to a strong curse of dimensionality, we use an adaptive weighting function derived from a forest designed to express heterogeneity in the specified quantity of interest. We propose a flexible, computationally efficient algorithm for growing generalized random forests, develop a large sample theory for our method showing that our estimates are consistent and asymptotically Gaussian, and provide an estimator for their asymptotic variance that enables valid confidence intervals. We use our approach to develop new methods for three statistical tasks: non-parametric quantile regression, conditional average partial effect estimation, and heterogeneous treatment effect estimation via instrumental variables. A software implementation, grf for R and C++, is available from CRAN.

View on arXivView PDF

Code Implementations(1)

grf-labs/grfOfficial100%
GPL-3.0

Generalized Random Forests

1,117282R, C++Aug 12, 20165 months agoGPL-3.0
causal-forestcausal-inferenceeconometricsmachine-learningrandom-forest+1 more

Cite this paper

@article{athey2016generalized,
  title  = {Generalized Random Forests},
  author = {Susan Athey and Julie Tibshirani and Stefan Wager},
  year   = {2016},
  eprint = {1610.01271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1610.01271}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1610.01271.svg)](https://codeofpaper.com/paper/1610.01271)

Discussion