AI engineering glossary · Evaluation metrics

What is TNR (specificity)?

Specificity (also called true negative rate, TNR, selectivity): The share of all real negative cases that the model correctly labels negative: TN / (TN + FP). It is the mirror image of recall and equals one minus the false positive rate. It is widely used in medical testing alongside sensitivity.

Level: beginnerTopic: Evaluation metrics

Specificity: an example

Of 980 genuine transactions, 970 are cleared correctly, so specificity = 970 / 980, about 0.99.

Related terms

More Evaluation metrics terms

Where you learn it

Specificity is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.