Notes

Detection Error Tradeoff (DET) Curve

When a classifier outputs a score (like “how spammy is this email?”), you still have to choose a cutoff threshold to turn that score into a yes/no decision. A Detection Error Tradeoff (DET) curve is a way to see how the two main kinds of mistakes trade off as you slide that threshold.

What a DET curve shows

A DET curve plots false negative rate (miss rate) against false positive rate (false alarm rate) across all possible thresholds. It’s closely related to the ROC curve, but with two key twists:

  • Both axes use an approximately normal deviate (probit) scale, which spreads out the low-error region where many real systems operate.
  • Because of that scaling, many models produce curves that look closer to a straight line, making comparisons easier when error rates are small.

Why it matters in supervised learning

In applications like fraud detection or medical screening, you care deeply about the “rare error” regime: maybe you can tolerate 1% false alarms but need misses below 0.1%. A DET curve makes it easier to judge which model is better at those stringent operating points, rather than averaging performance over regions you’ll never use. If you ignore this and pick a model based on a summary number alone, you can end up with a system that looks good on paper but fails at the threshold you actually deploy.

Practical example and how you’d compute it

Suppose a churn model outputs probabilities. Moving the threshold from 0.7 to 0.4 might reduce false negatives (missed churners) but increase false positives (unnecessary retention offers). A DET curve visualizes that tradeoff directly. In Python, you’ll commonly compute the underlying rates with scikit-learn:

from sklearn.metrics import det_curve

fpr, fnr, thresholds = det_curve(y_true, y_score)

A Detection Error Tradeoff (DET) curve plots a classifier’s false negative rate (miss rate) against its false positive rate (false alarm rate) as the decision threshold varies, typically using a normal-deviate scale that spreads out low-error regions. It is important because it makes threshold tradeoffs and small performance differences easier to compare than a ROC curve when operating at low error rates (e.g., biometrics or speaker verification).

Imagine a smoke alarm: set it too sensitive and it screams at burnt toast (false alarms). Set it too relaxed and it might miss a real fire (misses). A Detection Error Tradeoff (DET) Curve is a picture that shows this exact balancing act for an AI classifier.

As you change the model’s decision “strictness” (the cutoff for saying “yes, it’s spam” or “yes, it’s fraud”), two kinds of mistakes move in opposite directions: false alarms versus misses. The DET curve plots those error rates against each other so you can quickly see which settings give an acceptable tradeoff for your real-world needs.