[Paper Review] Stability of Random Forests and Coverage of Random-Forest Prediction Intervals
This paper establishes theoretical stability of random forests under mild moment conditions (specifically, that $Y^2$ does not have a heavy tail), enabling non-asymptotic coverage guarantees for prediction intervals constructed from out-of-bag errors. It proves that the resulting prediction intervals achieve coverage probability close to the nominal level $1 - \alpha$, with bounds that converge to $1 - \alpha$ as sample size increases.
We establish stability of random forests under the mild condition that the squared response ($Y^2$) does not have a heavy tail. In particular, our analysis holds for the practical version of random forests that is implemented in popular packages like exttt{randomForest} in exttt{R}. Empirical results show that stability may persist even beyond our assumption and hold for heavy-tailed $Y^2$. Using the stability property, we prove a non-asymptotic lower bound for the coverage probability of prediction intervals constructed from the out-of-bag error of random forests. With another mild condition that is typically satisfied when $Y$ is continuous, we also establish a complementary upper bound, which can be similarly established for the jackknife prediction interval constructed from an arbitrary stable algorithm. We also discuss the asymptotic coverage probability under assumptions weaker than those considered in previous literature. Our work implies that random forests, with its stability property, is an effective machine learning method that can provide not only satisfactory point prediction but also justified interval prediction at almost no extra computational cost.
Motivation & Objective
- To establish theoretical stability of the practical random forest algorithm used in standard implementations like R's randomForest package.
- To bridge the gap between empirical success and theoretical understanding of random forests, especially regarding prediction interval validity.
- To provide non-asymptotic coverage bounds for prediction intervals derived from out-of-bag errors, ensuring reliable interval estimation with minimal computational cost.
- To extend the theoretical justification of distribution-free predictive inference to random forests by leveraging stability properties.
- To investigate the asymptotic coverage behavior under weaker assumptions than previously required in the literature.
Proposed method
- Uses the stability of bagged estimators with bounded outputs as a foundation, applying it to random forests via conditional output bounds based on training set $Y$-values.
- Introduces probabilistic deviation bounds: $\mathbb{P}(|\mathsf{RF}_B(X) - \mathsf{RF}_B^{\backslash i}(X)| > \varepsilon_{n,B}) \leq \nu_{n,B}$, where $\varepsilon_{n,B}, \nu_{n,B} \to 0$ as $n, B \to \infty$.
- Constructs prediction intervals of the form $\mathsf{RF}_B(X) \pm \text{quantile of } \{R_i\}$, where $R_i = |Y_i - \mathsf{RF}_B^{\backslash i}(X_i)|$.
- Derives non-asymptotic lower and upper bounds on coverage probability using concentration inequalities and uniform equicontinuity of CDFs.
- Applies the bounded dominance theorem and limit arguments to show that asymptotic coverage converges to $1 - \alpha$ under mild regularity conditions.
- Uses stability to justify the validity of the OOB-based prediction interval, avoiding the need for $n$ separate leave-one-out fits.
Experimental results
Research questions
- RQ1Under what conditions is the random forest predictor stable, in the sense that omitting a single training point has negligible impact on predictions?
- RQ2Can prediction intervals constructed from out-of-bag errors of random forests achieve guaranteed coverage probability under mild moment assumptions?
- RQ3How do the non-asymptotic coverage bounds for OOB-based prediction intervals behave as sample size increases?
- RQ4To what extent can the light-tailed $Y^2$ assumption be relaxed while preserving stability and coverage guarantees?
- RQ5What is the asymptotic coverage probability of OOB-based prediction intervals under weaker assumptions than those in prior work?
Key findings
- Random forests are stable under the condition that $Y^2$ does not have a heavy tail, with $\mathbb{P}(|\mathsf{RF}_B(X) - \mathsf{RF}_B^{\backslash i}(X)| > \varepsilon_{n,B}) \leq \nu_{n,B}$, where $\varepsilon_{n,B}, \nu_{n,B} \to 0$ as $n, B \to \infty$.
- The coverage probability of the OOB-based prediction interval satisfies $\mathbb{P}(|Y - \mathsf{RF}_B(X)| \leq q_{n,\alpha}\{R_i\} + \varepsilon_{n,B}) \geq 1 - \alpha - O(\sqrt{\nu_{n,B}})$, providing a non-asymptotic lower bound.
- Under the additional assumption that $Y$ is continuous (ensuring distinct errors), the upper bound is $\mathbb{P}(|Y - \mathsf{RF}_B(X)| \leq q_{n,\alpha}\{R_i\} - \varepsilon_{n,B}) \leq 1 - \alpha + \frac{1}{n+1} + O(\sqrt{\nu_{n,B}})$.
- Asymptotic coverage probability converges to $1 - \alpha$, with $\lim_{n \to \infty} \mathbb{P}(R \leq q_{n,\alpha}\{R_i\}) = 1 - \alpha$, under the stated conditions.
- Numerical evidence suggests stability may persist even for heavy-tailed $Y$, such as Cauchy, though the theory requires the $Y^2$ light-tail assumption.
- The method enables valid, computationally efficient prediction intervals at almost no extra cost beyond standard random forest training.
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.