Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Comparing Poisson, Negative-Binomial, and Zero-Inflated Fits

Binary, Ordinal and Count Response Models · Tutorial 337 of 598

Comparing Poisson, Negative-Binomial, and Zero-Inflated Fits

Learn a disciplined way to compare count-model fits, interpret information criteria and predictive diagnostics, and assess zero inflation without relying on an invalid standard likelihood-ratio test.

Advanced 11 min read

What You'll Learn

  • State the Poisson, negative-binomial, and zero-inflated Poisson likelihoods and their assumptions.
  • Compare candidate fits with AIC, AICc, BIC, and relative Akaike weights.
  • Use residual patterns and predictive checks to assess where each model fails.
  • Interpret uncertainty in dispersion and zero-inflation parameters.
  • Explain why a standard chi-square likelihood-ratio reference can fail for zero-inflation tests.

Why Compare Count Likelihoods?

A count model can reproduce an average response rate while still missing important features of the data. Counts may be more variable than a Poisson model allows, zeros may occur more often than its fitted distribution predicts, or the model may miss the upper tail. Comparing candidate likelihoods is therefore not a contest to find the largest log likelihood: more flexible models usually fit at least as well, and the practical question is whether their additional complexity is supported by the data and improves relevant predictions.

This comparison assumes the candidate models describe the same response observations, use the same exposure definition and covariates where intended, and account for dependence at the same level. In repeated-measures data, for example, a likelihood that accounts for within-subject dependence should not be compared casually with one that treats all records as independent. Likelihood criteria and diagnostics complement one another; neither replaces a scientific assessment of whether the model’s data-generating assumptions are plausible.

Candidate Count Models

Definition: For observation \(i\), a Poisson regression model specifies \(Y_i\sim\mathrm{Poisson}(\mu_i)\), with \(\log(\mu_i)=\log(T_i)+\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\), where \(T_i\) is exposure time or another exposure amount. Conditional on the predictors, the Poisson variance equals its mean: \(\mathrm{Var}(Y_i\mid\mathbf{x}_i)=\mu_i\). A negative-binomial model using the NB2 parameterization has the same mean structure and variance \(\mu_i+\alpha\mu_i^2\), with \(\alpha>0\). A zero-inflated Poisson (ZIP) model assumes a probability \(\pi_i\) of a structural-zero state and, otherwise, a Poisson count with mean \(\mu_i\). Its probabilities are \(P(Y_i=0)=\pi_i+(1-\pi_i)e^{-\mu_i}\) and \(P(Y_i=y)=(1-\pi_i)e^{-\mu_i}\mu_i^y/y!\) for \(y>0\).

In these models, \(\mu_i\) is the mean of the Poisson count component, not generally the mean of the observed ZIP response. The ZIP mean is \((1-\pi_i)\mu_i\). For the NB2 model, \(\alpha\) governs extra-Poisson dispersion: as \(\alpha\) approaches zero, its variance approaches \(\mu_i\), and the distribution approaches the Poisson model. The negative-binomial model can generate extra zeros through its broader count distribution; it does not require a separate structural-zero state.

A useful comparison begins with the scientific and data structure, then examines fitted likelihoods, residual patterns, predictive behavior, and uncertainty in parameters. The models need not be nested for information criteria to be compared, but the likelihoods must be computed for the same data under comparable likelihood conventions.

Worked Example: Comparing Fits With AIC

Suppose a hypothetical analysis of the same 160 independent count observations, with the same exposure and covariates, produces the following maximized log likelihoods. The Poisson model estimates two parameters, the negative-binomial model estimates three, and the ZIP model estimates three.

ModelNumber of parameters \(k\)Maximized log likelihood \(\ell\)
Poisson2-204.8
Negative binomial3-198.1
ZIP3-198.5

Akaike’s information criterion is \(\mathrm{AIC}=2k-2\ell\). Substitution gives

