Ensembles interview question

Machine LearningEnsemblesBias-Variancebasic

Which statement correctly contrasts bagging and boosting?

  1. ABagging trains its models sequentially and mainly reduces bias; boosting trains them in parallel and mainly reduces variance.
  2. BBagging trains its models in parallel and mainly reduces variance; boosting trains them sequentially and mainly reduces bias.
  3. CBagging trains its models in parallel and mainly reduces bias; boosting trains them sequentially and mainly reduces variance.
  4. DBoth train their models in parallel on bootstrap samples and differ only in using majority voting versus averaging.
Show the answer and explanation

Correct answer: B, Bagging trains its models in parallel and mainly reduces variance; boosting trains them sequentially and mainly reduces bias.

Explanation Ensembles

BaggingBoosting
Trainingparallel, independent modelssequential, each depends on the last
Data per modelbootstrap sampleclassically all rows, reweighted or fitted to residuals
Mainly reducesvariancebias
Typical base learnerdeep, low-bias treesshallow, high-bias trees

Bagging averages many unstable, low-bias models; averaging keeps the bias roughly the same but lowers variance. Boosting starts from weak, high-bias learners and keeps adding learners that correct the remaining error, which drives bias down.

The swapped statements reverse either the training order or the bias/variance roles. The "both use bootstrap samples" statement is wrong because classic boosting does not rely on bootstrap sampling and is inherently sequential.

Interview tip: add the practical consequence: boosting can overfit if you add too many rounds (use early stopping), while adding trees to a bagged forest does not cause overfitting.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Machine Learning questions

  1. What is the "naive" assumption in Naive Bayes?
  2. Which description matches the standard k-means (Lloyd's) algorithm?
  3. What does precision measure for a binary classifier?
  4. How does k-fold cross-validation work?
  5. How does grid search look for good hyperparameters?