What is a Generalized Linear Model and when is it the right tool?
mediumAnswer
- A GLM has three ingredients: (1) a linear predictor ; (2) a link function relating to , so ; (3) a distribution from the exponential family for (Gaussian → linear regression, Bernoulli → logistic, Poisson → Poisson regression, Gamma → Gamma regression).
- Use a GLM when your target has a known non-Gaussian distribution but the mean-predictor relationship is approximately linear on the right scale.
Check yourself — multiple choice
- GLM only means Generalized Linear Model = regularized regression
- It combines a linear predictor, a link function, and an exponential-family distribution
- GLM is always logistic regression
- GLM requires normally distributed y
Linear predictor + link + exponential-family distribution ⇒ Gaussian, logistic, Poisson, etc.
#linear-regression#linear-models#theory
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- Why does OLS have a closed-form solution but logistic regression doesn't?
- What's the Bayesian interpretation of Ridge regression?
- Why not just fit a linear regression for a binary label (linear probability model)?
- What is 'deviance' and why is it used to evaluate GLMs?
- L1 vs L2 regularization — what's the difference?
- Why is logistic regression called a linear model if it uses a sigmoid?