Why is the Matthews correlation coefficient more informative than accuracy or F1 on imbalanced data?

Quick Overview

Asks why the Matthews correlation coefficient gives a more informative score than accuracy or F1 when one class is rare. Tests understanding of the confusion matrix, metric symmetry, degenerate classifiers and the cases where another metric fits the business goal better.

Why is the Matthews correlation coefficient more informative than accuracy or F1 on imbalanced data?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is the Matthews correlation coefficient considered more informative than accuracy or F1 on imbalanced binary classification? ```hint Count the cells List which confusion-matrix cells accuracy, F1 and MCC each use, then score a model that predicts the majority class for every row. ``` ### What a Strong Answer Covers - The MCC formula, its range and its link to correlation between predictions and labels - A concrete case where accuracy looks strong but the model is useless - Which confusion-matrix cells F1 uses and how it behaves when the positive label is swapped - How MCC behaves under a label swap and what it needs from each class to score high - Limits of MCC and the situations where another metric fits the goal better ### Follow-up Questions - How does MCC relate to the chi-square statistic and to Pearson correlation? - How would you compute MCC for a multiclass problem? - How would you choose a decision threshold that maximizes MCC? - If the business only cares about catching positives, would you still optimize MCC?

Overview: Asks why the Matthews correlation coefficient gives a more informative score than accuracy or F1 when one class is rare. Tests understanding of the confusion matrix, metric symmetry, degenerate classifiers and the cases where another metric fits the business goal better.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is the Matthews correlation coefficient considered more informative than accuracy or F1 on imbalanced binary classification?

What a Strong Answer Covers Guidance

  • The MCC formula, its range and its link to correlation between predictions and labels
  • A concrete case where accuracy looks strong but the model is useless
  • Which confusion-matrix cells F1 uses and how it behaves when the positive label is swapped
  • How MCC behaves under a label swap and what it needs from each class to score high
  • Limits of MCC and the situations where another metric fits the goal better

Follow-up Questions Guidance

  • How does MCC relate to the chi-square statistic and to Pearson correlation?
  • How would you compute MCC for a multiclass problem?
  • How would you choose a decision threshold that maximizes MCC?
  • If the business only cares about catching positives, would you still optimize MCC?