Why is a 50:50 target ratio rarely optimal when resampling imbalanced data?

Quick Overview

Asks why resampling an imbalanced dataset all the way to a 50:50 class ratio is usually a poor choice. It tests understanding of undersampling and oversampling costs, prior shift and calibration, threshold tuning, and how to tune the sampling ratio without leaking data.

Why is a 50:50 target ratio rarely optimal when resampling imbalanced data?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is a 50:50 target ratio rarely optimal when resampling imbalanced data? Assume a binary classifier trained on data where positives are rare, and that you plan to undersample the majority class, oversample the minority class or generate synthetic points with SMOTE before training. ```hint Count what changes Work out how many rows you discard or create at different target ratios, and what the model then believes the base rate is. ``` ```hint Where the decision is made Separate the class mix the model trains on from the threshold you use to make decisions in production. ``` ### What a Strong Answer Covers - The data cost of forcing 50:50 with undersampling and with oversampling or SMOTE - How the training ratio shifts the learned prior, and what that does to calibration and the default threshold - Why a partial rebalance often captures most of the benefit - Treating the ratio as a hyperparameter tuned on the original distribution with a suitable metric - Choosing the operating threshold from costs, separately from the training ratio ### Follow-up Questions - How would you correct the predicted probabilities of a model trained on an undersampled set? - When would you use class weights instead of resampling? - Why must resampling happen inside each cross-validation fold? - The positive rate in production drifts from 1% to 3%. What do you change?

Overview: Asks why resampling an imbalanced dataset all the way to a 50:50 class ratio is usually a poor choice. It tests understanding of undersampling and oversampling costs, prior shift and calibration, threshold tuning, and how to tune the sampling ratio without leaking data.

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

Why is a 50:50 target ratio rarely optimal when resampling imbalanced data? Assume a binary classifier trained on data where positives are rare, and that you plan to undersample the majority class, oversample the minority class or generate synthetic points with SMOTE before training.

What a Strong Answer Covers Guidance

  • The data cost of forcing 50:50 with undersampling and with oversampling or SMOTE
  • How the training ratio shifts the learned prior, and what that does to calibration and the default threshold
  • Why a partial rebalance often captures most of the benefit
  • Treating the ratio as a hyperparameter tuned on the original distribution with a suitable metric
  • Choosing the operating threshold from costs, separately from the training ratio

Follow-up Questions Guidance

  • How would you correct the predicted probabilities of a model trained on an undersampled set?
  • When would you use class weights instead of resampling?
  • Why must resampling happen inside each cross-validation fold?
  • The positive rate in production drifts from 1% to 3%. What do you change?