Statistics

Specificity

Children check which unmarked envelopes were correctly set aside.

Specificity definition

Specificity is the proportion of actual negative cases that a classifier correctly identifies as negative.

In Spanish
especificidad
Topic
Classification and evaluation

Specificity in a picture

Specificity diagramEighty-six correct negative predictions out of ninety actual negatives give about 95.6% specificity.Actual negatives: 90Include every real negative caseCorrectly identified: 86These are true negatives86 ÷ 90 ≈ 95.6%Specificity conditions on the actual class
Eighty-six correct negative predictions out of ninety actual negatives give about 95.6% specificity.

How it works

Divide true negatives by true negatives plus false positives. Specificity is also called the true negative rate. It complements the false positive rate, since these rates split all actual negatives into correct rejections and false alarms.

Worked examples

A detector leaves 45 of 50 clean parts unflagged. Find specificity.

45/50 = 90%.

A filter has specificity 0.97. Find the false positive rate.

1 − 0.97 = 0.03.

If all negatives are correctly rejected, what is specificity?

100% if there is at least one actual negative.

Common mistake

Specificity divides by actual negatives. Negative predictive value divides by cases predicted negative.

Quick check

What is the alternative name for specificity?

Show answer

True negative rate.

Do false negatives enter its formula?

Show answer

No.

If the false positive rate is 1%, what is specificity?

Show answer

99%.

Sources

Flashcard

Specificity

Reveal the definition

Specificity is the proportion of actual negative cases that a classifier correctly identifies as negative.

Effortless Math. “Specificity.” Math Dictionary.