← Databricks Interview Insights
This is the kind of question where you think you know it and then halfway through you realize you're just reciting things you memorized.
Start by clearly defining what ROC-AUC and PR-AUC plot and how they are computed, then contrast their behavior under class imbalance. Use the business context of a fixed review budget to argue for PR-AUC or precision@k, and discuss practical pitfalls like threshold selection and metric gaming.
Pro tip: Emphasize that PR-AUC is more informative when the positive class is rare, but always tie the choice back to the business objective—e.g., if the cost of false positives is low and you have a fixed budget, precision-recall curves or lift charts are more actionable than ROC-AUC.
Explain that ROC-AUC plots True Positive Rate vs. False Positive Rate across thresholds, while PR-AUC plots Precision vs. Recall. Clarify that PR-AUC is often computed as average precision.
Discuss how ROC-AUC can be overly optimistic when negatives dominate because FPR is diluted, whereas PR-AUC directly reflects performance on the positive class and is more sensitive to imbalance.
Describe scenarios where ROC-AUC is high but PR-AUC is low (e.g., many false positives among a small positive set) and vice versa, and explain why this happens.
Argue that for catching positives within a fixed review budget, you should optimize for precision at a fixed recall or recall at a fixed precision, using PR curves or precision@k. PR-AUC is generally preferred for imbalanced data, but the final choice depends on the cost of errors and operational constraints.
Mention pitfalls: ROC-AUC can hide poor performance on the minority class; PR-AUC can be unstable with few positives; both are threshold-agnostic and may not reflect the chosen operating point; and they can be gamed by overfitting to the metric.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.