Is logistic regression a linear model? Why?
Classic MLLevel: FoundationClassification
Is logistic regression a linear model? Why?
Hints
- Separate the linear score from the function mapping it to a probability.
- Connect the target distribution to its negative log-likelihood.
Answer
Yes, Logistic Regression is considered a generalized linear model because the outcome always depends on the sum of the inputs and parameters. Or in other words, the output cannot depend on the product (or quotient, etc.) of its parameters.
Source and licence: Alexey Grigorev & contributors — Data Science Interviews · CC-BY-4.0