Exponential Family
& Link Functions
Master the unifying framework behind GLMs: how the exponential family of distributions connects to link functions for powerful statistical modeling.
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
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:
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\).
\(g(\mu) = \mu\)
\(g(\mu) = \log\frac{\mu}{1-\mu}\)
\(g(\mu) = \log \mu\)
\(g(\mu) = -1/\mu\)
The GLM Architecture
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
How to Specify a GLM
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.
Coefficients are log-odds ratios. Standard choice for binary outcomes.
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
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?