What is the mathematical formulation of logistic regression: linear predictor, sigmoid and logit form?

Quick Overview

Asks for the mathematical formulation of logistic regression: the linear predictor, the logistic transformation that turns it into a probability, and the equivalent logit form. Tests whether a candidate can connect the three pieces, explain how the model is fit, and interpret its coefficients.

What is the mathematical formulation of logistic regression: linear predictor, sigmoid and logit form?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the mathematical formulation of logistic regression, including the linear predictor, the logistic transformation, and the logit form? Show how the three pieces connect. ```hint Start from the odds Write the odds of the positive class as $p/(1-p)$. Which simple function of the odds can take any real value, so that it could be set equal to a linear score? ``` ### What a Strong Answer Covers - The linear predictor and the range of values it can take - The transformation from the linear predictor to a probability, and the range of its output - The logit form and how it follows algebraically from the transformation - How the parameters are estimated, including the loss being minimized - How a single coefficient is interpreted ### Follow-up Questions - Derive the gradient of the log loss with respect to the weights. - Why is squared error a poor training loss for logistic regression? - What happens to the maximum likelihood estimate when the two classes are perfectly separable? - How does the model extend to more than two classes?

Overview: Asks for the mathematical formulation of logistic regression: the linear predictor, the logistic transformation that turns it into a probability, and the equivalent logit form. Tests whether a candidate can connect the three pieces, explain how the model is fit, and interpret its coefficients.

PracHub logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

What is the mathematical formulation of logistic regression, including the linear predictor, the logistic transformation, and the logit form? Show how the three pieces connect.

What a Strong Answer Covers Guidance

  • The linear predictor and the range of values it can take
  • The transformation from the linear predictor to a probability, and the range of its output
  • The logit form and how it follows algebraically from the transformation
  • How the parameters are estimated, including the loss being minimized
  • How a single coefficient is interpreted

Follow-up Questions Guidance

  • Derive the gradient of the log loss with respect to the weights.
  • Why is squared error a poor training loss for logistic regression?
  • What happens to the maximum likelihood estimate when the two classes are perfectly separable?
  • How does the model extend to more than two classes?