This question evaluates a candidate's understanding of regression loss trade-offs (MAE vs MSE), classification evaluation metrics under severe class imbalance (ROC-AUC vs PR-AUC), neural network output activation and loss dynamics, and practical techniques for imbalance mitigation and probability-threshold selection in binary classification.

Answer all parts concisely and precisely.
When would you prefer MAE over MSE? Compare robustness to outliers, gradient behavior near zero, and optimization consequences. Give a concrete example where MSE underperforms while MAE is acceptable.
A binary classifier has 1% positive prevalence, ROC-AUC = 0.90, and PR-AUC = 0.25.
Choose an output activation and loss. Explain how you would handle class imbalance using class weights or focal loss, and describe how each changes gradient contributions of positive vs. negative examples.
If the business requires precision ≥ 0.50, describe exactly how you would pick a probability threshold on validation data and avoid optimistic bias (e.g., nested CV or a hold-out).
Login required