What is the difference between bagging and boosting, in one sentence?
Supervised learning, Ensembles
Level L1 Beginner. Length One-liner. Nature Th Theoretical.
What's being asked
Whether you can name the one difference that matters: how the models are trained (independently or one after another) and which error each method reduces.
Key idea
Bagging trains many models independently on bootstrap samples and averages them, which mainly reduces variance; boosting trains weak models one after another, each focusing on the mistakes of the ones before, and adds them up, which mainly reduces bias.
Steps
- Bagging (bootstrap aggregating): draw bootstrap samples, fit a deep tree to each in parallel, and average the predictions (or take a majority vote). A random forest is bagging plus a random subset of features at each split.
- Boosting: fit a simple model such as a stump, then fit the next one to the examples the ensemble gets wrong (AdaBoost reweights them; gradient boosting fits the residuals), and add the models with weights.
- Effect: averaging many noisy but unbiased models cuts variance; adding many biased weak learners step by step cuts bias.
Common mistakes
- Saying boosting trains on bootstrap samples. Standard boosting uses the whole training set and changes the weights or targets instead.
- Assuming boosting cannot overfit. With too many rounds or too large a learning rate it can, so use early stopping or shrinkage.
How long your answer should be
One sentence; add the parallel-versus-sequential picture if asked to explain.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Why should you standardise features before running k-nearest neighbours (k-NN)?
Next in Supervised learning: In plain words, what does the hinge loss punish in a classifier, and what is the loss for a point with correct label when the model's score for it is ?