How does balanced bagging modify standard bootstrap aggregation?

Quick Overview

Asks how balanced bagging changes standard bootstrap aggregation when the target classes are heavily imbalanced. Tests how bags are drawn and aggregated, the common resampling variants, and what rebalancing does to the probabilities the ensemble outputs.

How does balanced bagging modify standard bootstrap aggregation?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does balanced bagging modify standard bootstrap aggregation? Explain what changes for a classification problem with a heavily imbalanced target, and what stays the same. ```hint Look at one bag Think about the class ratio inside a single bootstrap sample of imbalanced data, and what a base learner trained on it ends up favoring. ``` ### What a Strong Answer Covers - Why plain bagging does not fix class imbalance - How each bag is drawn in balanced bagging, and which part of bagging is left unchanged - How the ensemble still makes use of much of the majority class - The common variants of the idea - What rebalancing does to predicted probabilities and how to correct for it ### Follow-up Questions - How would you map the ensemble's scores back to probabilities under the true class prior? - When would you prefer class weights or threshold tuning to balanced bagging? - Which metric would you use to compare balanced bagging with plain bagging, and why not accuracy? - How does the number of bags affect how much of the majority class the ensemble sees?

Overview: Asks how balanced bagging changes standard bootstrap aggregation when the target classes are heavily imbalanced. Tests how bags are drawn and aggregated, the common resampling variants, and what rebalancing does to the probabilities the ensemble outputs.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does balanced bagging modify standard bootstrap aggregation? Explain what changes for a classification problem with a heavily imbalanced target, and what stays the same.

What a Strong Answer Covers Guidance

  • Why plain bagging does not fix class imbalance
  • How each bag is drawn in balanced bagging, and which part of bagging is left unchanged
  • How the ensemble still makes use of much of the majority class
  • The common variants of the idea
  • What rebalancing does to predicted probabilities and how to correct for it

Follow-up Questions Guidance

  • How would you map the ensemble's scores back to probabilities under the true class prior?
  • When would you prefer class weights or threshold tuning to balanced bagging?
  • Which metric would you use to compare balanced bagging with plain bagging, and why not accuracy?
  • How does the number of bags affect how much of the majority class the ensemble sees?