Statistics

Correlation Coefficient Calculator (Matthews)

Find the Matthews correlation coefficient (MCC) for a classifier.

Parameters Live Compute
Calculated Output
MCC 0.6508
Formula: MCC = (TP·TN − FP·FN) ÷ √((TP+FP)(TP+FN)(TN+FP)(TN+FN))
Step-by-Step Breakdown
1. Values used:
2. True positives = 80
3. True negatives = 85
4. False positives = 15
5. False negatives = 20
6.
7. MCC = 0.6508
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

MCC is a balanced measure of binary classification quality, even on imbalanced data.

The math behind it

MCC ranges from −1 (total disagreement) through 0 (random) to +1 (perfect).

Worked Example

TP 80, TN 85, FP 15, FN 20 → MCC ≈ 0.65.

Frequently Asked Questions

Why prefer MCC over accuracy?

It stays informative when classes are imbalanced.

Advertisement