[Paper Review] Quantifying Uncertainty in Random Forests via Confidence Intervals and Hypothesis Tests
This paper proposes a framework for formal statistical inference in random forests by treating subsample-based ensemble predictions as U-statistics, enabling asymptotically normal predictions and consistent variance estimation. The key contribution is the ability to compute confidence intervals and perform hypothesis tests on feature significance at no additional computational cost.
This work develops formal statistical inference procedures for machine learning ensemble methods. Ensemble methods based on bootstrapping, such as bagging and random forests, have improved the predictive accuracy of individual trees, but fail to provide a framework in which distributional results can be easily determined. Instead of aggregating full bootstrap samples, we consider predicting by averaging over trees built on subsamples of the training set and demonstrate that the resulting estimator takes the form of a U-statistic. As such, predictions for individual feature vectors are asymptotically normal, allowing for confidence intervals to accompany predictions. In practice, a subset of subsamples is used for computational speed; here our estimators take the form of incomplete U-statistics and equivalent results are derived. We further demonstrate that this setup provides a framework for testing the significance of features. Moreover, the internal estimation method we develop allows us to estimate the variance parameters and perform these inference procedures at no additional computational cost. Simulations and illustrations on a real dataset are provided.
Motivation & Objective
- To develop formal statistical inference procedures for predictions from supervised learning ensembles, particularly random forests.
- To address the lack of uncertainty quantification in bagging and random forests, which typically provide only point estimates.
- To enable confidence intervals for individual predictions and hypothesis tests for feature significance using a principled statistical framework.
- To demonstrate that subsample-based ensemble methods yield asymptotically normal predictions under weak regularity conditions.
- To provide consistent, internal variance estimation that incurs no additional computational cost beyond standard training.
Proposed method
- Reformulate random forests as an ensemble of trees trained on subsamples (without replacement) of the training data, rather than full bootstrap samples.
- Show that the resulting prediction estimator is a U-statistic, leveraging Hoeffding’s theory on U-statistics for asymptotic normality.
- Derive asymptotic normality of predictions under weak regularity conditions, enabling confidence intervals via standard normal quantiles.
- Use the internal structure of the ensemble to estimate the asymptotic variance consistently, without additional model fitting or resampling.
- Construct test statistics for feature significance by comparing predictions from full models and models with permuted or removed features.
- Apply incomplete U-statistic theory to handle practical implementations using a finite, fixed number of subsamples for computational efficiency.
Experimental results
Research questions
- RQ1Can formal statistical inference be performed on predictions from random forests, given their non-parametric and algorithmic nature?
- RQ2Do predictions from subsample-based ensemble methods (subbagging) have a known limiting distribution that supports confidence intervals?
- RQ3Can hypothesis tests for feature significance be constructed within the random forest framework using the same underlying statistical structure?
- RQ4Is it possible to estimate the variance of predictions consistently without increasing computational cost?
- RQ5How does the performance of the proposed inference framework compare to standard random forest predictions in real-world applications?
Key findings
- Predictions from subsample-based random forests are asymptotically normal under weak regularity conditions, enabling the construction of confidence intervals.
- The variance of predictions can be consistently estimated using the internal structure of the ensemble, requiring no additional computation beyond training.
- Hypothesis tests for feature significance are feasible by comparing predictions from models with and without a given feature, with p-values derived from the asymptotic normality of the test statistic.
- In the eBird dataset, both month and year were found to be statistically significant predictors of bird abundance, with test statistics of 109.72 and 109.72 respectively.
- The method performs well even with finite numbers of subsamples, as incomplete U-statistic theory ensures valid inference under practical implementation constraints.
- The framework is general and applies to any supervised ensemble method that satisfies the conditions for U-statistic convergence, not just random forests with tree-based learners.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.