Ph.D. candidate at Iowa State University Statistics

Regression with Count Data: Theory

Toggle Code Viewing: ON

The set up: You’ve been asked to find the relationship between n variables. You automatically think REGRESSION! Of course you’re right. and if you’re like me, you think Multivariate Linear Regression should do the trick. This is where the hitch is. Your dependent variable is a count (0,1,2,3,)! Surely this violates some sort of Ordinary Least Squares assumption, right? What now?

The solution: Count data regression is as simple as linear regression, it just requires a different model. The obvious model from statistics is the Poisson with mean . Why is this an obvious model? Let’s see how the Poisson distribution fits over some sample count data:

Poission Distribution

You can see the distribution fits (maybe not the best fit, but what do you expect with the simplest model?) and we can move on to talk about how the model is structured.

The Model: The Poisson regression model takes a general form:

Compare the Poisson regression model to the a general linear regression model:

As you can see, the Poisson model can be easily transformed to the linear regression model by taking the natual log of the whole equation:

Thus the Poisson regression model is sometimes called the log-linear model.

Interpretation of Coefficients: The interpretation of the coefficients for the Poisson model is fundamentally different from the interpretation of coefficients in the linear regression model. This is due to the exponentiation present in the Poisson model.

If you think about interpreting the coefficients this way: “What does a one unit change in the jth regressor do to the mean?”, then some calculus and algebra are necessary:

This tells us that with every one unit change in the jth regressor, there is a change in the mean by the amount . For reference, the linear model’s mean would simply change by .

Alternative Count Models: The Poisson model, while simple to use and easy to remember does have its draw backs. Namely, it restricts the variance to equal the mean, called equidispersion. Of course, this assumption doesn’t necessarily hold in your data. The data is called overdispersed if the variance exceeds the mean and underdispersed if the variance is less than the mean. Unless the count data is equidispersed, the Poisson model leads to innacurate results.


A common, more general model is the Negative Binomial model. The Poisson distribution is simply one case of the Negative Binomial distribution. So, Negative Binomial regression is performed in much the same manner as Poisson, but with more flexibility. This model can be used when the data is overdispersed, but not underdispersed.

If your data is underdispersed, a common solution is to use a Hurdle model. This model treats the process for zeros differently than that for non-zero counts, allowing for a closer fit on zero-inflated data.

Well, that’s a pretty short introduction to the world of Count Data Regression. If you’re interested in learning more, check out Essentials of Count Data Regression or Resources for Count Data Regression both provided by Cameron and Trivedi.

Also, be on the look out for an example of working with count data!

blog comments powered by Disqus