Historical Context & Motivation
Statistical modeling in the early twentieth century was largely confined to the normal (Gaussian) distribution: ordinary least squares regression assumed that the response variable was continuous and that errors were normally distributed with constant variance. While this framework proved remarkably powerful for many applications, it offered no principled way to handle count data, binary outcomes, or strictly positive continuous responses. Researchers in diverse fields—epidemiology, ecology, actuarial science—needed models for proportions, rates, and durations, yet the tools available forced them into awkward ad hoc transformations or separate theories for each distribution. The quest for a unified regression framework capable of accommodating multiple data types motivated the development of the exponential family formalism and its associated link functions.
The central question these developments addressed can be stated concisely: given a response variable whose distribution is not Gaussian—perhaps Bernoulli, Poisson, gamma, or binomial—how can we build a systematic regression model that respects the distributional constraints while still permitting efficient parameter estimation? The answer lies in recognizing that all of these distributions belong to a single algebraic family and that a carefully chosen link function bridges the distribution's natural parameter space with the unconstrained real line on which linear predictors operate.
Core Principles & Definitions
The theoretical architecture of generalized linear models rests on a small number of interlocking ideas. A probability distribution belongs to the exponential family if its density (or mass) function can be written in a particular canonical form. Once that structure is recognized, the GLM framework specifies three components: a random component (the exponential-family distribution), a systematic component (the linear predictor η = Xβ), and a link function that maps the mean of the response to the linear predictor. Understanding these pieces and how they connect is the core of the subject.
Exponential-Family Form
Mean–Variance Relationship
Link Function g(·)
Canonical Link & Sufficiency
Iteratively Reweighted Least Squares
Visual Explanation — The GLM Architecture
The diagram above makes a critical structural point: in a GLM, the modeler's choice reduces to selecting which distribution the data follow (the left box) and which link function connects the mean to the predictor (the center box). The linear predictor on the right remains structurally identical across all GLMs—it is always a linear combination of covariates. This separation of concerns is what makes the framework so powerful. When we use the canonical link, the connection between the natural parameter θ and the linear predictor η becomes an identity, which yields especially clean score equations and guarantees the existence and uniqueness of the maximum likelihood estimator under mild regularity conditions.
Mathematical Framework
We now develop the exponential-family representation rigorously and derive the key relationships that underpin GLM estimation. All results assume a single-parameter exponential family with a possible dispersion parameter φ, which is the standard setting for GLMs.
To see why these identities hold, consider the log-likelihood for a single observation: ℓ(θ) = log a(y, φ) + [yθ − b(θ)] / φ. Taking the first derivative with respect to θ and setting it to zero at the true parameter gives E[∂ℓ/∂θ] = 0, which implies E[Y] = b′(θ). The second derivative identity Var(∂ℓ/∂θ) = −E[∂²ℓ/∂θ²] then yields Var(Y) = φ · b″(θ). Because b″(θ) > 0 for a well-defined exponential family, the log-likelihood is strictly concave in θ, guaranteeing a unique MLE.
Exponential-Family Members in Detail
Each common GLM response distribution can be cast into the exponential-family form by identifying θ, b(θ), φ, and a(y, φ). The following diagram provides a visual taxonomy, and the subsequent table offers a comprehensive reference. Recognizing these mappings is an essential skill: when faced with a new distribution, systematically extracting the canonical parameter and cumulant function tells you the mean, variance, canonical link, and deviance in a single stroke.
| Distribution | θ (canonical) | b(θ) | V(μ) | Canonical Link | φ |
|---|---|---|---|---|---|
| Normal | μ | θ²/2 | 1 | Identity: g(μ) = μ | σ² |
| Bernoulli | log(μ/(1−μ)) | log(1+eᶿ) | μ(1−μ) | Logit: g(μ) = log(μ/(1−μ)) | 1 |
| Poisson | log(μ) | eᶿ | μ | Log: g(μ) = log(μ) | 1 |
| Gamma | −1/μ | −log(−θ) | μ² | Reciprocal: g(μ) = 1/μ | 1/α |
| Inv. Gaussian | −1/(2μ²) | −√(−2θ) | μ³ | Inverse squared: g(μ) = 1/μ² | λ⁻¹ |
An important pattern emerges from this table: the variance function V(μ) ascends in complexity as we move from Normal (V = 1, constant variance) through Poisson (V = μ) and Gamma (V = μ²) to Inverse Gaussian (V = μ³). This sequence corresponds to the Tweedie family V(μ) = μp, where p = 0 for Normal, p = 1 for Poisson, p = 2 for Gamma, and p = 3 for Inverse Gaussian. Intermediate values of p (1 < p < 2) yield compound Poisson–Gamma distributions, useful for modeling insurance claims and other data with a point mass at zero plus a continuous positive component.
Worked Example — Poisson GLM for Count Data
Suppose we are modeling the number of insurance claims Y filed per policyholder per year, with a single covariate x representing the policyholder's age (centered at 40). We assume Y ~ Poisson(μ) and use the canonical log link. We have estimated β₀ = −1.2 and β₁ = 0.03 from a dataset of n = 500 policyholders. Let us trace through the GLM structure and compute the predicted mean and variance for a 55-year-old policyholder.
Canonical vs. Non-Canonical Links — Strengths & Limitations
While the canonical link offers compelling theoretical advantages, practical modeling often benefits from alternative link functions. For instance, logistic regression uses the canonical logit link, but the probit link (based on the normal CDF) and the complementary log-log link are common alternatives for binary data, each carrying different assumptions about the latent process. Similarly, for positive continuous data, the gamma distribution is often paired with a log link rather than its canonical reciprocal link because the log link guarantees positive fitted values and has a more natural multiplicative interpretation. The choice of link function reflects both the modeler's beliefs about the relationship between covariates and the response and the practical requirements of the application.
| Property | Canonical Link | Non-Canonical Link |
|---|---|---|
| Score equations | X⊤(Y − μ̂) = 0; clean, closed-form sufficient statistic X⊤Y | Involve extra weight factor (dμ/dη); no simple sufficient statistic for β |
| Log-likelihood concavity | Globally concave in β; unique MLE guaranteed | Generally concave in practice but not guaranteed; multiple modes possible in theory |
| Information matrix | Observed = Expected information; simplifies inference | Observed ≠ Expected; both should be examined for robust inference |
| Interpretability | Natural for the distribution (e.g., logit = log-odds) but reciprocal link for gamma is less intuitive | May be more interpretable (e.g., log link for gamma gives multiplicative effects) |
| Boundary constraints | Canonical link always maps to the natural parameter space, so μ respects distributional support | Modeler must verify that g⁻¹(η) stays within the support of μ for all η |
| Convergence (IRLS) | Typically fast and reliable due to concavity | May require more iterations or step-halving; occasional non-convergence |
Connection to Advanced Theory
The exponential-family GLM framework is not an endpoint but a launching pad for more flexible models. Many advanced methods can be understood as extensions that relax one or more of the GLM assumptions while preserving the core exponential-family structure. Understanding the baseline framework makes these extensions both intelligible and natural.
| Standard GLM Feature | Extension | What Changes |
|---|---|---|
| Fixed linear predictor η = x⊤β | GAMs (Generalized Additive Models) | Replace x⊤β with Σ sⱼ(xⱼ); smooth nonparametric functions via penalized splines |
| Independence of observations | GLMMs (Generalized Linear Mixed Models) | Add random effects b ~ N(0, D) to η; handle clustering and repeated measures |
| Single exponential-family distribution | Quasi-likelihood | Specify only mean and variance functions; no full distributional assumption needed |
| Fully specified parametric model | GEE (Generalized Estimating Equations) | Marginal model with working correlation structure; robust sandwich standard errors |
| Unpenalized MLE for β | Regularized GLMs (Lasso, Ridge, Elastic Net) | Add penalty λ||β|| to negative log-likelihood; variable selection and shrinkage |
| Frequentist point estimation | Bayesian GLMs | Place priors on β and φ; posterior inference via MCMC or variational methods; exponential-family conjugacy aids computation |
A particularly elegant connection arises in Bayesian inference: exponential-family likelihoods admit conjugate priors, meaning that the posterior distribution has the same functional form as the prior. For example, a Poisson likelihood paired with a Gamma prior on μ yields a Gamma posterior. This conjugacy—a direct consequence of the exponential-family structure—makes Bayesian updating analytically tractable in simple settings and accelerates MCMC convergence in complex hierarchical models. The exponential family is thus not merely a classification scheme but the algebraic backbone of modern statistical computation.
Practice Problems
Summary — Exponential Family & Link Functions
The exponential family provides a unifying algebraic framework for distributions commonly encountered in statistical modeling, including the Normal, Bernoulli, Poisson, and Gamma. Every member can be written in the form f(y | θ, φ) = a(y, φ) · exp{[yθ − b(θ)] / φ}, from which the mean (μ = b′(θ)) and variance (Var = φ · b″(θ)) are obtained by differentiation of the cumulant function b(θ). This mean–variance relationship, captured by the variance function V(μ), is what distinguishes each distribution and drives the weighting in estimation.
A generalized linear model (GLM) pairs an exponential-family distribution with a link function g(μ) = η that maps the mean onto the linear predictor η = x⊤β. The canonical link (where g(μ) = θ) yields particularly elegant score equations X⊤(Y − μ̂) = 0, ensures global concavity of the log-likelihood, and produces X⊤Y as a sufficient statistic. Non-canonical links sacrifice these properties but may offer better interpretability or respect boundary constraints more naturally. Parameters are estimated via iteratively reweighted least squares (IRLS), a Fisher scoring algorithm that unifies estimation across all GLMs. This framework extends naturally to GAMs, GLMMs, GEEs, regularized models, and Bayesian formulations, making it the central organizing principle of modern regression analysis.