What is Class Imbalance?

Updated May 17, 2026

Short answer

Class imbalance occurs when one class dominates the dataset.

Deep explanation

Imbalanced datasets bias the classifier toward majority classes.

Real-world example

Fraud detection datasets often contain very few fraud cases.

Common mistakes

  • Using accuracy as the only metric.

Follow-up questions

  • How handle imbalance?
  • Which metrics help?

More Logistic Regression interview questions

View all →