Asked about Choosing the metric that matches the cost of being wrong

Why can ROC AUC mislead on imbalanced data?

An answer that works

It includes the true negative rate, and with overwhelming negatives that stays high regardless, flattering the score. Precision-recall AUC ignores true negatives and is the honest summary when positives are rare.

Reading an answer is not being able to give one. The section that teaches this is Choosing the metric that matches the cost of being wrong, 5 hours of Model evaluation & metrics.

Learn this properly