How would you evaluate an outlier detection model with rare, unlabeled outliers, and why is accuracy misleading?

Quick Overview

Asks how to evaluate an outlier or anomaly detection model when anomalies are rare and mostly unlabeled, and why plain accuracy is a poor guide. Tests metric choice under class imbalance, ways to obtain evaluation labels, and setting a threshold from error costs.

How would you evaluate an outlier detection model with rare, unlabeled outliers, and why is accuracy misleading?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

Given that outliers are often rare and unlabelled, how would you evaluate the performance of an outlier detection model, and why is accuracy often a misleading metric? ```hint Run the numbers Pick a prevalence, say 1% anomalies, and compute the accuracy of a detector that never flags anything. ``` ```hint Labels you can get List the labels that are cheap to obtain in practice and ask which quantity each one lets you estimate. Some estimate precision, some estimate recall, and some neither. ``` ### What a Strong Answer Covers - Why accuracy is dominated by the majority class, with a numeric illustration - Metrics that focus on the anomaly class and on ranking quality, and why PR-AUC is preferred to ROC-AUC under heavy imbalance - Concrete ways to get an evaluation signal when labels are scarce or absent, and the limits of each - How review capacity and the cost of each error type set the operating threshold ### Follow-up Questions - If analysts can only review the top 100 flags each day, how would you estimate the recall of the system? - What can go wrong when you evaluate a detector only on synthetic injected anomalies? - How would you compare two unsupervised detectors with no labels at all? - How do label delays, such as chargebacks that arrive weeks later, affect your evaluation?

Overview: Asks how to evaluate an outlier or anomaly detection model when anomalies are rare and mostly unlabeled, and why plain accuracy is a poor guide. Tests metric choice under class imbalance, ways to obtain evaluation labels, and setting a threshold from error costs.

General logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

Given that outliers are often rare and unlabelled, how would you evaluate the performance of an outlier detection model, and why is accuracy often a misleading metric?

What a Strong Answer Covers Guidance

  • Why accuracy is dominated by the majority class, with a numeric illustration
  • Metrics that focus on the anomaly class and on ranking quality, and why PR-AUC is preferred to ROC-AUC under heavy imbalance
  • Concrete ways to get an evaluation signal when labels are scarce or absent, and the limits of each
  • How review capacity and the cost of each error type set the operating threshold

Follow-up Questions Guidance

  • If analysts can only review the top 100 flags each day, how would you estimate the recall of the system?
  • What can go wrong when you evaluate a detector only on synthetic injected anomalies?
  • How would you compare two unsupervised detectors with no labels at all?
  • How do label delays, such as chargebacks that arrive weeks later, affect your evaluation?