What is trade-off between sensitivity (or TPR) and specificity (1-FPR)?

2023. 3. 7. 14:03Machine Learning

In binary classification problems, sensitivity (also called true positive rate or TPR) and specificity (also called true negative rate or TNR) are two common performance metrics used to evaluate the performance of a classification model.

Sensitivity measures the proportion of true positives (correctly identified positives) out of all actual positives. It is defined as:

 

TPR = TP / (TP + FN)

 

where TP is the number of true positives, and FN is the number of false negatives.

 

Specificity, on the other hand, measures the proportion of true negatives (correctly identified negatives) out of all actual negatives. It is defined as:

 

TNR = TN / (TN + FP)

 

where TN is the number of true negatives, and FP is the number of false positives.

 

There is often a trade-off between sensitivity and specificity. Increasing sensitivity can often lead to a decrease in specificity, and vice versa. This trade-off occurs because classification models usually have a threshold for deciding whether a given observation belongs to a positive or negative class. If the threshold is set high, the model will be more likely to predict negative outcomes, leading to high specificity but low sensitivity. Conversely, if the threshold is set low, the model will be more likely to predict positive outcomes, leading to high sensitivity but low specificity.

 

In some situations, such as in medical diagnosis or fraud detection, high sensitivity is more important than high specificity, while in other situations, such as in spam filtering, high specificity is more important than high sensitivity. The choice between sensitivity and specificity depends on the specific application and the costs and benefits of different types of errors.

 
 

'Machine Learning' 카테고리의 다른 글

Practice of MLP question  (0) 2023.03.07
What is ROC?  (0) 2023.03.07
What is Self-Organizing Map?  (0) 2023.03.06
Difference between K-means and LVQ  (0) 2023.03.06
What is clustering?  (0) 2023.03.06