What are deviance and null deviance in a logistic regression, and how are they used?

Quick Overview

Asks what deviance and null deviance mean in a logistic regression and how analysts use them. Tests understanding of log-likelihood, the saturated model, likelihood-ratio tests between nested models and fit measures such as AIC and pseudo-R-squared.

What are deviance and null deviance in a logistic regression, and how are they used?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What are deviance and null deviance in a logistic regression, and how are they used? ```hint Three reference models Think about a model with only an intercept, your fitted model, and a model that fits every observation perfectly. Each deviance compares two of them on the log-likelihood scale. ``` ```hint Where the number shows up Consider which tests and model-selection criteria are built from differences or rescalings of these quantities. ``` ### What a Strong Answer Covers - A precise definition of deviance in terms of log-likelihoods and the saturated model - What null deviance is and how it relates to residual deviance - The likelihood-ratio test built from them, including its degrees of freedom and the nested-model requirement - Other uses such as AIC and pseudo-R-squared, and the limits of reading deviance on its own ### Follow-up Questions - Why is residual deviance divided by its degrees of freedom not a useful goodness-of-fit check for individual 0/1 outcomes? - How would you compare two logistic models that are not nested? - What happens to the deviance and the coefficients under complete separation? - How are deviance residuals used in diagnostics?

Overview: Asks what deviance and null deviance mean in a logistic regression and how analysts use them. Tests understanding of log-likelihood, the saturated model, likelihood-ratio tests between nested models and fit measures such as AIC and pseudo-R-squared.

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

What are deviance and null deviance in a logistic regression, and how are they used?

What a Strong Answer Covers Guidance

  • A precise definition of deviance in terms of log-likelihoods and the saturated model
  • What null deviance is and how it relates to residual deviance
  • The likelihood-ratio test built from them, including its degrees of freedom and the nested-model requirement
  • Other uses such as AIC and pseudo-R-squared, and the limits of reading deviance on its own

Follow-up Questions Guidance

  • Why is residual deviance divided by its degrees of freedom not a useful goodness-of-fit check for individual 0/1 outcomes?
  • How would you compare two logistic models that are not nested?
  • What happens to the deviance and the coefficients under complete separation?
  • How are deviance residuals used in diagnostics?