Robust performance metrics for imbalanced classification problems

Hajo Holzmann, Bernhard Klar
4/11/2024
stat.MLcs.LGstat.ME

No official code found. Best implementation: BernhardKlar/RobustMetrics (1 star, GPL-3.0, last commit 2025-08-27).

Abstract

We show that established performance metrics in binary classification, such as the F-score, the Jaccard similarity coefficient or Matthews' correlation coefficient (MCC), are not robust to class imbalance in the sense that if the proportion of the minority class tends to $0$, the true positive rate (TPR) of the Bayes classifier under these metrics tends to $0$ as well. Thus, in imbalanced classification problems, these metrics favour classifiers which ignore the minority class. To alleviate this issue we introduce robust modifications of the F-score and the MCC for which, even in strongly imbalanced settings, the TPR is bounded away from $0$. We numerically illustrate the behaviour of the various performance metrics in simulations as well as on a credit default data set. We also discuss connections to the ROC and precision-recall curves and give recommendations on how to combine their usage with performance metrics.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Calculates robust performance metrics for imbalanced classification problems

10RFeb 25, 20251 years agoGPL-3.0

Similar Papers

Cite this paper

@article{holzmann2024robust,
  title  = {Robust performance metrics for imbalanced classification problems},
  author = {Hajo Holzmann and Bernhard Klar},
  year   = {2024},
  eprint = {2404.07661},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07661v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.07661.svg)](https://codeofpaper.com/paper/2404.07661)

Discussion