Skip to content

Generalized Linear Model


Definition

A generalized linear model (GLM) specifies a conditional response law from an exponential family, a mean μi=E[Yi∣xi]\mu_i=\mathbb{E}[Y_i\mid \boldsymbol{x}_i], and a link gg such that g(μi)=ηi=xi⊤βg(\mu_i)=\eta_i=\boldsymbol{x}_i^{\top}\boldsymbol{\beta}. Here xi\boldsymbol{x}_i is the covariate vector, β\boldsymbol{\beta} the coefficient vector and ηi\eta_i the linear predictor. The variance has form ϕV(μi)\phi V(\mu_i), where VV is the variance function of the chosen family and ϕ>0\phi>0 is a dispersion parameter (ϕ=1\phi=1 for Poisson and Bernoulli responses).


Interpretation

The predictor is linear in coefficients, while the mean can be nonlinear and the conditional variance can depend on it. This allows count or binary responses without imposing an unconstrained linear mean. The family supplies the conditional response likelihood; maximum likelihood estimation fits the coefficients by maximizing its product over independent observations. The conditional expectation defines the mean being predicted, rather than predicting each observed response exactly.

Flow diagram of a GLM: the linear predictor η_i = x_i^T β passes through the inverse link to the mean μ_i, which sets an exponential-family response with variance φV(μ_i).

The diagram separates the three choices in the definition: the linear predictor, the link gg and the response family. Linearity holds only in the first box; the inverse link g−1g^{-1} turns ηi\eta_i into the mean, and the family turns the mean into a distribution whose variance ϕV(μi)\phi V(\mu_i) may depend on it. The grey row follows the Examples case under a log link: ηi=log⁡2\eta_i=\log 2 gives μi=2\mu_i=2, an expected count rather than a guaranteed two claims.


Key Results

  • The inverse link gives μi=g−1(xi⊤β)\mu_i=g^{-1}(\boldsymbol{x}_i^{\top}\boldsymbol{\beta}).
  • Poisson regression uses g(μ)=log⁡μg(\mu)=\log\mu and variance μ\mu.
  • A Gaussian identity-link model has conditional mean xi⊤β\boldsymbol{x}_i^{\top}\boldsymbol{\beta} and constant variance.
  • A quasi-likelihood model, such as the quasi-Poisson model with variance ϕμ\phi\mu, specifies a mean–variance relation without necessarily specifying a complete response distribution.

Examples

If ηi=log⁡2\eta_i=\log 2 under a log link, the fitted conditional mean is 2. It is an expected count, not a guarantee of exactly two claims.


Prerequisites



Sources

Aliases: GLM, generalised linear model Keywords: link function, linear predictor, η_i = x_i^T β, inverse link, variance function, dispersion parameter, log link Symbols: beta, eta, mu, phi

Last updated: 16 October 2026 22:28