You can edit almost every page by Creating an account and confirming your email.

Template:Confusion matrix terms

From EverybodyWiki Bios & Wiki

{| class="wikitable floatright" width=35% style="margin-left:0.5em; padding:0.25em; background:#f1f5fc; font-size:98%;"

|+ Terminology and derivations
from a confusion matrix |- style="vertical-align:top;" |

condition positive (P)
the number of real positive cases in the data
condition negative (N)
the number of real negative cases in the data

true positive (TP)
A test result that correctly indicates the presence of a condition or characteristic
true negative (TN)
A test result that correctly indicates the absence of a condition or characteristic
false positive (FP)
A test result which wrongly indicates that a particular condition or attribute is present
false negative (FN)
A test result which wrongly indicates that a particular condition or attribute is absent

sensitivity, recall, hit rate, or true positive rate (TPR)
TPR=TPP=TPTP+FN=1FNR
specificity, selectivity or true negative rate (TNR)
TNR=TNN=TNTN+FP=1FPR
precision or positive predictive value (PPV)
PPV=TPTP+FP=1FDR
negative predictive value (NPV)
NPV=TNTN+FN=1FOR
miss rate or false negative rate (FNR)
FNR=FNP=FNFN+TP=1TPR
fall-out or false positive rate (FPR)
FPR=FPN=FPFP+TN=1TNR
false discovery rate (FDR)
FDR=FPFP+TP=1PPV
false omission rate (FOR)
FOR=FNFN+TN=1NPV
Positive likelihood ratio (LR+)
LR+=TPRFPR
Negative likelihood ratio (LR-)
LR=FNRTNR
prevalence threshold (PT)
PT=FPRTPR+FPR
threat score (TS) or critical success index (CSI)
TS=TPTP+FN+FP

Prevalence
PP+N
accuracy (ACC)
ACC=TP+TNP+N=TP+TNTP+TN+FP+FN
balanced accuracy (BA)
BA=TPR+TNR2
F1 score
is the harmonic mean of precision and sensitivity: F1=2×PPV×TPRPPV+TPR=2TP2TP+FP+FN
phi coefficient (φ or rφ) or Matthews correlation coefficient (MCC)
MCC=TP×TNFP×FN(TP+FP)(TP+FN)(TN+FP)(TN+FN)
Fowlkes–Mallows index (FM)
FM=TPTP+FP×TPTP+FN=PPV×TPR
informedness or bookmaker informedness (BM)
BM=TPR+TNR1
markedness (MK) or deltaP (Δp)
MK=PPV+NPV1
Diagnostic odds ratio (DOR)
DOR=LR+LR

Sources: Fawcett (2006),[1] Piryonesi and El-Diraby (2020),[2] Powers (2011),[3] Ting (2011),[4] CAWCR,[5] D. Chicco & G. Jurman (2020, 2021, 2023),[6][7][8] Tharwat (2018).[9] Balayla (2020)[10] |}

Template documentation
  1. Fawcett, Tom (2006). "An Introduction to ROC Analysis" (PDF). Pattern Recognition Letters. 27 (8): 861–874. doi:10.1016/j.patrec.2005.10.010.
  2. Piryonesi S. Madeh; El-Diraby Tamer E. (2020-03-01). "Data Analytics in Asset Management: Cost-Effective Prediction of the Pavement Condition Index". Journal of Infrastructure Systems. 26 (1): 04019036. doi:10.1061/(ASCE)IS.1943-555X.0000512.
  3. Powers, David M. W. (2011). "Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness & Correlation". Journal of Machine Learning Technologies. 2 (1): 37–63.
  4. Ting, Kai Ming (2011). Sammut, Claude; Webb, Geoffrey I., eds. Encyclopedia of machine learning. Springer. doi:10.1007/978-0-387-30164-8. ISBN 978-0-387-30164-8. Search this book on
  5. Brooks, Harold; Brown, Barb; Ebert, Beth; Ferro, Chris; Jolliffe, Ian; Koh, Tieh-Yong; Roebber, Paul; Stephenson, David (2015-01-26). "WWRP/WGNE Joint Working Group on Forecast Verification Research". Collaboration for Australian Weather and Climate Research. World Meteorological Organisation. Retrieved 2019-07-17.
  6. Chicco D.; Jurman G. (January 2020). "The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation". BMC Genomics. 21 (1): 6-1–6-13. doi:10.1186/s12864-019-6413-7. PMC 6941312 Check |pmc= value (help). PMID 31898477.
  7. Chicco D.; Toetsch N.; Jurman G. (February 2021). "The Matthews correlation coefficient (MCC) is more reliable than balanced accuracy, bookmaker informedness, and markedness in two-class confusion matrix evaluation". BioData Mining. 14 (13): 1-22. doi:10.1186/s13040-021-00244-z. PMC 7863449 Check |pmc= value (help). PMID 33541410 Check |pmid= value (help).
  8. Chicco D.; Jurman G. (2023). "The Matthews correlation coefficient (MCC) should replace the ROC AUC as the standard metric for assessing binary classification". BioData Mining. 16 (1). doi:10.1186/s13040-023-00322-4. PMC 9938573 Check |pmc= value (help).
  9. Tharwat A. (August 2018). "Classification assessment methods". Applied Computing and Informatics. doi:10.1016/j.aci.2018.08.003.
  10. Balayla, Jacques (2020). "Prevalence threshold (ϕe) and the geometry of screening curves". PLoS One. 15 (10). doi:10.1371/journal.pone.0240215.