How does logistic regression fit the GLM framework: random component, link function, linear predictor?

Quick Overview

Asks how logistic regression fits the generalized linear model framework through its random component, link function and linear predictor. Tests understanding of exponential family responses, link functions, coefficient interpretation and maximum likelihood fitting.

How does logistic regression fit the GLM framework: random component, link function, linear predictor?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does logistic regression fit into the generalized linear model framework in terms of the random component, link function, and linear predictor? ```hint Start from the response Name the distribution of a 0/1 outcome and the quantity about it that the model predicts. ``` ```hint What the link has to do A linear combination of features can take any real value. Ask what transformation of the mean makes that compatible with a probability. ``` ### What a Strong Answer Covers - The random component: the distribution of the response, its mean, and its place in the exponential family - The linear predictor and why it is unbounded - The logit link and its inverse, and how they connect the mean to the linear predictor - Where the log-odds interpretation of the coefficients comes from, and what being the canonical link adds - How the model is fit, and how that differs from ordinary least squares ### Follow-up Questions - What changes if you replace the logit with a probit or complementary log-log link? - Why do the score equations for logistic regression reduce to $X^\top(y - \mu) = 0$, and what does that imply about the fitted probabilities? - How does IRLS work for logistic regression, and why does it fail under perfect separation? - How would you model k successes out of n trials, or overdispersed grouped data, in the same framework?

Overview: Asks how logistic regression fits the generalized linear model framework through its random component, link function and linear predictor. Tests understanding of exponential family responses, link functions, coefficient interpretation and maximum likelihood fitting.

Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

How does logistic regression fit into the generalized linear model framework in terms of the random component, link function, and linear predictor?

What a Strong Answer Covers Guidance

  • The random component: the distribution of the response, its mean, and its place in the exponential family
  • The linear predictor and why it is unbounded
  • The logit link and its inverse, and how they connect the mean to the linear predictor
  • Where the log-odds interpretation of the coefficients comes from, and what being the canonical link adds
  • How the model is fit, and how that differs from ordinary least squares

Follow-up Questions Guidance

  • What changes if you replace the logit with a probit or complementary log-log link?
  • Why do the score equations for logistic regression reduce to X⊤(y−μ)=0X^\top(y - \mu) = 0 , and what does that imply about the fitted probabilities?
  • How does IRLS work for logistic regression, and why does it fail under perfect separation?
  • How would you model k successes out of n trials, or overdispersed grouped data, in the same framework?