Exponential Family
Study guides: Exam SRM, Exam MAS-I, Exam ACIA-CAPSTONE, Exam F1PC
The Exponential Family is the class of distributions whose probability function or density can be written in the form below. The response of a Generalized Linear Model has a distribution in this family. A distribution with canonical parameter \theta and dispersion parameter \phi is in the exponential family if its probability function or density is
f(y; \theta, \phi) = \exp\left(\frac{y\theta - b(\theta)}{a(\phi)} + c(y, \phi)\right)
b(\theta)is the cumulant function.a(\phi)is a function of the dispersion parameter, usuallya(\phi) = \phi.c(y, \phi)is a function that does not involve\theta.
The family is also called the exponential dispersion family, or the linear exponential family.
Is the Poisson distribution with mean
\muin the exponential family, and what are\theta,b(\theta)anda(\phi)?
- The Poisson probability function is
f(y) = \frac{e^{-\mu}\mu^{y}}{y!}.- Taking the exponential of its logarithm gives
f(y) = \exp(y \ln \mu - \mu - \ln y!).- This has the exponential family form with
\theta = \ln \mu,b(\theta) = e^{\theta},a(\phi) = 1andc(y, \phi) = -\ln y!.- The Poisson distribution is in the exponential family, with dispersion parameter
\phi = 1.
Mean and variance
The first derivative of the cumulant function gives the mean:
\mu = E[Y] = b'(\theta)
and its second derivative gives the variance:
\text{Var}(Y) = a(\phi)\, b''(\theta)
The canonical parameter is the inverse of b' applied to the mean, \theta = (b')^{-1}(\mu). Writing b''(\theta) as a function of the mean gives the variance function V(\mu), so that with a(\phi) = \phi the variance is
\text{Var}(Y) = \phi\, V(\mu)
The variance function says how the variance changes with the mean, and the dispersion parameter sets its overall size.
What are the mean and the variance function of the Poisson distribution, from its cumulant function
b(\theta) = e^?
- The mean is
b'(\theta) = e^{\theta}, and\theta = \ln \mu, sob'(\theta) = \mu.- The second derivative is
b''(\theta) = e^{\theta} = \mu, soV(\mu) = \mu.- With
\phi = 1, the variance is\text{Var}(Y) = \mu, equal to the mean.
Members of the family
The common members, with their variance functions and canonical links, are:
| Distribution | V(\mu) |
\phi |
Canonical link |
|---|---|---|---|
| Normal | 1 |
\sigma^2 |
\mu (identity) |
| Poisson | \mu |
1 |
\ln \mu (log) |
| Binomial proportion | \mu(1 - \mu) |
1 |
\ln\frac{\mu}{1 - \mu} (logit) |
| Gamma | \mu^2 |
1/\alpha |
1/\mu (inverse) |
| Inverse Gaussian | \mu^3 |
estimated | 1/\mu^2 |
Tweedie, 1 < p < 2 |
\mu^p |
estimated | \mu^{1-p} |
The canonical link is the link function that sets the linear predictor equal to the canonical parameter, g(\mu) = \theta. A constant multiple does not change a link, so the gamma's canonical parameter \theta = -1/\mu gives the inverse link 1/\mu. The Tweedie distribution with 1 < p < 2 is a compound Poisson-gamma distribution.
Plotting the variance of a severity data set's groups against their means shows the variance growing with the square of the mean. Which member of the family should model severity?
- A variance proportional to
\mu^2is the variance functionV(\mu) = \mu^2.- That is the variance function of the gamma distribution.
- A gamma GLM, usually with a log link, should model severity.
- A variance proportional to
\muwould have pointed to the Poisson distribution, which is for counts rather than amounts.