internalsGet Pro

Module 12 · Lesson 3 of 12Pro

ROC and precision-recall curves

Level
Intermediate
Topic
Model evaluation and experimentation
Reading time
17 min

When you finish this page you can

  1. Build a ROC curve and a precision-recall curve by walking down a ranked list, and compute both areas by hand on a small example.
  2. Explain ROC AUC as the chance that a random positive outranks a random negative, and say what it ignores.
  3. Explain why a precision-recall curve and average precision show more than ROC AUC when positives are rare.
  4. Read a model’s operating point at a fixed list size and choose the number that decides between two models.
  1. Imbalanced classes: when positives are rare16 min
  2. Precision and recall: two ways to be wrong13 min

Video lesson · coming soon

Two models score 0.82

is our example online store. Farah, an ML engineer, works on a notebook sample of 200,000 customers. Every Monday her model ranks them by how likely they are to stop buying, and Joseph’s growth team sends a ₹100 voucher to the top 20,000.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan