Skip to content

ROC Curves and AUC

How ROC curves show classifier performance across thresholds, what AUC measures, and when precision-recall curves are better.

Editorial team 1 min read

Many classifiers output scores or probabilities. The ROC curve shows performance across all decision thresholds.

The ROC Curve

It plots:

  • True positive rate (recall) on the vertical axis.
  • False positive rate on the horizontal axis.

Each point is a threshold. A perfect classifier reaches the top-left corner; random guessing follows the diagonal.

AUC

The area under the ROC curve summarises performance in one number from 0.5 (random) to 1.0 (perfect). It's the probability that a random positive example is scored higher than a random negative one.

Strengths

  • Threshold-independent.
  • Useful for comparing models' ranking ability.

Limitations

  • With heavy class imbalance, ROC AUC can look good even when precision is poor.
  • It doesn't tell you which threshold to use.
  • It ignores calibration.

Precision-Recall Curves

For rare positive classes — fraud, disease — precision-recall curves and average precision are often more informative.

Choosing a Threshold

Pick based on the costs of false positives and false negatives in your application, not just the curve.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 17 Sep 2026

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 16 Sep 2026

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 15 Sep 2026

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 14 Sep 2026