Table 3.
Performance measures for the binary classification problem: TP – true positives, TN – true negatives, FP – false positives, FN – false negatives
Measure | Mathematical formulation | Comment |
---|---|---|
Accuracy | A | Indicates the fraction of correct predictions over the total: not very significant when dealing with imbalanced data. |
Precision | P | Indicates the fraction of relevant instances among the retrieved ones. |
Recall | R | Indicates the fraction of relevant instances that have been retrieved over the total relevant instances. |
F1 score | F | It is the harmonic mean of precision and recall. |
Matthews correlation coefficient | MCC | Returns a value between −1 and +1: +1 represents a perfect prediction, 0 no better than random prediction and −1 indicates total disagreement between prediction and observation. |