Ensemble Methods for Stronger Machine Learning
Understand why combining models improves performance
Master bootstrap aggregating and random forests
Learn AdaBoost, gradient boosting, and XGBoost
Apply ensemble methods to real-world problems
Ensemble methods combine multiple models to achieve better performance than any individual model, leveraging the wisdom of crowds principle to reduce errors and improve robustness.
Create B bootstrap samples by sampling n examples with replacement from training set
Train a model on each bootstrap sample independently
Average predictions (regression) or vote (classification)
Where $\hat{f}_b$ is the model trained on bootstrap sample b.
Averaging reduces variance by factor of n (if uncorrelated).
Random forests extend bagging by adding feature randomness, selecting a random subset of features at each split to decorrelate trees and improve generalization.
Find classifier that minimizes weighted error
Increase weights for misclassified examples
Gradient boosting fits models sequentially, with each new model trained to predict the residuals (errors) of the ensemble so far, using gradient descent in function space.
Where $h_m$ is trained on negative gradients of loss function.
Pseudo-residuals guide next model training.
Where T is number of leaves, $w_j$ are leaf weights.
Ensemble Success Formula: High individual accuracy + Low correlation between models = Strong ensemble performance
Key Takeaway: Ensemble methods consistently achieve state-of-the-art performance on tabular data. They're often the first choice for machine learning competitions and real-world applications where predictive accuracy is paramount.