Why should the response variable be binary in nature when using the logistic regression algorithm?

Quick Overview

Asks why classic logistic regression requires a binary response variable. It tests understanding of the logit link, the Bernoulli likelihood, how coefficients are read as log-odds, and which extensions handle multi-class or ordered targets.

Why should the response variable be binary in nature when using the logistic regression algorithm?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why should the response variable be binary in nature when using the logistic regression algorithm? ```hint Look at what the model outputs Write down the quantity the linear predictor is set equal to, and ask how many outcome probabilities that one quantity can pin down. ``` ### What a Strong Answer Covers - The quantity the model's linear predictor is set equal to and how it maps back to a probability - How many outcome probabilities that single model output determines - The Bernoulli likelihood the model is fit with - How the coefficients are interpreted and what that reading requires of the response - What to use when the response has more than two categories or the categories are ordered ### Follow-up Questions - How does multinomial (softmax) regression generalize the binary model, and how many coefficient vectors does it need for K classes? - When would you choose one-vs-rest over a multinomial model? - Can logistic regression be fit to a response recorded as successes out of n trials? - If the outcome has three ordered levels (low, medium, high), which model would you use and why?

Overview: Asks why classic logistic regression requires a binary response variable. It tests understanding of the logit link, the Bernoulli likelihood, how coefficients are read as log-odds, and which extensions handle multi-class or ordered targets.

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

Why should the response variable be binary in nature when using the logistic regression algorithm?

What a Strong Answer Covers Guidance

  • The quantity the model's linear predictor is set equal to and how it maps back to a probability
  • How many outcome probabilities that single model output determines
  • The Bernoulli likelihood the model is fit with
  • How the coefficients are interpreted and what that reading requires of the response
  • What to use when the response has more than two categories or the categories are ordered

Follow-up Questions Guidance

  • How does multinomial (softmax) regression generalize the binary model, and how many coefficient vectors does it need for K classes?
  • When would you choose one-vs-rest over a multinomial model?
  • Can logistic regression be fit to a response recorded as successes out of n trials?
  • If the outcome has three ordered levels (low, medium, high), which model would you use and why?