# Confidence Intervals for Random Forests: The Jackknife and the Infinitesimal Jackknife

arXiv: https://arxiv.org/abs/1311.4555 · HTML: https://mlsanity.com/paper/1311.4555/

## Key facts

- Cited by 44 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 18 Nov 2013.

## Built on by (most cited first, 30 of 44)

- [Data-OOB: Out-of-bag Estimate as a Simple and Efficient Data Value](https://mlsanity.com/paper/2304.07718/) (2023)
- [Machine learning pipeline for battery state of health estimation](https://mlsanity.com/paper/2102.00837/) (2021)
- [Valid prediction intervals for regression problems](https://mlsanity.com/paper/2107.00363/) (2021)
- [Conformal Meta-learners for Predictive Inference of Individual Treatment Effects](https://mlsanity.com/paper/2308.14895/) (2023)
- [Why do Random Forests Work? Understanding Tree Ensembles as Self-Regularizing Adaptive Smoothers](https://mlsanity.com/paper/2402.01502/) (2024)
- [Multi-Objective Constrained Optimization for Energy Applications via Tree Ensembles](https://mlsanity.com/paper/2111.03140/) (2021)
- [PCS-UQ: Uncertainty Quantification via the Predictability-Computability-Stability Framework](https://mlsanity.com/paper/2505.08784/) (2025)
- [BDNNSurv: Bayesian deep neural networks for survival analysis using pseudo values](https://mlsanity.com/paper/2101.03170/) (2021)
- [Medoid splits for efficient random forests in metric spaces](https://mlsanity.com/paper/2306.17031/) (2023)
- [On Variance Estimation of Random Forests with Infinite-Order U-statistics](https://mlsanity.com/paper/2202.09008/) (2022)
- [Theoretical Limitations of Ensembles in the Age of Overparameterization](https://mlsanity.com/paper/2410.16201/) (2024)
- [The Infinitesimal Jackknife and Combinations of Models](https://mlsanity.com/paper/2209.00147/) (2022)
- [Uncertainty-Aware Boosted Ensembling in Multi-Modal Settings](https://mlsanity.com/paper/2104.10715/) (2021)
- [Meta-Learners for Estimation of Causal Effects: Finite Sample Cross-Fit Performance](https://mlsanity.com/paper/2201.12692/) (2022)
- [Extrapolated cross-validation for randomized ensembles](https://mlsanity.com/paper/2302.13511/) (2023)
- [Forest Guided Smoothing](https://mlsanity.com/paper/2103.05092/) (2021)
- [Improve ROI with Causal Learning and Conformal Prediction](https://mlsanity.com/paper/2407.01065/) (2024)
- [Generalised Boosted Forests](https://mlsanity.com/paper/2102.12561/) (2021)
- [Quantile Regression using Random Forest Proximities](https://mlsanity.com/paper/2408.02355/) (2024)
- [Forecasting the future development in quality and value of professional football players](https://mlsanity.com/paper/2502.07528/) (2025)
- [Climate land use and other drivers impacts on island ecosystem services: a global review](https://mlsanity.com/paper/2503.10278/) (2025)
- [Statistical Inference for Gradient Boosting Regression](https://mlsanity.com/paper/2509.23127/) (2025)
- [Inference for High Dimensional Censored Quantile Regression](https://mlsanity.com/paper/2107.10959/) (2021)
- [An uncertainty-aware Bayesian framework for machine learning classification models: A case study in land cover classification](https://mlsanity.com/paper/2503.21510/) (2025)
- [Jackknife Variance Estimation for H'ajek-Dominated Generalized U-Statistics](https://mlsanity.com/paper/2509.12356/) (2025)
- [How Many Trees in a Random Forest? A Revisited Approach with Plateau Search and Optuna Integration](https://mlsanity.com/paper/2606.03549/) (2026)
- [Modelling hetegeneous treatment effects by quantitle local polynomial decision tree and forest](https://mlsanity.com/paper/2111.15320/) (2021)
- [Multivariate Prediction Intervals for Random Forests](https://mlsanity.com/paper/2205.02260/) (2022)
- [Walk a Mile in Their Shoes: a New Fairness Criterion for Machine Learning](https://mlsanity.com/paper/2210.06680/) (2022)
- [SleepMore: Inferring Sleep Duration at Scale via Multi-Device WiFi Sensing](https://mlsanity.com/paper/2210.14152/) (2022)

## Abstract (arXiv)

We study the variability of predictions made by bagged learners and random forests, and show how to estimate standard errors for these methods. Our work builds on variance estimates for bagging proposed by Efron (1992, 2012) that are based on the jackknife and the infinitesimal jackknife (IJ). In practice, bagged predictors are computed using a finite number B of bootstrap replicates, and working with a large B can be computationally expensive. Direct applications of jackknife and IJ estimators to bagging require B on the order of n^{1.5} bootstrap replicates to converge, where n is the size of the training set. We propose improved versions that only require B on the order of n replicates. Moreover, we show that the IJ estimator requires 1.7 times less bootstrap replicates than the jackknife to achieve a given accuracy. Finally, we study the sampling distributions of the jackknife and IJ variance estimates themselves. We illustrate our findings with multiple experiments and simulation studies.
