This paper provides a rigorous mathematical bridge between two of the most common evaluation metrics in machine learning: the Area Under the Receiver Operating Characteristic curve ($AUC_{ROC}$) and the Area Under the Precision-Recall curve ($AUC_{PR}$).
The Problem with ROC in Imbalanced Data
In binary classification, practitioners frequently rely on $AUC_{ROC}$ to measure how well a model distinguishes between classes. However, it is well-known in the machine learning community that $AUC_{ROC}$ can be dangerously misleading when a dataset is highly imbalanced—such as in fraud detection or rare disease diagnosis. In these scenarios, the standard advice is to use $AUC_{PR}$ instead.
Until now, the relationship between these two metrics was understood mostly through empirical observations or qualitative links (e.g., a curve dominating in ROC space also dominates in PR space). There was no precise way to answer the question: "If my model has an $AUC_{ROC}$ of 0.9, what is the absolute worst $AUC_{PR}$ it could possibly have?" This paper fills that gap by deriving exact mathematical bounds.
Mathematical Framework
The authors approach the problem through analytical derivation and functional optimization rather than empirical benchmarking:
- Point-to-Point Transformation: They establish an exact formula to map any point $(FPR, TPR)$ on an ROC curve to a corresponding point $(Recall, Precision)$ on a PR curve, and vice versa.
- The "Imbalance Coefficient": They define a parameter $a = N^- / N^+$ (the ratio of negative to positive examples). This coefficient is the critical variable that scales the relationship between the two metrics.
- Optimization via Step Functions: To find the bounds, the authors use the calculus of variations to determine which specific shapes of ROC curves result in the maximum and minimum possible area in PR space. They prove that these extremes are reached by specific "step functions."
- Closed-form Solutions: By integrating these optimal functions, they produce relatively simple logarithmic formulas for the upper and lower bounds of one metric given the other.
Key Insights and Theoretical Bounds
The core contribution of the paper is quantifying exactly how much $AUC_{ROC}$ can overestimate performance depending on the class imbalance.
- The "Optimism" of ROC: The derived bounds show that for a balanced dataset ($a=1$), an $AUC_{ROC}$ of 0.8 limits the $AUC_{PR}$ to a relatively tight range (approximately 0.72 to 0.93). However, as the imbalance grows, the bounds widen drastically.
- A Stark Example: For a highly imbalanced dataset ($a=100$), a model with a seemingly "good" $AUC_{ROC}$ of 0.875 could have an $AUC_{PR}$ as high as 0.876 or as low as 0.038. This massive range mathematically proves why $AUC_{ROC}$ alone is insufficient for imbalanced data.
- PR is More Informative: The authors demonstrate that a high $AUC_{PR}$ (e.g., > 0.7) mathematically guarantees a high $AUC_{ROC}$, but the reverse is not true. This provides a rigorous justification for prioritizing PR metrics in real-world applications.
- Efficient Model Comparison: A new corollary allows researchers to determine if one model dominates another in both metrics without having to compute both curves. This reduces the computational burden of model evaluation, which is especially useful given that $AUC$ calculations can be $O(n^2)$.
Key Results
The findings are formalized in two main theorems:
- Theorem 3.5: Provides the exact formulas for $AUC_{PR}^{max}$ and $AUC_{PR}^{min}$ for a fixed $AUC_{ROC}$.
- Theorem 3.9: Provides the inverse—the exact bounds for $AUC_{ROC}$ when $AUC_{PR}$ is fixed.
The authors also successfully unify previous literature, showing that earlier "global minimum" definitions for $AUC_{PR}$ are simply specific edge cases of their more generalized formulas.
Limitations and Future Work
While mathematically rigorous, the paper notes a few limitations:
- Binary Focus: The current theorems are strictly for binary classification. Extending these analytical bounds to multi-class problems remains an open challenge.
- Fixed Class Ratios: The formulas assume the number of positive and negative examples is fixed and known. In dynamic or streaming environments where this ratio shifts, the bounds would change accordingly.
- Practical Reachability: The paper defines the absolute mathematical limits but does not explore whether standard loss functions (like Cross-Entropy) naturally push models toward the upper or lower bounds of these ranges. Future work could investigate which training techniques help a model "maximize" its $AUC_{PR}$ for a given $AUC_{ROC}$ budget.
Summary updated