What diagnostic tools are available for logistic regression?

Quick Overview

Asks which diagnostics to run after fitting a logistic regression and what each one reveals. Tests goodness-of-fit tests and their limits, residuals and influence measures, checks for nonlinearity, collinearity and separation, and the difference between discrimination and calibration.

What diagnostic tools are available for logistic regression?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What diagnostic tools are available for logistic regression? Describe the checks you would run after fitting a model and what each one tells you. ```hint Sort by what can go wrong Group the checks by the question each one answers: does the model fit, which observations drive it, do its assumptions hold, and how good are its predicted probabilities? ``` ```hint Residuals of a 0/1 outcome A raw residual plot for a binary outcome shows two bands and is hard to read. Think about what you could aggregate to make it informative. ``` ### What a Strong Answer Covers - Overall goodness-of-fit checks, and their limits when every observation has its own covariate pattern. - Residuals and influence measures for spotting poorly fit and high-impact observations. - Checks of the model's assumptions, including linearity in the log-odds, multicollinearity and separation. - Discrimination and calibration of the predicted probabilities, and why a model needs both. - What you would change in the model in response to each kind of problem. ### Follow-up Questions - A model has a high AUC on a holdout set, but its calibration plot falls well below the diagonal at high predicted probabilities. What happened, and how would you fix it? - A coefficient comes back with an enormous standard error and the fit warns that it did not converge. What do you suspect? - Why is the Hosmer-Lemeshow test often criticized, and what would you use on a dataset with millions of rows? - How do your diagnostics change when the model is used for prediction compared with estimating the effect of one predictor?

Overview: Asks which diagnostics to run after fitting a logistic regression and what each one reveals. Tests goodness-of-fit tests and their limits, residuals and influence measures, checks for nonlinearity, collinearity and separation, and the difference between discrimination and calibration.

General logo
General
Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

What diagnostic tools are available for logistic regression? Describe the checks you would run after fitting a model and what each one tells you.

What a Strong Answer Covers Guidance

  • Overall goodness-of-fit checks, and their limits when every observation has its own covariate pattern.
  • Residuals and influence measures for spotting poorly fit and high-impact observations.
  • Checks of the model's assumptions, including linearity in the log-odds, multicollinearity and separation.
  • Discrimination and calibration of the predicted probabilities, and why a model needs both.
  • What you would change in the model in response to each kind of problem.

Follow-up Questions Guidance

  • A model has a high AUC on a holdout set, but its calibration plot falls well below the diagonal at high predicted probabilities. What happened, and how would you fix it?
  • A coefficient comes back with an enormous standard error and the fit warns that it did not converge. What do you suspect?
  • Why is the Hosmer-Lemeshow test often criticized, and what would you use on a dataset with millions of rows?
  • How do your diagnostics change when the model is used for prediction compared with estimating the effect of one predictor?