Back to Classic ML Mind Map
中文·English
📊 Classic MLID: probability-calibration

Probability Calibration

概率校准
🎯Core Definition
Probability calibration turns model scores into true interpretable probabilities. Platt scaling fits a logistic regression on the raw score: P(y=1x)=11+exp(Af(x)+B)P(y=1|x) = \frac{1}{1+\exp(Af(x)+B)}, with parameters AA and BB estimated by maximum likelihood on a separate validation set — suitable for models whose scores are monotonically but sigmoidally distorted (SVM, GBDT). Isotonic regression fits a non-parametric monotone mapping on the validation set; it is more flexible but needs more data and overfits more easily. Evaluation tools: the Brier score BS=1Ni=1N(piyi)2BS = \frac{1}{N}\sum_{i=1}^{N}(p_i - y_i)^2 (lower is better) and reliability diagrams (bucket predictions by probability and compare average prediction with actual frequency).
💡Use Cases
decisions that depend on the probability value itself (credit thresholds, risk scorecards, medical diagnosis), merging probabilities from multiple models, cost-sensitive decisions; interviews ask about “calibration vs AUC”, “Platt vs Isotonic”, and “why logistic regression is naturally calibrated”.
Key Problems Solved
AUC only measures ranking ability, not the numerical correctness of probabilities — a model can say 0.9 while only 60% of such cases are positive; Platt/Isotonic map scores to decision-ready probabilities. Key property: calibration is a monotonic (rank-preserving) transform, so it does not change AUC — good calibration and good discrimination are orthogonal and must be evaluated separately.
🎯5 High-Frequency Exam Points
1
Write Platt's formula P(y=1x)=11+exp(Af(x)+B)P(y=1|x) = \frac{1}{1+\exp(Af(x)+B)} and explain how A and B are fit. Is it the same thing as logistic regression?
2
Compare Platt vs Isotonic: assumptions, data requirements, overfitting risk, and which models each suits?
3
Write the Brier score BS=1N(piyi)2BS = \frac{1}{N}\sum (p_i - y_i)^2; give examples of “good discrimination, bad calibration” and the reverse?
4
Why does calibration leave AUC unchanged? How does a rank-preserving monotone transform preserve AUC?
5
How to read a reliability diagram? Why is logistic regression naturally calibrated while SVM/GBDT need calibration?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Probability Calibration"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardMRR & GAUCNext CardK-Fold Cross-Validation

🔗 More Classic ML Knowledge Cards

AdaBoost DerivationBagging & Random ForestBaum-Welch (HMM EM)GBDT Negative Gradient