Why prefer precision-at-k, recall or PR-AUC over ROC-AUC for an outlier detector under extreme imbalance?

Quick Overview

Asks why precision-at-k, recall and PR-AUC are the preferred metrics over ROC-AUC for an outlier detector when anomalies are extremely rare. It tests understanding of how class imbalance affects each metric, what a random detector scores, and how a fixed alert review budget shapes evaluation.

Why prefer precision-at-k, recall or PR-AUC over ROC-AUC for an outlier detector under extreme imbalance?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

Why is precision-at-k, recall, or PR-AUC preferred over ROC-AUC when evaluating an outlier detector under extreme class imbalance? ```hint Look at the denominators Write the false-positive rate and precision as fractions of confusion-matrix counts. Which one has the enormous number of normal points in its denominator? ``` ```hint How alerts get used Think about how an analyst team consumes the detector's output each day, and which part of the score ranking that touches. ``` ### What a Strong Answer Covers - Why the false-positive rate, and so ROC-AUC, barely reacts to false alarms when normal points vastly outnumber outliers - What precision and PR-AUC measure, and what a random detector scores on each - Why precision@k and recall@k fit a fixed review budget, and why recall on its own is not enough - A numeric example in which a high ROC-AUC hides a detector that is poor where it matters - Limits of the precision-based metrics, such as noise when positives are few and dependence on prevalence ### Follow-up Questions - The test set has only 40 labeled anomalies. How would you report the uncertainty on PR-AUC or precision@k? - When would ROC-AUC still be the better metric for an anomaly detector? - How would you choose k for precision@k on a fraud review team? - Labels exist only for the alerts analysts reviewed. How does that bias these metrics, and how would you correct for it?

Overview: Asks why precision-at-k, recall and PR-AUC are the preferred metrics over ROC-AUC for an outlier detector when anomalies are extremely rare. It tests understanding of how class imbalance affects each metric, what a random detector scores, and how a fixed alert review budget shapes evaluation.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

Why is precision-at-k, recall, or PR-AUC preferred over ROC-AUC when evaluating an outlier detector under extreme class imbalance?

What a Strong Answer Covers Guidance

  • Why the false-positive rate, and so ROC-AUC, barely reacts to false alarms when normal points vastly outnumber outliers
  • What precision and PR-AUC measure, and what a random detector scores on each
  • Why precision@k and recall@k fit a fixed review budget, and why recall on its own is not enough
  • A numeric example in which a high ROC-AUC hides a detector that is poor where it matters
  • Limits of the precision-based metrics, such as noise when positives are few and dependence on prevalence

Follow-up Questions Guidance

  • The test set has only 40 labeled anomalies. How would you report the uncertainty on PR-AUC or precision@k?
  • When would ROC-AUC still be the better metric for an anomaly detector?
  • How would you choose k for precision@k on a fraud review team?
  • Labels exist only for the alerts analysts reviewed. How does that bias these metrics, and how would you correct for it?