Back to Evaluation, Leakage, and Unsupervised

Evaluation Metrics — AUC, F1, Precision/Recall, Brier

No metric is universally right. Pick by what the model will be used for. FIND_VIDEO: search 'ROC AUC F1 precision recall explained' — recommended channel: StatQuest. Aim for 11 min or under.

16 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.

Ready to continue?

Mark this lesson as complete when you're ready to proceed.

Key moments

  1. Setup and ContextThe lesson builds on confusion matrices and logistic regression basics.
  2. Classification ThresholdA logistic regression curve assigns probabilities, requiring a threshold (e.g., 0.5) for classification.
  3. Evaluating 0.5 ThresholdTesting the 0.5 threshold generates a confusion matrix used to calculate sensitivity and specificity.
  4. Variable ThresholdsChanging the threshold alters the balance between false positives and false negatives, depending on the application cost.
  5. ROC Axes DefinedThe ROC graph plots True Positive Rate (Sensitivity) on the Y-axis against False Positive Rate (1 - Specificity) on the X-axis.
  6. Plotting the CurveVarying the classification threshold generates a series of (FPR, TPR) points that form the ROC curve.
  7. Interpreting ROCPoints further to the upper-left indicate better performance, helping identify the optimal threshold.
  8. Area Under Curve (AUC)AUC summarizes the overall model performance, allowing easy comparison between different classification methods.
  9. Precision and ImbalancePrecision is introduced as an alternative metric that is less affected by highly imbalanced datasets because it excludes true negatives.
PDF notes

Frequently asked questions

Why use ROC/AUC instead of just accuracy?

ROC/AUC evaluates performance across all possible thresholds, providing a complete picture independent of a single cutoff.

What does a point on the diagonal line (TPR=FPR) mean?

The model performs no better than random guessing at that specific threshold.

When is Precision more useful than FPR?

When the dataset is highly imbalanced (e.g., rare disease), Precision is less affected by the large number of true negatives.

What does a perfect ROC curve look like?

A perfect curve goes straight up from (0, 0) to (0, 1) and then straight across to (1, 1), resulting in an AUC of 1.0.