Specificity

Specificity is the proportion of truly negative cases that a binary classification test correctly identifies as negative. It is used to judge how well a test avoids false alarms.

\mathrm{TNR} = \frac{\mathrm{TN}}{N} = \frac{\mathrm{TN}}{\mathrm{TN}+\mathrm{FP}}

What the symbols mean

true negative rate (specificity), a dimensionless proportion between 0 and 1
number of true negatives, cases that are negative and correctly labelled negative
number of false positives, cases that are negative but wrongly labelled positive
total number of actual negatives, equal to TN plus FP

About this formula

  • FieldStatistics
  • TopicClassification metrics
  • LevelUniversity
  • Also calledtrue negative rate, selectivity, true negative fraction
  • SourceWikidata Q3494375

Write it in Obsidian

MathLive is a free visual math editor for Obsidian. Run Find a formula, type “specificity”, and it goes into your note as editable LaTeX. You can also scan formulas from screenshots, PDFs and handwriting.

Related formulas