NEW
Also known as: True negative rate
Proportion of actual negatives correctly identified by a test; the true negative rate in binary classification or diagnostics.
DESCRIPTION
Specificity quantifies how well a test avoids false positives by correctly classifying negatives. It complements sensitivity, which captures true positives, and both inform ROC analysis and threshold selection. High specificity is crucial when false positives carry high costs, such as invasive follow-up procedures. Specificity depends on decision thresholds and class distributions. It is estimated from holdout or cross-validation and should be reported with confidence intervals. Interpretations must consider prevalence and the intended operating point. In ML, specificity relates to confusion matrix components and model calibration.
ALTERNATIVE DEFINITIONS
Wikipedia
Specificity measures the proportion of actual negatives that are correctly identified as such.
Crisp definition tied directly to true negatives and actual negatives.
BMJ
Specificity is the ability of a test to correctly identify those without the disease (true negatives).
Frames specificity in clinical diagnostics as identifying disease-free cases.
UCLA Statistical Consulting
Specificity is the proportion of people without the disease who have a negative test result.
Restates the metric in practical population terms for diagnostics.
RELATED TERMS
Confusion Matrix ROC Curve False Positive Rate Precision Area Under the Curve Diagnostic Test Type I Error Accuracy
COMPETING TERMS
KNOWLEDGE AREAS
Mathematics Data Science AI Testing & Validation
TARGET AUDIENCE
Data Scientist AI Engineer MLOps Engineer Data Analyst
EXTERNAL SOURCES
- Wikipedia - Sensitivity and specificity
- U.S. FDA - Regulatory view on test performance
- BMJ - Clinical explanation and examples
- Google Developers - Confusion matrix metrics tutorial
TOP QUESTIONS
When is Specificity more important than Sensitivity?
When false positives are costly or harmful, such as invasive procedures or legal actions, prioritizing specificity reduces unnecessary follow-ups and associated risks.
Category: Opinion
How is Specificity calculated from a confusion matrix?
Specificity equals true negatives divided by the sum of true negatives and false positives: TN / (TN + FP).
Category: Basics
What is a common misunderstanding about Specificity?
Confusing specificity with predictive values. Specificity describes test performance independent of prevalence, while predictive values depend on prevalence.
Category: Misunderstanding
How does threshold selection affect Specificity?
Raising the decision threshold usually increases specificity by reducing false positives, but often decreases sensitivity, creating a trade-off analyzed via ROC curves.
Category: Concept
How should Specificity be reported?
Report point estimates with confidence intervals and clarify the chosen threshold and dataset characteristics, including class imbalance.
Category: BestPractices
What risks arise from optimizing for Specificity alone?
You may miss many true positives, reducing sensitivity and harming outcomes where early detection is crucial. Balance metrics to match business or clinical goals.
Category: Risks
How does Specificity relate to ROC and AUC?
ROC curves plot sensitivity versus 1−specificity across thresholds; AUC summarizes discrimination over all operating points.
Category: Concept
Can Specificity be used with multi-class problems?
Yes, by computing one-vs-rest specificity per class and aggregating appropriately. Interpretation should consider class imbalance.
Category: Application
What are alternatives to evaluate false positives besides Specificity?
Use precision, false discovery rate, or cost-sensitive metrics to capture positive prediction quality and associated trade-offs.
Category: Alternatives