Especificidade

Taxa de verdadeiros negativos = TN/(TN+FP).
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Especificidade
0,7778

Formula

Esp = TN/(TN+FP)

About this calculator

The Specificity calculator is a statistical tool used to evaluate the performance of classification models, especially in machine learning contexts. It measures the proportion of true negatives correctly identified by the model relative to the total of real negatives. This is crucial for understanding the model's ability to avoid false alarms.

The formula to calculate specificity is straightforward: Esp = TN / (TN + FP), where TN represents true negatives and FP represents false positives. This means specificity is calculated by dividing the number of correctly predicted negative results by the total number of real negative results (being the sum of true negatives and false positives).

When to use specificity? In situations where the cost of a false positive is high, such as in medical diagnostics or fraud detection, it is crucial to have a high specificity measure. This helps ensure that the model does not generate unnecessary false alarms, which could lead to unnecessary actions or resource loss.

It's essential to be cautious when interpreting specificity in isolation, as it does not provide information on the model's ability to detect true positives (sensitivity). Therefore, it's recommended to use specificity in conjunction with other metrics, such as sensitivity and accuracy, to get a comprehensive view of the model's performance.

Frequently asked questions

What is specificity in statistics?

Specificity is the measure of the proportion of true negatives correctly identified by a classification model relative to the total of real negatives.

How to calculate specificity?

Specificity is calculated using the formula: Esp = TN / (TN + FP), where TN are true negatives and FP are false positives.

When is specificity important?

Specificity is crucial in situations where the cost of a false positive is high, such as in medical diagnostics or fraud detection.

Is specificity enough to evaluate a model?

No, specificity should be used in conjunction with other metrics, such as sensitivity and accuracy, for a comprehensive evaluation of the model's performance.

Other ML Metrics calculators