mlprep
Medium12 min·1 round·Feature Engineering

How do you handle class imbalance in ML?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

You're building a fraud detection model. Only 0.1% of transactions are fraud. How do you handle this class imbalance?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • Why is AUC-ROC misleading for imbalanced classification, and why is AUC-PR better?
  • SMOTE creates interpolated examples between minority class neighbors. What can go wrong with this assumption?
  • How do you recalibrate a model's predicted probabilities after oversampling to reflect the true class prior?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions