FreeStatisticalTools.com
Econometrics and time series

Poisson and Negative Binomial Regression

Model count outcomes such as visits, patents or accidents. Fit Poisson and negative binomial (NB2) regressions, read incidence rate ratios, and test for overdispersion to choose between them.

Free · No sign-upReplaces Stata · SPSS GENLINWorks with your data
Updated · By Bibin Xavier

Data 500 × 11

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 500 rows, 11 variables. Data stays in this browser tab.
IDnumericLog_WagenumericEducationnumericExperiencenumericFemalenumeric · codedUnionnumeric · codedDistance_CollegenumericFather_EducnumericEmployednumeric · codedDoctor_VisitsnumericAgenumeric
12.47120005.790118
21.83142101091041
32.561112000120029
42.0210140027.2130030
51.7512211121.691139
62.73101000091026
71.5411141013.8100031
81.46119117.281226

Variables and options

Regressors 4 selected · min 1
Results update automatically when you change an option.

Results

500 rows · example data
Mean / variance of outcome1.49 / 2.20
Poisson dispersion (Pearson χ²/df)1.36
NB dispersion α0.254LR test α = 0: p < .001
AIC Poisson / NB1639.4 / 1615.3
Table 1

Poisson regression

VariableCoefficientSEzpIRR95% CI for IRR
Constant-0.10690.2560-0.417.6760.899[0.544, 1.484]
Age0.02220.00494.535< .0011.022[1.013, 1.032]
Female0.32740.07474.385< .0011.387[1.198, 1.606]
Education-0.02590.0205-1.263.2070.974[0.936, 1.014]
Employed-0.15550.0783-1.986.0470.856[0.734, 0.998]

Note. Log-likelihood = -814.71, AIC = 1639.4, BIC = 1660.5.

Table 2

Negative binomial (NB2) regression

VariableCoefficientSEzpIRR95% CI for IRR
Constant-0.11980.2972-0.403.6870.887[0.495, 1.588]
Age0.02220.00583.824< .0011.022[1.011, 1.034]
Female0.32730.08763.735< .0011.387[1.168, 1.647]
Education-0.02470.0239-1.031.3030.976[0.931, 1.022]
Employed-0.16080.0926-1.737.0820.851[0.710, 1.021]

Note. Log-likelihood = -801.65, AIC = 1615.3, BIC = 1640.6, α = 0.254 (SE 0.065).

Table 3

Overdispersion tests

TestStatisticpConclusion
Cameron-Trivedi (α in Var = μ + αμ²)α = 0.235, t = 3.90< .001Overdispersion
Likelihood ratio (α = 0)χ̄² = 26.12< .001Prefer negative binomial

Interpretation

The data are overdispersed, so the negative binomial model is preferred. In that model, each one-unit increase in Age multiplies the expected count by 1.02 (+2%); each one-unit increase in Female multiplies the expected count by 1.39 (+39%).

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Poisson and Negative Binomial Regression [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/poisson-negative-binomial-regression/

BibTeX

@software{xavier_poissonnegativebinomialregression_2026,
  author = {Xavier, Bibin},
  title = {Poisson and Negative Binomial Regression},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/poisson-negative-binomial-regression/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Poisson and Negative Binomial Regression tool on FreeStatisticalTools.com (Xavier, 2026).”

What is Poisson and negative binomial regression?

Count outcomes, such as the number of doctor visits or patents, call for count regression. Poisson regression assumes the variance equals the mean; negative binomial regression adds a dispersion parameter for the common case where the variance is larger.

When to use Poisson and negative binomial regression

Use count models when the outcome is a non-negative integer. Negative binomial is preferred when the variance exceeds the mean, which is common.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the count outcome and regressors.
  3. Set the options. Fill in model.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report Poisson and negative binomial regression in APA style

Report incidence rate ratios with confidence intervals, the dispersion parameter and the test used to choose the model.

Frequently asked questions

How do I interpret an incidence rate ratio?

An IRR of 1.20 means a one-unit increase in the regressor multiplies the expected count by 1.20, a 20% increase.

How do I detect overdispersion?

Compare the variance with the mean, check the Pearson dispersion statistic, or use the Cameron-Trivedi test; a significant negative binomial α also signals overdispersion.

What about many zeros?

Excess zeros may need a zero-inflated or hurdle model; the negative binomial often handles moderate excess zeros well.

Related tools

Browse all categories