NEW
Also known as: PR Curve
A plot of precision versus recall across thresholds, highlighting performance for imbalanced classification tasks.
DESCRIPTION
Precision-recall curves visualize the trade-off between capturing positives (recall) and avoiding false positives (precision) as a decision threshold varies. They are especially informative for rare-event detection where ROC curves can be overly optimistic. Average precision summarizes the curve into a scalar, while F1 highlights a specific balance point. PR curves guide threshold selection aligned with business costs and risk tolerance.
ALTERNATIVE DEFINITIONS
scikit-learn
A precision-recall curve shows the tradeoff between precision and recall for different probability thresholds.
Explicitly ties curve behavior to threshold variation and trade-offs.
Google Developers
A precision-recall curve (PR curve) shows the tradeoff between precision and recall for different thresholds.
Concise, education-focused definition suited for practitioners.
RELATED TERMS
Precision Recall Precision-Recall AUC F1 Score Confusion Matrix Threshold Tuning Imbalanced Data Calibration Binary Classification
COMPETING TERMS
RELATIONS
- Derivations: Area Under the Curve
KNOWLEDGE AREAS
AI Data Science MLOps Testing & Validation Mathematics
TARGET AUDIENCE
Data Scientist AI Engineer MLOps Engineer Data Analyst
EXTERNAL SOURCES
- Wikipedia - Precision and recall
- scikit-learn - Precision, recall, and PR metrics
- PLOS ONE - Paper on PR vs ROC for imbalanced data
TOP QUESTIONS
When is a Precision-Recall Curve preferable to ROC?
For imbalanced datasets where the positive class is rare, PR curves better reflect practical performance.
Category: Relevancy
What is Average Precision on a Precision-Recall Curve?
It’s a scalar summary approximating the area under the PR curve, often computed as a weighted mean of precisions at different recalls.
Category: Overview
How to use a Precision-Recall Curve for threshold selection?
Choose thresholds balancing desired precision and recall given domain costs, or optimize F1 or cost-sensitive objectives.
Category: HowTo
What is a common mistake with Precision-Recall Curves?
Comparing curves without consistent class priors or sample weights can mislead conclusions.
Category: Mistakes
How do calibration and Precision-Recall Curves relate?
Well-calibrated probabilities improve threshold selection on PR curves, aligning predicted scores with actual likelihoods.
Category: Requirements
Can Precision-Recall Curves be used for multiclass?
Yes, via one-vs-rest strategies per class, then aggregate or analyze per-class curves.
Category: Overview
What influences the shape of a Precision-Recall Curve?
Class imbalance, score calibration, and model separability influence curve steepness and area.
Category: Example
How does Average Precision compare to AUC-ROC?
Average precision emphasizes positive class retrieval quality; AUC-ROC emphasizes ranking across all thresholds.
Category: Alternatives
What tools plot Precision-Recall Curves?
scikit-learn, TensorBoard, and most ML platforms provide PR plotting utilities.
Category: Overview