$$ \begin{aligned} \mathrm{AIC}_{\mathrm{Poisson}}&=2(2)-2(-204.8)=413.6,\\ \mathrm{AIC}_{\mathrm{NB}}&=2(3)-2(-198.1)=402.2,\\ \mathrm{AIC}_{\mathrm{ZIP}}&=2(3)-2(-198.5)=403.0. \end{aligned} $$

The negative-binomial model has the smallest AIC in this comparison. Its advantage over the ZIP model is modest: \(\Delta_{\mathrm{ZIP}}=403.0-402.2=0.8\). The Poisson difference is \(413.6-402.2=11.4\). To summarize relative AIC support, define \(w_j=\exp(-\Delta_j/2)/\sum_r\exp(-\Delta_r/2)\). The unnormalized weights, in Poisson, negative-binomial, and ZIP order, are \(e^{-11.4/2}=0.003346\), \(e^0=1\), and \(e^{-0.8/2}=0.670320\). Their sum is approximately \(1.673666\), yielding normalized weights \(0.001999\), \(0.5975\), and \(0.4005\), respectively.

These weights summarize relative support among these three candidates under the AIC approximation. They are not probabilities that the respective model is true. The close AIC values for the negative-binomial and ZIP fits also mean that the data do not sharply distinguish those two candidates by this criterion alone.

Information Criteria: What They Do and Do Not Say

AIC balances fit against parameter count. It is useful for ranking candidate models aimed at predictive adequacy, under the same response data and likelihood basis. It does not test a null hypothesis or establish that the model with the lowest value is correct. The small-sample correction is \(\mathrm{AICc}=\mathrm{AIC}+\frac{2k(k+1)}{n-k-1}\), when \(n>k+1\). It is often preferred when the number of independent observational units is not large relative to \(k\). For clustered or repeated data, the relevant effective sample size and likelihood formulation require care; the raw number of rows is not automatically the right \(n\).

Another criterion is \(\mathrm{BIC}=k\log(n)-2\ell\), with \(n\) denoting the sample size under the chosen likelihood formulation. BIC imposes a different complexity penalty and has a different large-sample rationale than AIC. AIC and BIC can rank candidates differently; report which criterion was used and why rather than selecting whichever supports a preferred model. Neither criterion diagnoses a poor fit, and neither corrects a misspecified dependence structure.

The Akaike-weight calculation has a simple justification. AIC differences approximate relative expected information loss; exponentiating minus half a difference converts that scale into relative support. Dividing each support value by their sum makes the weights sum to one:

$$ w_j=\frac{\exp(-\Delta_j/2)}{\sum_r\exp(-\Delta_r/2)},\qquad \Delta_j=\mathrm{AIC}_j-\min_r(\mathrm{AIC}_r). $$

This normalization is conditional on the candidate set. Adding or removing plausible models changes the weights. They should not be interpreted as posterior model probabilities unless a separate Bayesian model specification justifies that interpretation.

Worked Example: Checking the Zero Count and Upper Tail

Consider a hypothetical dataset with 120 independent observation intervals. It contains 48 zero counts and 9 counts of at least 5. After fitting the three candidate models, the sums of their observation-specific predicted zero probabilities are 31.6 for Poisson, 44.9 for negative binomial, and 49.2 for ZIP. Their predictive distributions, obtained by simulation from the fitted models, give the following central 95% predictive ranges for the total number of zeros: 23–41, 36–54, and 40–59, respectively.

The Poisson fit predicts substantially fewer zeros than observed: \(48-31.6=16.4\) more zeros were observed than its fitted expectation, and 48 lies outside its stated predictive range. The negative-binomial and ZIP fits both include 48 in their predictive ranges. On this check, Poisson appears to miss the zero frequency, while these results alone do not distinguish the other two models.

