Write a distribution in exponential-dispersion form . How do you show that the Bernoulli and Poisson distributions fit this form, what is the canonical link in each case, and why does a canonical link make the log-likelihood gradient equal to ?
Supervised learning, Generalised linear models
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can put Bernoulli and Poisson in exponential-family form and see that logistic and Poisson regression are the same construction.
Key idea
In this form, and (unit dispersion). The canonical link sets directly, that is , so the score is .
Steps
- A GLM has three parts: a distribution from the exponential family, a linear predictor , and a link with ( is the mean of ).
- Bernoulli with mean : . So (the logit) and , whose derivative is .
- Poisson with mean : . So , , and .
- The canonical link is the one with : the logit for Bernoulli (logistic regression) and for Poisson (log-linear count regression). For Gaussian with unit variance it is the identity (ordinary least squares).
- Gradient: with , the log-likelihood is , so .
- The Hessian is . Since , the log-likelihood is concave, and the Newton method is IRLS.
Common mistakes
- Confusing the link with the mean function. The link maps the mean to the linear predictor, and the mean function is its inverse.
- Assuming Poisson needs a different fitting method. It is the same IRLS with weights .
- Saying the canonical link is chosen because it is the only valid one. It is chosen for convenience (concavity and the clean gradient).
How long your answer should be
One page; 6–8 minutes.
Last checked on 4 December 2026.
Read this
- Stanford CS229 lecture notes: Chapter 3 (generalised linear models, p. 30): the exponential family, then logistic and least-squares regression as special cases.
Previous in Supervised learning: Assume with , and of full column rank . How do you prove that , so that is unbiased?
Next in Supervised learning: For -class softmax regression with , derive the gradient of the negative log-likelihood with respect to . How do you show that the parameters are redundant (not identifiable), and how is this fixed?