Related Experiment Video
Updated: Jul 11, 2026

Selecting Multiple Biomarker Subsets with Similarly Effective Binary Classification Performances
Published on: October 11, 2018
On the overestimation of random forest's out-of-bag error
Silke Janitza1, Roman Hornung1
1Institute for Medical Information Processing, Biometry and Epidemiology, University of Munich, Munich, Germany.
The out-of-bag error in random forests can overestimate prediction error for binary classification with metric predictors, especially in unbalanced or small datasets. Stratified subsampling is recommended for more accurate error estimation and parameter tuning.
Area of Science:
- Bioinformatics
- Machine Learning
- Statistical Modeling
Background:
- Random forests are popular for classification in bioinformatics.
- Out-of-bag error is a common technique for evaluating random forest accuracy and tuning parameters like mtry.
- Out-of-bag error can overestimate true prediction error in binary classification with metric predictors.
Purpose of the Study:
- Identify settings where out-of-bag error overestimation is likely for random forests.
- Investigate the reliability of out-of-bag error for tuning parameter selection (mtry).
Main Methods:
- Simulated and real data analysis.
- Evaluation of random forests with metric predictors.
- Comparison of out-of-bag error estimation with stratified subsampling.
Main Results:
- Overestimation of out-of-bag error is largest in balanced settings, with few observations, many predictors, low predictor correlation, and weak effects.
- Overestimation had minimal impact on tuning parameter selection in the studied cases.
- Stratified subsampling provided less biased estimates of true prediction error.
Conclusions:
- Out-of-bag error can be unreliable for error estimation and parameter tuning in random forests with metric predictors.
- Stratified subsampling (proportional to class sizes) is recommended for metric predictor variables.
- For unbalanced settings, sampling an equal number of observations per class is a viable alternative.
Related Concept Videos
Uncertainty in Measurement: Accuracy and Precision
Random and Systematic Errors
Random Error
Propagation of Uncertainty from Random Error
Random and Systematic Errors
Survival Tree
Building a Survival Tree
Constructing a survival tree begins...

