Formula:
The Matthews Correlation Coefficient (MCC) is calculated using the following formula:
MCC = (TP × TN - FP × FN) / √((TP + FP) × (TP + FN) × (TN + FP) × (TN + FN))
Where:
- TP = True Positives (Correctly predicted positive cases)
- TN = True Negatives (Correctly predicted negative cases)
- FP = False Positives (Incorrectly predicted positive cases, Type I error)
- FN = False Negatives (Incorrectly predicted negative cases, Type II error)