DS Interview Prep — Rounds, Cases, Offer Close
Back to M2 — ML Case Labs

ML Case Lab (Selection/CV/Leakage/PR-AUC/SHAP)

Outcome: Tell SHAP + threshold story on churn/LTV Curated video (CodeEmporium): How would a Data Scientist analyze Customer Churn? — https://www.youtube.com/watch?v=6EmjRXUcARc (verified live via yt-dlp 2026-09-24). Pointer: 79-derived items; WE W3-W4 churn/LTV; shell: courses/video-scripts/ds-interview-prep/03.md.

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

Key moments

  1. Case Setup & Grouped CV — Framing churn prediction requirements and establishing non-leaking grouped cross-validation strategies.
  2. PR-AUC vs ROC-AUC — Demonstrating how class imbalance distorts ROC metrics and why PR-AUC reveals true positive class performance.
  3. Brier Score & Calibration — Evaluating predicted probability reliability to ensure risk scores map directly to real-world outcomes.
  4. Cost-Optimal Thresholding — Mapping model decision boundaries to retention campaign costs and customer lifetime value savings.
  5. SHAP Storytelling — Translating complex tree ensemble outputs into actionable stakeholder narratives with SHAP plots.
PDF notes

Frequently asked questions

Why is ROC-AUC misleading on imbalanced datasets?

ROC-AUC includes true negatives in its denominator (false positive rate). A huge pool of non-churners deflates the false positive rate, making a poorly performing model appear highly accurate.

When should I use Brier score over PR-AUC?

Use Brier score when the exact probability value determines business action (such as discounting tiered by risk), whereas PR-AUC is preferred when only relative ranking matters.

How do SHAP TreeExplainer values differ from standard feature importances?

Standard feature importance measures total split improvement without showing direction; SHAP values assign additive, signed contributions indicating whether a feature increased or decreased churn risk.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.