Poisson Regression
Study guide: Exam MAS-I
A Poisson Regression is a generalized linear model for a count response, in which the response Y_i has a Poisson distribution with mean \mu_i and the link function is the logarithm. It is the usual model for claim frequency. With predictors x_{i1}, \ldots, x_{ip} and coefficients \beta_0, \ldots, \beta_p, the logarithm of the expected count is
\ln \mu_i = \beta_0 + \beta_1 x_{i1} + \cdots + \beta_p x_{ip}
and the expected count is
\mu_i = e^{\beta_0}\, e^{\beta_1 x_{i1}} \cdots e^{\beta_p x_{ip}}
The log link keeps every fitted mean positive and makes the predictors act multiplicatively. A one-unit increase in x_j, with the other predictors held fixed, multiplies the expected count by e^{\beta_j}, the rating relativity of x_j. For a categorical predictor coded with indicators, e^{\beta_j} is the relativity of a level to the base level, and each observation's linear predictor contains only the coefficients of the levels that apply to it.
The Poisson variance function is V(\mu) = \mu, so the variance of a count rises with its mean, and the dispersion parameter is fixed at \phi = 1. A normal response with an identity link would allow negative fitted counts and assume a constant variance.
A Poisson regression for annual claim counts has
\hat\beta_0 = -2.30, a coefficient of0.26for an urban driver and a coefficient of0.41for a young driver. What is the expected annual claim frequency of a young urban driver?
- The linear predictor contains the intercept and both coefficients:
-2.30 + 0.26 + 0.41 = -1.63.- The expected claim frequency is
e^{-1.63} = 0.196.- Equivalently, the base frequency
e^{-2.30} = 0.100is multiplied by the urban relativitye^{0.26} = 1.297and the young-driver relativitye^{0.41} = 1.507.
Exposure as an offset
When observation i has exposure v_i, such as car-years, the expected count is proportional to the exposure. The logarithm of the expected count is then
\ln \mu_i = \ln v_i + \beta_0 + \beta_1 x_{i1} + \cdots + \beta_p x_{ip}
\ln v_iis an offset, a term in the linear predictor whose coefficient is fixed at 1 rather than estimated.
The expected count is \mu_i = v_i\, e^{\eta_i}, where \eta_i is the linear predictor without the offset, so e^{\eta_i} is the expected claim frequency per unit of exposure. Any known multiplicative factor, such as a relativity set in a separate study, enters the offset the same way, as its logarithm. Modelling the frequency y_i/v_i as the response, with weight v_i and no offset, gives the same coefficients, relativities and standard errors. A weight changes only how variable each record's response is taken to be, \text{Var}(Y_i) = \phi\,V(\mu_i)/w_i, and not its mean, so a weight cannot take an effect out of the mean the way an offset or a covariate can.
In the model above, a young urban driver has
0.5car-years of exposure. What is the expected claim count?
- The offset is
\ln 0.5 = -0.693.- The linear predictor is
-0.693 - 2.30 + 0.26 + 0.41 = -2.323.- The expected claim count is
e^{-2.323} = 0.098, which is the frequency0.196multiplied by the exposure0.5.
Overdispersion
For a Poisson regression that fits, the residual deviance D is approximately chi-squared with n - (p+1) degrees of freedom, so the ratio
\frac{D}{n - (p + 1)}
is close to 1.
nis the number of observations.p + 1is the number of coefficients, including the intercept.
The null deviance, of the model with only an intercept, has n - 1 degrees of freedom. Because \phi = 1, the deviance equals the scaled deviance. A ratio far above 1 is first a sign of lack of fit, such as a missing predictor or interaction. Once the predictors and link are trusted, it is a sign of overdispersion, a variance larger than \mu_i. A quasi-Poisson model keeps the coefficient estimates and multiplies their standard errors by \sqrt{\hat\phi}. A negative binomial model builds the extra variance into the distribution.
A Poisson regression has residual deviance
1840on600degrees of freedom, and its predictors and link are trusted. What does this indicate, and how far are the standard errors understated?
- The ratio is
1{,}840/600 = 3.07, far above 1.- The counts are about three times as variable as the Poisson distribution allows, so the data are overdispersed.
- The standard errors are understated by a factor of about
\sqrt{3.07} = 1.75.
Adding relativities instead of multiplying them Under a log link the relativities multiply. A young urban driver's combined relativity is
1.297 \times 1.507 = 1.954, not1 + 0.297 + 0.507 = 1.804.
Practice questions
- CAS Exam 8 Fall 2013, Question 2
- CAS Exam 8 Fall 2015, Question 3
- CAS Exam MAS-I Fall 2019, Question 27
- Exam MAS-I Practice Question 93
- Exam MAS-I Practice Question 94
- Exam MAS-I Practice Question 95
- Exam MAS-I Practice Question 96
- Exam MAS-I Practice Question 98
- Exam MAS-I Practice Question 100
- Exam MAS-I Practice Question 101
- Exam MAS-I Practice Question 102
- Exam MAS-I Practice Question 103
- Exam MAS-I Practice Question 106
- Exam MAS-I Practice Question 153
- Exam MAS-I Practice Question 155
- CAS Exam MAS-II Fall 2018, Question 35
- CAS Exam MAS-II Fall 2019, Question 18
- CAS Exam MAS-II Fall 2019, Question 21
- CAS Exam MAS-II Spring 2019, Question 27
- Exam PA Practice Question 21
- Exam PA Practice Question 22
- Exam PA Practice Question 25
- Exam PA Practice Question 38