Bagging vs Boosting
Two ensemble strategies, two different problems: bagging trains parallel trees on random samples to squash variance; boosting chains sequential trees to fix bias one residual at a time.
Both strategies start from the same premise — one tree is not enough — but they diagnose the problem differently. Bagging says the tree is too sensitive to which data points it happened to see. Boosting says the tree is too simple to see the pattern at all.
Bagging: Parallel Bootstrap
Each tree draws a fresh random sample — with replacement — from the full dataset. Trees disagree because they saw different slices. All trees train simultaneously; no tree waits for another. Their outputs are averaged or majority-voted at the end.
Boosting: Sequential Weighting
After each learner, the samples it misclassified are given higher weight. The next learner must focus on those hard cases. The sequence can only proceed one step at a time — no parallelism. Each tree is deliberately kept shallow, a weak learner alone, strong in the chain.
Different Problems, Different Fixes
Averaging many uncorrelated predictions reduces the variance of the combined output. Targeting residuals corrects systematic mistakes that a single tree is too weak to model. These are distinct operations acting on different components of the error.
Where It Breaks
Boosting up-weights the examples its current ensemble gets wrong. A mislabelled example is always wrong — so it gets up-weighted every round until the model bends its decision boundary to reach it. Bagging averages across many trees, so a noisy point influences only the trees whose sample happened to include it, and the damage stays local.
The Quick Version
- Bagging: parallel, independent trees; each sees a random data bootstrap.
- Boosting: sequential trees; each corrects the previous one's mistakes.
- Bagging reduces variance; boosting reduces bias.
- Both need weak base learners — strong base learners kill the ensemble benefit.
- Noisy labels are safe for bagging; they poison boosting systematically.