How it works
Calculate the Matthews correlation coefficient from the true and false positives and negatives.
Worked example
True positives: 40 · True negatives: 40 · False positives: 10 · False negatives: 10. The result is 0.6.
How to read the result
MCC ranges from −1 for total disagreement to 1 for total agreement. Here it is undefined when the actual or predicted observations contain only one class.
Classification metric definitions