Random Forest
Study guides: Exam SRM, Exam PA, Exam MAS-II
A random forest is bagged trees with one extra step: at each split, only a random subset of m predictors is eligible. That decorrelates the trees, so averaging removes more variance than bagging can.
m \approx \sqrt{p} \ \text{(classification)}, \qquad m \approx p/3 \ \text{(regression)}
\mathrm{Var}\!\left(\bar{Z}\right) = \rho\sigma^{2} + \frac{1-\rho}{B}\sigma^{2}
- The problem it solves: with one dominant predictor, every bagged tree splits on it first, the trees look alike (
\rhohigh) and the averaged variance stalls at\rho\sigma^2. Forbidding that predictor at a random share of splits lets the others show through m = pis bagging — bagging is the special case, not a different algorithm- Small
mdecorrelates more (lower\rho) but weakens each individual tree (higher\sigma^2);mis the one real tuning parameter and can be chosen by Out-of-Bag Error - Like bagging,
Bonly helps: more trees never overfit, they just stop improving - Handles correlated predictors far better than bagging, which is exactly the situation in a rating dataset full of overlapping rating variables
Choosing m A fraud classifier has
p = 36predictors, one of which (prior claim count) is far stronger than the rest. Whatmwould you start with, and what goes wrong atm = 36?Answer Start at
m = \sqrt{36} = 6, then check OOB error atm = 3andm = 12. Atm = 36the method is bagging: prior claim count is available at every split, so it is chosen at the root of nearly all 500 trees, the trees are near-copies,\rhostays high and the averaged variance barely falls below a single tree's.