Random Forest
Random Forests reduce the variance of a Decision Tree or other CART (Classification And Regression Trees) model by averaging together multiple estimates from individual Decision Trees. Trees are trained on a random subset of features and data cases. (Microsoft's Kinect body motion detector used a Random Forest.) Trees are often "bagged" (bootstrap aggregated). In a bootstrap, samples are drawn at random with replacement to produce more training data than exist.
The Bootstrap
The bootstrap is "a simple Monte Carlo technique to approximate the sampling distribution" (Murphy, p.192), especially useful when the estimator is a complex function of the parameters. The estimate is (Hastie et al., p.250):
- [math]\displaystyle{ \widehat{\text{Err}}_\text{boot} \dfrac{1}{B}\dfrac{1}{N}\sum^B_{b=1}\sum^N_{i=1}L(y_i, \hat{f}^{*b}(x_i)) }[/math]
However, this expression will be zero unless the ith observation does not appear in the bootstrap sample [math]\displaystyle{ b }[/math]
- [math]\displaystyle{ \text{Pr\{observation i}\in \text{ bootstrap sample b}\} = 1 - \left(1-\dfrac{1}{N} \right)^N \approx 1-e^{-1} = 0.632 }[/math]