Now suppose the corresponding simulated predictive ranges for the number of counts at least 5 are 4–13 for Poisson, 6–18 for negative binomial, and 3–14 for ZIP. The observed value, 9, lies in all three ranges. This check does not reveal a clear upper-tail failure, although it cannot rule out other residual patterns. The ranges are hypothetical results from simulations that include the fitted count structure; they are not confidence intervals for a fixed population parameter.

The calculation should use each observation’s fitted probability, not a single average rate substituted for every record. When exposure or covariates vary, predicted zero probabilities vary as well. For dependent repeated counts, simulations should reproduce the model’s dependence structure, such as subject-level effects, rather than generate records independently.

Residual and Predictive Diagnostics

Residual checks identify the type and location of model failure. For count data, inspect residuals against fitted means, exposure, concentration, time, and relevant subject-level summaries. Patterns can reveal a missing concentration relationship, unmodeled heterogeneity, an inappropriate exposure offset, or dependence left in the residuals. A general overdispersion statistic cannot by itself establish that zero inflation is the cause: negative-binomial variation, omitted predictors, and correlation can also produce more zeros than a Poisson fit predicts.

Useful checks include observed versus predicted frequencies for zero and positive counts, grouped count frequencies, and upper-tail counts, along with randomized quantile residuals or simulation-based residual checks. Compare the observed statistics with distributions generated under each fitted model, refitting parameters within each simulation when the goal is to account for estimation uncertainty. A residual pattern is evidence about model adequacy, not a mechanical instruction to add a parameter. Inspect whether discrepancies are systematic and scientifically meaningful.

A good predictive check should reflect the intended use. If the model will predict a total burden over a dosing interval, check that aggregate prediction; if it will predict individual intervals, assess interval-level distributions and repeated-measure structure. A fit can have favorable AIC yet fail a clinically important predictive check. Conversely, an isolated discrepancy in a statistic that was not prespecified should be interpreted cautiously, particularly when many checks are examined.

Worked Example: A Boundary-Aware Zero-Inflation Comparison

Return to the hypothetical likelihoods in the first example. Poisson is nested in ZIP when the structural-zero probability is zero. The observed likelihood-ratio statistic is

$$ LR=2(\ell_{\mathrm{ZIP}}-\ell_{\mathrm{Poisson}}) =2[-198.5-(-204.8)]=12.6. $$

A routine likelihood-ratio test might compare this value with a chi-square distribution having one degree of freedom, because ZIP has one more parameter. That reference is generally not justified here. Under the Poisson null, \(\pi=0\) is on the boundary of the allowed parameter space \([0,1]\); additionally, parameters that describe how \(\pi_i\) varies with covariates may be unidentified when \(\pi_i=0\). The usual regularity conditions behind the standard chi-square likelihood-ratio approximation therefore fail. A small p-value calculated from that ordinary reference distribution should not be reported as if it were generally valid.

A parametric bootstrap provides a practical alternative. Suppose 5,000 datasets are simulated under the fitted Poisson null, and both models are refitted to each dataset using the same analysis procedure. If 14 simulated likelihood-ratio statistics are at least 12.6, an estimated bootstrap p-value with the plus-one correction is

$$ \hat{p}_{\mathrm{boot}}=\frac{14+1}{5000+1} =\frac{15}{5001}\approx0.00300. $$

This is evidence against the fitted Poisson model under the specified bootstrap procedure, not proof of a structural-zero mechanism. The bootstrap must use the correct null model, preserve the design and dependence structure, and handle failed or boundary fits consistently. A very small bootstrap p-value can coexist with uncertainty about whether ZIP, negative binomial, or another model gives the most useful predictions.

Parameter Uncertainty and Interpretation

Model choice based on point estimates alone can be misleading. In a negative-binomial fit, examine uncertainty in \(\alpha\); an estimate near zero with a wide interval may indicate that the data do not precisely distinguish Poisson-like dispersion from extra-Poisson dispersion. In ZIP, uncertainty in \(\pi_i\) matters, as do correlations between zero-process and count-process parameters. When the estimate of \(\pi\) is near zero, ordinary symmetric standard errors can be unreliable because the parameter is close to a boundary. Profile likelihood intervals or a bootstrap can better show asymmetry or weak identification, though they do not eliminate information limitations in the data.

