Why is a correctly specified logistic regression well calibrated, and how does that relate to Platt scaling?

Quick Overview

Asks why maximum likelihood logistic regression yields calibrated probabilities when the model is correctly specified, and how that property connects to Platt scaling. Tests understanding of the score equations, the limits of calibration under misspecification, regularization or reweighting, and how to calibrate another model's scores.

Why is a correctly specified logistic regression well calibrated, and how does that relate to Platt scaling?

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Why does a correctly specified logistic regression produce well-calibrated probabilities by construction, and how does that relate to Platt scaling? ```hint Start from the gradient Write the gradient of the log-likelihood and set it to zero. Read the equation for the intercept term in plain words. ``` ```hint Separate two claims Ask what those equations guarantee on their own, and what additionally depends on the model's functional form being right. ``` ### What a Strong Answer Covers - The score equations at the maximum likelihood estimate and what they force, including the intercept case. - The difference between calibration on average or within feature groups and calibration at every predicted probability, and the role of correct specification. - What breaks calibration in practice. - How Platt scaling works, what it assumes about the scores, and what data it should be fit on. ### Follow-up Questions - You trained with positives upweighted 10 times. How do you recover calibrated probabilities? - When would you choose isotonic regression over Platt scaling? - How would you check a model's calibration on a test set? - Why can Platt scaling help even a logistic regression, once it is scored on new data?

Overview: Asks why maximum likelihood logistic regression yields calibrated probabilities when the model is correctly specified, and how that property connects to Platt scaling. Tests understanding of the score equations, the limits of calibration under misspecification, regularization or reweighting, and how to calibrate another model's scores.

PracHub logo
General
Nov 25, 2026
hardData ScientistOtherMachine Learning
0
0

Why does a correctly specified logistic regression produce well-calibrated probabilities by construction, and how does that relate to Platt scaling?

What a Strong Answer Covers Guidance

  • The score equations at the maximum likelihood estimate and what they force, including the intercept case.
  • The difference between calibration on average or within feature groups and calibration at every predicted probability, and the role of correct specification.
  • What breaks calibration in practice.
  • How Platt scaling works, what it assumes about the scores, and what data it should be fit on.

Follow-up Questions Guidance

  • You trained with positives upweighted 10 times. How do you recover calibrated probabilities?
  • When would you choose isotonic regression over Platt scaling?
  • How would you check a model's calibration on a test set?
  • Why can Platt scaling help even a logistic regression, once it is scored on new data?