I posted the definitions of accuracy, precision, and recall on @BasicStatistics this afternoon. I think the tweet was popular because people find these terms hard to remember and they liked a succinct cheat sheet.
Accuracy = (TP+TN)/(TP+FP+FN+TN)
Precision = TP/(TP+FP)
Recall = TP/(TP+FN)
T = true
F = false
P = positive
N = negative
— Basic Statistics (@BasicStatistics) September 6, 2018
There seems to be no end of related definitions, and multiple names for the same definitions.
Precision is also known as positive predictive value (PPV) and recall is also known as sensitivity, hit rate, and true positive rate (TPR).
Not mentioned in the tweet above are specificity (a.k.a. selectivity and true negative rate or TNR), negative predictive value (NPV), miss rate (a.k.a. false negative rate or FNR), fall-out (a.k.a. false positive rate or FPR), false discovery rate (FDR), and false omission rate (FOR).
How many terms are possible? There are four basic ingredients: TP, FP, TN, and FN. (You may see these arranged into a 2 by 2 grid called a confusion matrix.) So if each term may or may not be included in a sum in the numerator and denominator, that’s 16 possible numerators and 16 denominators, for a total of 256 possible terms to remember. Some of these are redundant, such as one (a.k.a. ONE), given by TP/TP, FP/FP, etc. If we insist that the numerator and denominator be different, that eliminates 16 possibilities, and we’re down to a more manageable 240 definitions. And if we rule out terms that are the reciprocals of other terms, we’re down to only 120 definitions to memorize.
But wait! We’ve assumed every term occurs with a coefficient of either 0 or 1. But the F1 score has a couple coefficients of 2:
F1 = 2TP / (2TP + FP + FN)
If we allow coefficients of 0, 1, or 2, and rule out redundancies and reciprocals …
This has been something of a joke. Accuracy, precision, and recall are useful terms, though I think positive predictive value and true positive rate are easier to remember than precision and recall respectively. But the proliferation of terms is ridiculous. I honestly wonder how many terms for similar ideas are in use somewhere. I imagine there are scores of possibilities, each with some subdiscipline that thinks it is very important, and few people use more than three or four of the possible terms.
Here are the terms I’ve collected so far. If you know of other terms or other names for the same terms, please leave a comment and we’ll see how long this table goes.
|Accuracy||(TP + TN) / (FP + TP + FN + TN) </dt|
|True positive rate (TPR)||TP / (TP + FN) </dt|
|Sensitivity||see TPR </dt|
|Recall||see TPR </dt|
|Hit rate||see TPR </dt|
|Probability of detection||see TPR </dt|
|True negative rate (TNR)||TN / (TN + FP) </dt|
|Specificity||see TNR </dt|
|Selectivity||see TNR </dt|
|Positive predictive value (PPV)||TP / (TP + FP) </dt|
|Precision||see PPV </dt|
|Negative predictive value (NPV)||TN / (TN + FN) </dt|
|False negative rate (FNR)||FN / (FN + TP) </dt|
|Miss rate||see FNR </dt|
|False positive rate (FPR)||FP / (FP + TN) </dt|
|Fall out||see FPR </dt|
|False discovery rate (FDR)||FP / (FP + TP) </dt|
|False omission rate (FOR)||FN / (FN + TN) </dt|
|F1 score||2TP / (2TP + FP + FN) </dt|
|F-score||see F1 score </dt|
|F-measure||see F1 score </dt|
|Sørensen–Dice coefficient||see F1 score </dt|
|Dice similarity coefficient (DSC)||see F1 score </dt|