Why does high class imbalance often manifest as high bias toward the majority class?

Quick Overview

Asks why a classifier trained on heavily imbalanced data keeps missing the minority class and why that error counts as bias. Tests understanding of how the loss, the base rate and the decision threshold interact, and of remedies such as reweighting, resampling and threshold tuning.

Why does high class imbalance often manifest as high bias toward the majority class?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

A classifier trained on heavily imbalanced data tends to miss the minority class. Why does high class imbalance often manifest as high bias toward the majority class, and what can you do about it? ```hint Split the loss Write the average training loss as a weighted sum of the two classes' mean losses and compare the weights at a 99:1 ratio. Then ask what happens to the minority-class errors when you retrain on a fresh sample. ``` ### What a Strong Answer Covers - Why the loss-minimizing solution leans toward the majority class, including the effect of regularization and limited capacity - How predicted probabilities and a default decision threshold interact with the base rate - Why the resulting errors count as bias, and where variance also shows up for the minority class - Concrete remedies, and a metric that actually reflects minority-class performance when evaluating them ### Follow-up Questions - After training with class weights, are the predicted probabilities still calibrated? How would you correct them? - When would you tune the threshold instead of reweighting or resampling? - Why must oversampling happen only inside the training folds? - How does focal loss address the same problem, and how does it differ from class weighting?

Overview: Asks why a classifier trained on heavily imbalanced data keeps missing the minority class and why that error counts as bias. Tests understanding of how the loss, the base rate and the decision threshold interact, and of remedies such as reweighting, resampling and threshold tuning.

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

A classifier trained on heavily imbalanced data tends to miss the minority class. Why does high class imbalance often manifest as high bias toward the majority class, and what can you do about it?

What a Strong Answer Covers Guidance

  • Why the loss-minimizing solution leans toward the majority class, including the effect of regularization and limited capacity
  • How predicted probabilities and a default decision threshold interact with the base rate
  • Why the resulting errors count as bias, and where variance also shows up for the minority class
  • Concrete remedies, and a metric that actually reflects minority-class performance when evaluating them

Follow-up Questions Guidance

  • After training with class weights, are the predicted probabilities still calibrated? How would you correct them?
  • When would you tune the threshold instead of reweighting or resampling?
  • Why must oversampling happen only inside the training folds?
  • How does focal loss address the same problem, and how does it differ from class weighting?