Reproduce “The Effect of Class Imbalance on Precision-Recall Curves” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Christopher K I Williams

Christopher K. I. Williams from the University of Edinburgh quantifies the explicit dependence of precision, Precision-Recall (PR) curves, and related evaluation metrics on the ratio of positive to negative cases in a dataset. This work provides mathematical formulas that explain how PR curves transform predictably with varying class ratios and identifies Precision Gain as a metric invariant to class imbalance.

Key insights

  • Precision is explicitly shown to be a function of the True Positive Rate (Recall), False Positive Rate, and the ratio of positive to negative cases (r) in the test set.
  • The derived formula allows for predicting how a Precision-Recall (PR) curve will transform when the class ratio (r) of the test set changes.
  • Precision Gain (PrecG), a metric introduced by Flach and Kull, is found to be invariant to the class ratio (r), suggesting its potential for more robust classifier comparisons under varying class prevalences.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.