Back to ML Engineer Mind Map
中文·English
💻 ML EngineerID: mle-pr-auc-imbalance-thresholding

PR-AUC vs ROC & Threshold Tuning

不平衡 PR-AUC 与截断点标定
🎯Core Definition
PR-AUC Superiority in Imbalance & Optimal Threshold Calibration formalizes classification evaluation and operating point selection under severe positive rarity (e.g. positive prevalence <0.1%<0.1\%); while ROC Curves plot TPR vs FPR (where the massive true-negative denominator NN artificially suppresses FPR, inflating ROC-AUC to deceptively high >0.95>0.95), Precision-Recall (PR) Curves plot Precision vs Recall, completely excluding the uninformative true-negative denominator to expose precision collapse; furthermore, optimal decision threshold calibration dynamically sweeps cutoffs T(0,1)T^* \in (0, 1) to maximize F1-score, Youden's Index (TPRFPRTPR - FPR), or minimize expected monetary loss using business cost matrices CFPC_{\text{FP}} and CFNC_{\text{FN}}.
💡Use Cases
Payment fraud detection, rare pathology diagnosis, ad conversion prediction, and cyber-intrusion alerts.
Key Problems Solved
Default 0.5 probability thresholds predict zero fraud, while ROC-AUC masks catastrophic false-alarm rates; PR-AUC and cost-calibrated thresholding deliver mathematically grounded production decision cutoffs.
🎯5 High-Frequency Exam Points
1
Mathematically prove why ROC curves are invariant to class prevalence shifts while PR curves reflect true positive ratio changes?
2
Contrast random baseline performance: ROC-AUC is always 0.5, whereas PR-AUC baseline equals the true positive class prevalence P/(P+N)P/(P+N)?
3
Compare threshold selection criteria: Max F1 vs Youden's Index vs Fixed-Specificity constraint (e.g. FPR 0.001\le 0.001)?
4
How to use Isotonic Regression to calibrate raw model scores into true empirical probabilities for downstream dollar-cost decision making?
5
Why does linear trapezoidal integration overestimate PR-AUC, mandating interpolated Average Precision (AP) sums?
🔗Foundational Prerequisite Cards (Click to Review)
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "PR-AUC vs ROC & Threshold Tuning"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous Card5 CV Splitting Strategies & Leak DefenseNext CardLR Warmup & Cosine Annealing Tuning

🔗 More ML Engineer Knowledge Cards

Bias-Variance Tradeoff & OverfittingLoss Function Taxonomy & GradientsOptimizer Convergence & MomentumEnsemble Stacking & Blending