Research Library · Idea
Random forests
A random forest is a collection of decision trees whose predictions are averaged or voted. Breiman's 2001 paper defines it as a combination of tree predictors in which each tree depends on the values of a random vector sampled independently and with the same distribution for all trees.1 In the version he tests, each tree is grown on a bootstrap resample, grown to full size without pruning, and at every node only a small random group of the input variables is considered for the split; he tried one variable and the first integer below log2 of the number of inputs plus one.1 ISLR suggests about the square root of the number of features and notes that the randomness decorrelates the trees.2
Breiman proves that the generalisation error converges to a limit as trees are added, which he says explains why forests do not overfit as more trees are added. He also bounds the error by a function of two quantities: the strength s (the expected voting margin of the forest) and the mean correlation between trees. The bound is the correlation times (1 minus s squared) over s squared, and he calls it likely to be loose.1 The practical reading is a trade-off: random feature selection lowers the correlation between trees but weakens each one.
Each bootstrap sample leaves out about a third of the examples, so every example can be scored only by trees that did not train on it. This out-of-bag estimate of error needs no separate test set under Breiman's sampling assumptions, though for security data evaluation on later, independent data is still needed.13 The same paper reports that forests are competitive with AdaBoost and more robust to noise.1
Forests remain a standard baseline for tabular problems. In Grinsztajn et al.'s 45-dataset benchmark, tree-based models including random forests and XGBoost stayed ahead of the neural networks tested on medium-sized data.4
Source · Random Forests (opens in a new tab) · Leo Breiman, 2001
References
- Random Forests (opens in a new tab) · Leo Breiman, University of California, Berkeley (author-hosted, dated January 2001) · January 1, 2001 ↩ ↩ ↩ ↩ ↩
- An Introduction to Statistical Learning with Applications in R (first edition, seventh printing) (opens in a new tab) · James, Witten, Hastie and Tibshirani, Springer · January 1, 2013 ↩
- Dos and Don'ts of Machine Learning in Computer Security (opens in a new tab) · arXiv 2010.09470 / USENIX Security 2022 (Arp et al.) · November 30, 2021 ↩
- Why do tree-based models still outperform deep learning on tabular data? (opens in a new tab) · arXiv 2207.08815 · July 18, 2022 ↩
Research articles
- Before deep learning: a reader in the classical methods behind tabular machine learning, from nearest neighbours to gradient boosting · Machine learning
See what connects to it on the map of ideas →

SecSIG