In Poisson regression the count has mean (one weight, no intercept). The data are and . What are the log-likelihood, its gradient and Hessian, and the result of two Newton steps from ?
Supervised learning, Generalised linear models
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can derive the score and Hessian of a GLM with the canonical log link and use them in a Newton (IRLS) update.
Key idea
The log-likelihood is , with score and Hessian . The Newton step is .
Steps
- The Poisson probability is . Taking logs with gives . Summing over the data gives as above.
- Differentiate once: , where . This is the usual 'input times residual' form of a canonical-link GLM.
- Differentiate again: . So is concave and Newton steps head for the unique maximum.
- Step 1 from : all . The score is and . So .
- Step 2 from : and . The score is . The curvature term is . So .
- Note that step 1 overshot (the score changed sign), which is typical of a first Newton step when the curve is steep. Step 2 gets to . The exact maximiser solves , which gives , so one or two more steps are needed. Newton's method converges quickly once it is close to the maximum.
Common mistakes
- Writing the Hessian as without (as in least squares). In a Poisson model the curvature grows with the mean.
- Dropping the term incorrectly in the gradient. It does not depend on , so it vanishes on differentiation.
- Using as the mean. The log link means , so is always positive.
How long your answer should be
Half a page; 5 minutes.
Read this
Previous in Supervised learning: A hard-margin linear SVM is trained on with label and on , and with label . Find , , the margin and the dual variables . Which points are support vectors?
Next in Supervised learning: Two classes have one-dimensional Gaussian class-conditional densities with the same variance , means and priors , . What is the Bayes decision boundary (derive it), and what is it for , , , , , and which class is predicted at ?