Sensitivity vs. specificity vs. recall Given a binary confusion matrix with true positives (TP), false positives (FP), true negatives (TN), and false negatives (FN), what are the formulas for sensitivity, specificity, and recall?
I'm coming across many conflicting answers online. For instance, wikipedia says:

But in a textbook — "Data Science for Business: What You Need to Know about Data Mining and Data-Analytic Thinking" (Provost & Fawcett, 2013) — it says:

Which one is correct? Is there an authoritative reference on this?

Both precision and specificity are related to false positives/type 1 error ($FDR$ denotes false discovery rate, $FPR$ denotes false positive rate).
$$\text{precision}=1-FDR=1-\frac{FP}{\hat{P}}=1-\frac{FP}{TP+FP}$$
$$\text{specificity}=1-FPR=1-\frac{FP}{N}=1-\frac{FP}{TN+FP}$$
Recall or Sensitivity are the same thing, and relate to false negatives/type 2 error ($FNR$ denotes false negative rate).
$$\text{recall}=\text{sensitivity}=1-FNR=1-\frac{FN}{P}=1-\frac{FN}{TP+FN}$$
Don't worry, I always have to look it up myself too. Get used to the table on Wikipedia.
