Specificity and Correctly Rejected Negatives

Specificity is the fraction of actual negative cases correctly classified as negative. Its complement is the false positive rate when the same denominator is used.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a report
  2. Compare with recall
  3. Restrict the denominator to actual negatives
  4. Keep specificity distinct from negative predictive value

Trace a report

With eighteen true negatives and two false positives, specificity is 0.9 and false positive rate is 0.1. Confusion counts give the independent entries.

Compare with recall

Recall measures correctly detected positives rather than negatives. A threshold can affect both, so evaluate several thresholds when choosing an operating point.[1][2]

Restrict the denominator to actual negatives

Among forty actual negative examples, thirty-six are correctly unflagged and four are flagged incorrectly. Specificity is \(36/40=0.9\). The false-positive rate is the remaining fraction, 0.1. See confusion matrices.

Actual negatives: TN 36 + FP 4 = 40
Specificity .9
False-positive rate .1
Positive cases do not enter either denominator

Keep specificity distinct from negative predictive value

The latter conditions on predictions that are negative, combining true negatives and false negatives. Test an asymmetric confusion matrix so swapping the denominators changes the result.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. scikit-learn Developers, Metrics and Scoring: Quantifying the Quality of Predictions ↩