ML
intermediate
ROC Curve & AUC
Visualize ROC curves and AUC, and learn where they beat accuracy — and where they quietly flatter a model. Under a rare positive class the curve still looks excellent while precision collapses, which is why Geron's rule is to prefer the precision-recall curve whenever the positive class is rare.
algorithms.live
Data Parameters
50% positive
75%
Decision Threshold
0.50
Affects TPR/FPR trade-off
Actions
ROC Curve
AUC = 1.000
Excellent
Metrics at Threshold = 0.50
True Positive
50
False Positive
0
False Negative
0
True Negative
50
TPR (Sensitivity/Recall)
100.0%
FPR (Fall-out)
0.0%
Precision
100.0%
Accuracy
100.0%
Predicted Probability Distributions
Green dots = actual positive class, Blue dots = actual negative class. Red dashed line = decision threshold (0.50).
ROC or precision-recall?
Sort
Sort each statement by which curve it describes.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
ROC curve
Drop items herePrecision-recall curve
Drop items here6 pieces left to place
Test your knowledge
20 questions
Question 1 of 20
Score: 0
The ROC curve plots…
Learn these first
Interview Questions
Google
Stripe
Mastercard
PayPal
Palantir
Capital One
Visa
Plaid
Brex
Relativity
LexisNexis
Brainware
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required