Actuarial Notes

Link Function

Study guides: Exam SRM, Exam MAS-I, Exam PCPA, Exam ACIA-CAPSTONE, Exam F1PC

A Link Function is the function g in a Generalized Linear Model that relates the mean of the response, \mu_i = E[Y_i], to the linear predictor \eta_i. The link function of observation i is

g(\mu_i) = \eta_i = \beta_0 + \beta_1 x_{i1} + \cdots + \beta_p x_{ip}

  • g is monotonic and differentiable.

Because g is monotonic, it has an inverse, and the mean is the inverse link applied to the linear predictor:

\mu_i = g^{-1}(\eta_i)

The link function is applied to the mean of the response, not to the response itself.

A GLM with the square-root link, g(\mu) = \sqrt, has fitted linear predictor \hat = 0.2 + 0.05x. What is the fitted mean at x = 6?

  • The linear predictor is \hat{\eta} = 0.2 + 0.05 \times 6 = 0.5.
  • The inverse of the square-root link is g^{-1}(\eta) = \eta^2.
  • The fitted mean is 0.5^2 = 0.25.

Common link functions

The common link functions and their inverses are:

Link g(\mu) \mu = g^{-1}(\eta)
Identity \mu \eta
Log \ln \mu e^{\eta}
Logit \ln\frac{\mu}{1 - \mu} \frac{e^{\eta}}{1 + e^{\eta}}
Probit \Phi^{-1}(\mu) \Phi(\eta)
Inverse 1/\mu 1/\eta
Square root \sqrt{\mu} \eta^2
  • \Phi is the cumulative distribution function of the standard normal distribution.

The logit and probit links are used for a probability \pi, because their inverses always lie between 0 and 1. The logit of a probability is the logarithm of its odds, \pi/(1 - \pi).

A binary-response GLM has fitted linear predictor \hat = -1.2 + 0.4x. What is the fitted probability at x = 2 under a probit link, and under a logit link?

  • The linear predictor is \hat{\eta} = -1.2 + 0.4 \times 2 = -0.4.
  • Under the probit link, the probability is \Phi(-0.4) = 0.3446.
  • Under the logit link, the probability is \frac{e^{-0.4}}{1 + e^{-0.4}} = 0.4013.

The log link

Under the log link the mean is the exponential of the linear predictor, which is a product of factors:

\mu_i = e^{\beta_0} \times e^{\beta_1 x_{i1}} \times \cdots \times e^{\beta_p x_{ip}}

Each predictor multiplies the mean, so a coefficient \beta_j gives the factor e^{\beta_j} for a unit increase in x_j. The fitted means are always positive. The identity link, by contrast, makes the effects additive and can give negative fitted means. The ratio of the means of two risks A and B is

\frac{\mu_A}{\mu_B} = e^{\eta_A - \eta_B}

The terms that the two risks share cancel in the difference.

A log-link frequency GLM has an intercept of -2.0, a coefficient of 0.30 for the urban territory (the rural territory is the base level) and 0.40 for drivers under 25. What are the expected frequencies of an urban and a rural driver who are both under 25, and what is the ratio between them?

  • The urban driver's linear predictor is -2.0 + 0.30 + 0.40 = -1.30, so the expected frequency is e^{-1.30} = 0.2725.
  • The rural driver's linear predictor is -2.0 + 0.40 = -1.60, so the expected frequency is e^{-1.60} = 0.2019.
  • The intercept and the age coefficient cancel in the difference, so the ratio is e^{0.30} = 1.350.

The canonical link

The canonical link of a distribution in the exponential family is the link that sets the linear predictor equal to the distribution's canonical parameter, g(\mu) = \theta. The canonical links are the identity for the normal, the log for the Poisson, the logit for the binomial, the inverse 1/\mu for the gamma and \mu^{1-p} for the Tweedie with 1 < p < 2. The log link is therefore not canonical for the gamma or the Tweedie.

When the link is canonical and the model has an intercept, the maximum likelihood fitted values add up to the observed values:

\sum_{i=1}^{n} \hat{\mu}_i = \sum_{i=1}^{n} y_i

The fitted totals then also equal the observed totals within each level of a categorical predictor in the model.

In a Poisson GLM with a log link and an exposure offset, a single categorical predictor makes each level's fitted claims equal its observed claims on the same exposure. So each level's fitted frequency equals its observed frequency, claims divided by exposure, and the relativities are the ratios of the levels' observed frequencies. A non-canonical link, such as the log link for a gamma, carries no such guarantee.

An actuary models a non-negative response and wants the fitted values to reproduce the observed total. Which distribution and link should be used?

  • The fitted values reproduce the observed total when the link is canonical and the model has an intercept.
  • The Poisson distribution with its canonical log link meets this, and the log link keeps the fitted means non-negative.
  • The gamma and the Tweedie with a log link are not canonical, and the normal with the identity link can give negative fitted means.
  • The Poisson distribution with a log link should be used.

Practice questions

Actuarial Notes