Poisson regression

Statistics III - CdL SSE

Tommaso Rigon

Università degli Studi di Milano-Bicocca

Homepage

Alan Agresti

Distinguished Professor Emeritus, University of Florida

  • GLMs for count data are very common and have theoretical connections with binary and binomial models.

  • This unit focuses on Poisson regression models.

  • I will not cover the analysis of contingency tables.

  • Such a topic is nonetheless discussed in the textbook but is not part of the exam.

  • The most important aspects have already been covered in Unit B.

The content of this Unit is covered in Chapter 5 of Salvan et al. (2020). Alternatively, see Chapter 7 of Agresti (2015).

Notation and recap

  • In a Poisson regression model, we observe Y_i independent Poisson random variables, so that Y_i \overset{\text{ind}}{\sim} \text{Poisson}(\mu_i), \qquad g(\mu_i) = \eta_i = \bm{x}_i^T \beta, \qquad i=1,\dots,n.

  • The canonical link is g(\cdot) = \log(\cdot), which implies a multiplicative structure for the mean.

  • Under the canonical link, the likelihood equations are \sum_{i=1}^n(y_i - \mu_i)x_{ir} = 0, \qquad r=1,\dots,p. The solution therefore has a nice interpretation as a method of moments estimator, in that \sum_{i=1}^n y_i x_{ir} = \sum_{i=1}^n\mathbb{E}(Y_i) x_{ir}, \qquad r=1,\dots,p.

Interpretation of the regression coefficients

  • Under the logarithmic link, the mean has a multiplicative structure, namely \mu_i = \exp(\bm{x}_i^T \beta) = \exp(\beta_1)^{x_{i1}} \times \cdots \times \exp(\beta_p)^{x_{ip}} = \prod_{j=1}^p \alpha_j^{x_{ij}}, \qquad \alpha_j = \exp(\beta_j).

  • As a result, a unit increase of the jth covariate from x_{ij} to x_{ij} + 1, keeping the other covariates fixed, has the following impact on the new mean, say \mu_\text{new} \mu_\text{new} = \alpha_1^{x_{i1}} \times \cdots \times \alpha_j^{x_{ij} + 1} \times \cdots \times \alpha_p^{x_{ip}} = \alpha_j \left( \alpha_1^{x_{i1}} \times \cdots \times \alpha_p^{x_{ip}} \right) = \alpha_j \mu_i. In other words, the regression parameters, once exponentiated, can be interpreted as relative changes of the mean, namely \alpha_j - 1 = \exp(\beta_j) - 1 = \frac{\mu_\text{new} - \mu_i}{\mu_i}.

The interpretation in terms of relative changes is a consequence of the logarithmic link function. Therefore, the same interpretation applies whenever this link is used.

Exposure rate

  • Often the expected value of a response count Y_i is proportional to an index t_i, the exposure. For instance, t_i might be an amount of time and/or a population size, such as in modeling crime counts for various cities. Or, it might be a spatial area, such as in modeling counts of plant species.

  • In these cases, the sample rate is Y_i / t_i, with expected value \mu_i / t_i. With explanatory variables, a model for the expected rate under a logarithmic link has the form \log\left(\frac{\mu_i}{t_i}\right) = \bm{x}_i^T\beta \qquad \implies \qquad \log{\mu_i} = \bm{x}_i^T\beta + \log{t_i} \qquad \implies \qquad \mu_i = t_i \exp(\bm{x}_i^T\beta).

  • The adjustment term \log{t_i} is called an offset. The fit corresponds to using \log{t_i} as an explanatory variable and forcing its coefficient to equal 1. In R, it is specified as offset(log(t)) in the model formula.

  • The mean is proportional to t_i, with a proportionality constant \exp(\bm{x}_i^T\beta) that depends on the covariates. The quantities \exp(\beta_j) are interpreted as relative changes of the rate.

  • Whether the coefficient of \log{t_i} is indeed equal to 1 can be checked by estimating it as a free parameter.

Overdispersion

  • In Poisson regression the main assumption is that Y_i \sim \text{Poisson}(\mu_i), implying that \text{var}(Y_i) = \mu_i, where implicitly we have set \phi = 1.

  • However, from the analysis of the residuals or by comparing the Pearson X^2 statistic with n - p, we may realize that the data present overdispersion, namely that \text{var}(Y_i) > \mu_i. A common specification is \text{var}(Y_i) = \textcolor{red}{\phi} \mu_i, with \phi > 1. In either case, the Poisson regression model is misspecified.

  • The two most common solutions to overdispersion are the following:

    1. the use of quasi-likelihoods, discussed in Unit E;
    2. the use of another parametric distribution; a typical choice is the negative binomial.

Zero-inflation

  • The frequency of zero outcomes is often larger than expected under a Poisson model. Since the Poisson mode is \lfloor \mu \rfloor (for non-integer \mu), a Poisson GLM is inadequate when the mean is large but the modal response is 0.

  • Such data are called zero-inflated: some subjects have a structural zero, while the others have positive counts or random zeros.

  • Example: weekly gym visits. Some people never exercise (structural zero), others exercise occasionally but not in the past week (random zero).

  • The two most common solutions to zero-inflation are the following:

    1. the zero-inflated Poisson (ZIP) model, a mixture of a point mass at zero, with weight \pi_i, and a \text{Poisson}(\mu_i), so that \mathbb{P}(Y_i = 0) = \pi_i + (1 - \pi_i)e^{-\mu_i};
    2. hurdle models, which model zero vs. nonzero outcomes and then the positive counts through a zero-truncated distribution.

References

Agresti, A. (2015), Foundations of Linear and Generalized Linear Models, Wiley.
Salvan, A., Sartori, N., and Pace, L. (2020), Modelli lineari generalizzati, Springer.