What are some nice features of Matthews correlation coefficient vs F1 score?¶
MCC can raise a "red flag" when many parts of the confusion matrix are 0¶
For example:
Predicted: 0 | Predicted: 1 | |
---|---|---|
True: 0 | TN = 0 | FP = 5 |
True: 1 | FN = 0 | TP = 95 |
yields:
F1 score is sensitive to which class is positive/negative, MCC isn't¶
F1 score = 0.952, MCC = 0.135
Predicted: 0 | Predicted: 1 | |
---|---|---|
True: 0 | TN = 1 | FP = 4 |
True: 1 | FN = 5 | TP = 90 |
F1 score = 0.182, MCC = 0.135
Predicted: 0 | Predicted: 1 | |
---|---|---|
True: 0 | TN = 90 | FP = 5 |
True: 1 | FN = 4 | TP = 1 |