Matthews Correlation Coefficient Calculator

Compute binary-classification MCC from TP, TN, FP, FN. An undefined zero-denominator case is rejected rather than silently scored as zero.

Description

Compute binary-classification MCC from TP, TN, FP, FN. An undefined zero-denominator case is rejected rather than silently scored as zero.

Matthews Correlation Coefficient Calculator: Compute binary-classification MCC from TP, TN, FP, FN. An undefined zero-denominator case is rejected rather than silently scored as zero.

When to use Matthews Correlation Coefficient

Use this metric to quantify prediction error or classification quality only after matching the target scale, aggregation, weighting, and statistical assumptions to the evaluation question.

true Positive
Required integer input.
true Negative
Required integer input.
false Positive
Required integer input.
false Negative
Required integer input.

How Matthews Correlation Coefficient works

Compute binary-classification MCC from TP, TN, FP, FN. An undefined zero-denominator case is rejected rather than silently scored as zero. The tool evaluates the supplied inputs together and returns the named outputs below; it does not infer omitted operating conditions or change the units shown.1

coefficient
The resulting coefficient returned as a number.

Limitations and assumptions

  • Different metrics penalize errors differently and can be dominated by outliers, scale, imbalance, zeros, or threshold choices. A single aggregate hides subgroup, temporal, and distributional failures.
  • Use finite inputs in the displayed units and preserve more precision than the final presentation requires. Independently verify safety-critical, financial, compliance, or production decisions.

Alternative or Complementary approaches

Report multiple complementary metrics with uncertainty and subgroup breakdowns, inspect residuals, and compare against meaningful baselines.

References

  1. Phi coefficient — Wikipedia contributors

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies