01 / 22

Exponential Family
& Link Functions

Master the unifying framework behind GLMs: how the exponential family of distributions connects to link functions for powerful statistical modeling.

Graduate Statistics

What is the Exponential Family?

The exponential family is a broad class of probability distributions that share a common mathematical form. Nearly every distribution you encounter in practice: Normal, Binomial, Poisson, Gamma, and more: belongs to this family.

The Key Components

\(\theta\) : Natural Parameter
The canonical parameter that indexes the distribution. It captures the essential information about the distribution's location.
\(b(\theta)\) : Cumulant Function
Determines the mean and variance: \(b'(\theta) = \mu\) and \(b''(\theta) = V(\mu)\), the variance function.
\(a(\phi)\) : Dispersion
Scales the variance. Often \(a(\phi) = \phi / w\) where \(w\) is a known weight. For Poisson and Binomial, \(\phi = 1\).

Why Does This Matter?

The exponential family form is not just an abstraction. It provides the theoretical foundation for Generalized Linear Models (GLMs), giving us:

1
Unified estimation: Maximum likelihood estimation has the same structure for all exponential family members.
2
Mean-variance relationship: The variance is a function of the mean, determined entirely by \(b(\theta)\).
3
Sufficient statistics: \(\sum y_i\) is always sufficient for \(\theta\), simplifying inference.
4
Natural connection to link functions: The natural parameter \(\theta\) suggests a canonical link for regression.

Common Distributions in Exponential Form

Distribution \(\theta\) \(b(\theta)\) \(\mu = b'(\theta)\)
Normal \(\mu\) \(\theta^2/2\) \(\theta\)
Bernoulli \(\log\!\frac{p}{1-p}\) \(\log(1+e^\theta)\) \(\frac{e^\theta}{1+e^\theta}\)
Poisson \(\log \mu\) \(e^\theta\) \(e^\theta\)
Gamma \(-1/\mu\) \(-\log(-\theta)\) \(-1/\theta\)

Introducing Link Functions

In a GLM, we model a transformation of the mean response \(\mu\) as a linear function of predictors. The link function \(g\) connects these two worlds:

The link function transforms the mean from its natural domain (e.g., \((0,1)\) for probabilities, \((0,\infty)\) for counts) to the real line \((-\infty, \infty)\), where linear modeling is appropriate.

The Canonical Link Function

When the link function maps \(\mu\) directly to the natural parameter \(\theta\), we call it the canonical link. This means \(g(\mu) = \theta\), or equivalently \(\eta = \theta\).

Normal
Canonical link: Identity
\(g(\mu) = \mu\)
Bernoulli
Canonical link: Logit
\(g(\mu) = \log\frac{\mu}{1-\mu}\)
Poisson
Canonical link: Log
\(g(\mu) = \log \mu\)
Gamma
Canonical link: Neg. Inverse
\(g(\mu) = -1/\mu\)

The GLM Architecture

Random Component
\(Y \sim \text{Exp. Family}\)
Systematic Component
\(\eta = \mathbf{x}^\top \boldsymbol{\beta}\)
Link Function
\(g(\mu) = \eta\)
\(\mu = E(Y) = b'(\theta)\)
Variance
\(\text{Var}(Y) = a(\phi) \cdot b''(\theta)\)
Score Equations
\(\sum w_i(y_i - \mu_i)\mathbf{x}_i = \mathbf{0}\)

Canonical vs Non-Canonical Links

Property Canonical Link Non-Canonical Link
Definition \(g(\mu) = \theta\) \(g(\mu) \neq \theta\)
Log-likelihood Concave (unique MLE) May not be concave
Sufficient statistic \(\mathbf{X}^\top \mathbf{y}\) is sufficient No minimal sufficiency
Score equation Simplifies elegantly More complex IRLS weights
Interpretation May be less natural Often more interpretable

Visualizing Link Functions

\(\mu\) (mean)
\(\eta = g(\mu)\)
1 3 5 -2 -1 0 1 2 Identity Log Neg. Inverse

How to Specify a GLM

1
Identify the response type: Is \(Y\) continuous, binary, count, or positive continuous? This determines the distribution family.
2
Choose the distribution: Write \(Y_i \sim \text{Dist}(\mu_i, \phi)\) and verify it belongs to the exponential family.
3
Select the link function: Start with the canonical link \(g(\mu) = \theta\). Consider non-canonical links if interpretation or domain constraints suggest otherwise.
4
Formulate the linear predictor: Write \(\eta_i = \mathbf{x}_i^\top\boldsymbol{\beta}\) and set \(g(\mu_i) = \eta_i\).
5
Estimate via IRLS: Use iteratively reweighted least squares to find \(\hat{\boldsymbol{\beta}}\). Check deviance and residuals.

Example 1: Normal in Exponential Form

Show that \(Y \sim N(\mu, \sigma^2)\) belongs to the exponential family and identify the canonical link.

Example 2: Poisson Regression

Let \(Y_i \sim \text{Poisson}(\mu_i)\). Write in exponential form and derive the canonical link.

Example 3: Logistic Regression

Derive the logistic regression model from \(Y_i \sim \text{Bernoulli}(p_i)\) and discuss the alternative probit link.

Logit (Canonical)
\(g(p) = \log\frac{p}{1-p}\)
Coefficients are log-odds ratios. Standard choice for binary outcomes.
Probit (Non-Canonical)
\(g(p) = \Phi^{-1}(p)\)
Uses the normal CDF inverse. Yields similar fits but different interpretation of \(\beta\).

The Mean-Variance Relationship

One of the most powerful consequences of the exponential family form: the variance is completely determined by the mean through the variance function \(V(\mu) = b''(\theta)\).

Distribution \(V(\mu)\) \(\text{Var}(Y)\)
Normal \(1\) \(\sigma^2\)
Poisson \(\mu\) \(\mu\)
Bernoulli \(\mu(1-\mu)\) \(p(1-p)\)
Gamma \(\mu^2\) \(\mu^2/\nu\)
(\( \nu \) is shape)
Inverse Gaussian \(\mu^3\) \(\mu^3/\lambda\)
(\( \lambda \) is shape)

Common Mistakes

✕ Confusing Link with Transformation
A link function transforms \(\mu\), not \(Y\). Taking \(\log Y\) and fitting OLS is not the same as Poisson regression with a log link.
✕ Always Using Canonical Links
Canonical links have nice theory but may not suit the data. The log link for Gamma (instead of inverse) is often better in practice.
✕ Ignoring the Variance Function
Choosing Normal for count data ignores that \(V(\mu) = 1\) assumes constant variance, while counts have \(V(\mu) = \mu\).

Complete GLM Reference

Response Family Canonical Link Alternative
Continuous, \(\mathbb{R}\) Normal Identity Log
Binary \(\{0,1\}\) Binomial Logit Probit, Cloglog
Count \(\{0,1,2,\ldots\}\) Poisson Log Identity, Sqrt
Positive continuous Gamma Negative Inverse Log, Identity
Positive, heavy tail Inv. Gaussian \(-1/(2\mu^2)\) Log, Inverse

Question 1 of 5

Which function in the exponential family form \(f(y \mid \theta, \phi) = \exp\!\left(\frac{y\theta - b(\theta)}{a(\phi)} + c(y,\phi)\right)\) determines both the mean and variance of the distribution?

Question 2 of 5

What is the canonical link function for the Poisson distribution?

Question 3 of 5

A researcher models count data using a Poisson GLM with log link and finds \(\hat{\beta}_1 = 0.3\). What is the correct interpretation?

Question 4 of 5

Why might a statistician choose a non-canonical link (e.g., log link for Gamma) over the canonical link (inverse)?

Question 5 of 5

Which statement about the relationship between link functions and data transformations is correct?