Generalized linear models extend ordinary regression by letting the response follow any distribution from one specific family and connecting its mean to predictors through a chosen link. Pick the distribution from the response type, then pick the link to keep predictions in the right range.
A response belongs to the exponential dispersion family when its density or mass function factors into a specific shape. The general form has four pieces: data , a natural parameter , a dispersion , and helper functions , , and .
Two derivatives of carry all the structure you need:
The piece written as a function of is called the variance function . It tells you how the variance scales with the mean, which is the fingerprint of each family.
KEY: Two derivatives of give you the mean and variance. Memorize and .
Common mistakes
- Logging the response instead of using a log link. Fitting OLS on targets , not . The log link in a Poisson or gamma GLM targets directly. The two give different coefficients, and only the GLM handles cleanly.
- Pairing Poisson with a binary response. Variance is , not . Fitted means can exceed 1. Use binomial, not Poisson.
- Forgetting the exposure offset. Modeling raw claim counts without treats a 1-month policy the same as a 12-month policy. Always offset by log-exposure for frequency models.
Bottom line
- A distribution is in the exponential family if . Members: normal, binomial, Poisson, gamma, inverse Gaussian, and negative binomial (fixed dispersion).
- is the canonical (natural) parameter; the dispersion; ; .
- The link connects linear predictor to mean: . The canonical link sets , so the linear predictor equals the natural parameter.
- Canonical links by family: Normal = identity; Binomial = logit; Poisson = log; Gamma = inverse (reciprocal); Inverse Gaussian = inverse squared.
Exam shortcut
Match the response support to the family in one pass: real line → normal; or proportion → binomial; non-negative integers → Poisson (or negative binomial if overdispersed); strictly positive continuous → gamma or inverse Gaussian. Then pick the canonical link from the six-row table unless the prompt specifies otherwise.
The full lesson (about 2,783 words, 19 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- 2b
Browse all free Exam SRM lessons or jump into free Exam SRM practice questions.