Model Evaluation and Improvement Flashcards
Define F1 score
The Harmonic mean of precision and sensitivity:
F1=(2TP)/(2TP+FP+FN)
Where:
TP=# True Positives
FP=# False Positives
FN=# False Negatives
Define True Positive Rate
TPR=TP/P=TP/(TP+FN)
Where:
TP=# True Positives
FN=# False Negatives
P=Total Actual Positives
Note: TPR (True Positive Rate)=Sensitivity=Recall=Hit Rate
Define True Negative Rate
TNR=TN/N=TN/(TN+FP)
Where:
TN=# True Negatives
FP=# False Positives
N=Total Actual Negatives
Note: TNR (True Negative Rate)=Specificity=Selectivity
Define Positive Predictive Value
PPV=TP/(TP+FP)
Where:
TP=# True Positives
FP=# False Positives
Positive Predictive Value = Precision
Define Negative Predictive Value
NPV=TN/(TN+FN)
Where:
TN=# True Negatives
FN=# False Negatives