Intervals for regression coefficients should also be interpreted on their model’s scale and with the exposure held appropriately defined. A coefficient from the Poisson count component of ZIP describes that component’s rate relationship; it is not automatically the same as a marginal observed-count contrast because the observed mean also depends on \(\pi_i\). Model-specific parameter estimates are not interchangeable when likelihoods represent different distributions.

If candidate models have similar information criteria but produce materially different predictions or parameter estimates, report that model uncertainty. A model-averaged prediction can sometimes summarize this uncertainty using weights, but it requires predictions on the same target scale and should not conceal poor diagnostics or an implausible model. In a confirmatory analysis, model selection and uncertainty procedures should be specified with the scientific question in mind, rather than chosen after inspecting whichever result is most favorable.

Common Pitfalls and Practical Comparison

  • Treating every excess zero as structural. Overdispersion, omitted covariates, and dependence can increase zero counts. Compare the full predicted distribution and assess plausible causes.
  • Choosing the largest likelihood. A more complex model can increase maximized likelihood simply by having more parameters. Use a complexity-aware criterion and diagnostics.
  • Using a routine chi-square test at a boundary. For a zero-inflation parameter tested against zero, the usual likelihood-ratio reference may not apply. Use a justified boundary result or, commonly, a parametric bootstrap.
  • Comparing noncomparable likelihoods. Criteria require the same response data and compatible likelihood conventions. Conditional and marginal likelihoods, or different missing-data subsets, are not directly interchangeable without justification.
  • Reading an AIC weight as certainty. It is relative support within the candidate set, not the probability that a model is true.
  • Ignoring convergence and identification. Warning signs include estimates at parameter limits, large standard errors, a nearly singular Hessian, and materially different estimates from different starting values. Such fits need investigation before their criteria are trusted.

A practical comparison reports the candidate distributions and their assumptions, likelihood criterion and parameter counts, key predictive or residual checks, and relevant parameter uncertainty. The Poisson model is more parsimonious; the negative-binomial model allows extra-Poisson variance; ZIP allows a separate structural-zero process. These are different explanations, and fit statistics alone cannot determine which scientific mechanism generated the observations.

Check Your Understanding

Answer each question, then compare your reasoning with the short solutions.

  1. For a ZIP model with \(\mu=2\) and \(\pi=0.20\), calculate the observed mean and probability of zero.
  2. Two models have AIC values 510.0 and 512.0. What is the second model’s \(\Delta\)AIC, and what is its unnormalized relative weight?
  3. Why can a negative-binomial model predict more zeros than a Poisson model without a separate structural-zero state?
  4. Why is a standard one-degree-of-freedom chi-square reference generally questionable when testing Poisson against ZIP?
  5. Name two diagnostics that can help distinguish a zero-frequency mismatch from a broader distributional mismatch.

Solutions. (1) The observed mean is \((1-\pi)\mu=0.80(2)=1.60\). The zero probability is \(0.20+0.80e^{-2}\approx0.3083\). (2) The second model has \(\Delta\mathrm{AIC}=512.0-510.0=2.0\); its unnormalized relative weight is \(e^{-2/2}=e^{-1}\approx0.3679\), relative to 1 for the best model. (3) Its variance \(\mu+\alpha\mu^2\) exceeds the mean, producing a broader distribution that can place more probability at zero as well as in the upper tail. (4) The null sets \(\pi=0\) on the boundary, and zero-process covariate parameters may be unidentified under that null, violating regular likelihood-ratio conditions. (5) Examples include comparing observed and simulated zero frequencies and upper-tail frequencies, and examining randomized quantile residuals against fitted means or exposure.

Clinical Biostats