Why Model Choice Depends on the Source of Variation
A count dataset can vary more than a Poisson model predicts for several different reasons. Counts may share a latent group-specific rate, or individual count records may have their own unobserved rate heterogeneity. A negative binomial model represents extra variation through a particular count distribution; an observation-level random effect represents it through a lognormal mixture. These choices can yield similar variances while making different assumptions about how the data were generated.
The grouping structure is therefore central. Repeated counts from the same site, person, or other cluster can reveal whether observations move together. A single total per group generally cannot reveal that pattern: its variation alone may be compatible with several mechanisms. Model selection should begin with the sampling design and a defensible account of the variation, not simply with a large variance-to-mean ratio.
Three Models and Their Assumptions
A Poisson random-intercept model assumes that observations are conditionally Poisson once their shared group intercept is known:
The log exposure is an offset, so doubling exposure doubles the conditional expected count when other predictors are held fixed. The model assumes that the group effects are independent across groups and normally distributed, and that counts are conditionally independent given the effects and predictors. It attributes excess variation shared across records in a group to \(b_i\); it does not add a separate source of row-specific overdispersion.
A negative binomial GLMM can instead, or additionally, allow a negative binomial response conditional on group effects. For the NB2 parameterization, its conditional mean and variance are
The NB2 variance grows quadratically in the conditional mean. In a negative binomial GLMM with group intercepts, observations are conditionally independent given the intercepts, but the negative binomial response variation remains after conditioning on them. Thus the model can represent both shared group heterogeneity and extra variation specific to a count record. That flexibility is useful only when the design and data support estimating both sources.
An observation-level random-effect model gives each record its own independent normal effect:
Here \(u_{ij}\) is independent across records and independent of the group effect. Given both effects, the response is Poisson. Integrating over \(u_{ij}\) produces a Poisson-lognormal mixture and extra variation at the observation level. Its mixing distribution differs from the gamma mixing underlying the standard negative binomial, although their means and variances can be close. The observation-level effect belongs to one count record, not to every individual counted within that record.
What Grouping Reveals: A Short Derivation
The key distinction is covariance. Under a Poisson random-intercept model, let \(a_{ij}=E_{ij}\exp(x_{ij}^{\mathsf T}\beta)\), so the conditional mean is \(a_{ij}\exp(b_i)\). For two different observations \(j\) and \(k\) in the same group, conditional independence gives zero conditional covariance. The law of total covariance then gives
The final line follows because \(b_i\sim N(0,\sigma_b^2)\), so \(E\{\exp(b_i)\}=\exp(\sigma_b^2/2)\) and \(\operatorname{Var}\{\exp(b_i)\}=\exp(\sigma_b^2)\{\exp(\sigma_b^2)-1\}\). The covariance is positive when \(\sigma_b^2>0\): counts in the same group tend to be jointly high or jointly low. Independent observation-level effects do not create this cross-record covariance once group effects are accounted for. If each group contributes just one count, there is no within-group pair with which to estimate this signature directly.
Worked Example: Reading Shared Variation in Paired Counts
Suppose a hypothetical dataset has two records from each of six sites, with counts \((1,1),(2,3),(3,2),(8,8),(9,10),(10,9)\). The records are measured on the same exposure scale, and the design gives a reason to expect a site-specific latent rate shared by both records. What feature of these data is relevant to a random-intercept model?
The first-record mean is \((1+2+3+8+9+10)/6=5.5\), and the second-record mean is also \(5.5\). Their deviations from their means are \((-4.5,-3.5,-2.5,2.5,3.5,4.5)\) and \((-4.5,-2.5,-3.5,2.5,4.5,3.5)\). The cross-products sum to
The sample covariance is therefore \(75.5/(6-1)=15.1\) count-squared units, which is positive. The paired records tend to be low together or high together, a pattern consistent with a shared site effect. Under a Poisson random-intercept model, this is the kind of dependence the random intercept can represent.
This small hypothetical dataset does not establish that the random-intercept model is correct. There are only six sites; covariates, exposure differences, or chance can also affect the observed pattern. The calculation identifies a relevant design feature, not a definitive model test. The model's conditional Poisson assumption and the adequacy of its mean structure still require scrutiny.
Variance Matching Does Not Identify the Mechanism
For one Poisson observation with a lognormal random effect, let the conditional mean be \(a\exp(u)\), with \(u\sim N(0,\sigma_u^2)\). Its marginal mean is \(m=a\exp(\sigma_u^2/2)\), and its marginal variance is
That quadratic-looking variance resembles NB2, whose variance is \(m+m^2/\theta\). Similar variance functions do not make the models interchangeable: their mixture distributions differ, as do their implied tail probabilities and other distributional features. Also, the mean parameterization matters. If the fixed part of the log mean is held constant while a random effect is added, integrating over that effect changes the marginal mean by a factor of \(\exp(\sigma^2/2)\). Comparisons must use a consistent interpretation of the mean.
Worked Example: Similar Variance, Different Assumptions
Consider a hypothetical count record with marginal mean \(m=4\). Compare an NB2 model with \(\theta=2\) to a lognormal-Poisson mixture with \(\sigma_u^2=0.4\), parameterized to have the same marginal mean.
Under NB2, the variance is \(4+4^2/2=12\) counts squared. Under the lognormal mixture, \(\exp(0.4)\approx1.4918\), so the variance is
The variances are close, but that numerical similarity is not evidence that the models make identical distributional assumptions. NB2 uses negative binomial response variation; the observation-level model uses lognormal rate heterogeneity. A reason to prefer one should come from the scientific account of row-level heterogeneity, distributional adequacy, and the design—not from this variance comparison alone. With only a few observations, the data may not reliably distinguish them.
A Practical Choice for Grouped Counts
The following sequence keeps the choice tied to the assumed source of variation. It presumes a defensible count mean model, including suitable predictors and exposure offsets where needed. If that mean structure is wrong, residual overdispersion can be a symptom of omitted structure rather than a reason to add a dispersion mechanism.
Identify what one \(Y_{ij}\) represents, which records share a group, and whether there are repeated records within groups. Check that the random-effect level matches the actual design.
A latent group rate shared across repeated records motivates a Poisson random intercept. Independent residual heterogeneity among count records motivates consideration of NB2 or an observation-level random effect.
NB2 directly specifies a quadratic conditional variance function. An observation-level normal effect specifies lognormal multiplicative rate variation. Choose based on the plausible mechanism and fit, not just matching moments.
If a negative binomial GLMM includes group intercepts, repeated records and adequate numbers of groups are especially valuable for distinguishing shared group variation from residual record variation. Sparse groups or one record per group may leave the components weakly identified.
Worked Example: One Aggregate per Group
A hypothetical dataset reports one annual count for each of four districts: \(2,3,15,20\). The counts have equal exposure and no covariates in this simplified illustration. Calculate a basic dispersion summary, then decide what it can establish about the three model choices.
The sample mean is \(\bar{y}=(2+3+15+20)/4=10\). Deviations from 10 are \(-8,-7,5,10\), whose squared values sum to \(64+49+25+100=238\). The sample variance is \(238/(4-1)=79.33\) counts squared; the variance-to-mean ratio is \(79.33/10=7.933\), well above the Poisson reference value of one.
This indicates substantial variation relative to a simple equal-mean Poisson model, but it does not identify its source. With one count per district, there is no repeated within-district count pair to reveal a shared district effect. A Poisson random intercept could be justified if districts are sampled from a population of districts with latent rate differences; an NB2 model could represent extra variation among district counts; an observation-level effect could represent lognormal row-level rate heterogeneity. All three stories may be plausible, and four observations cannot adjudicate them.
If the count records instead represented multiple years within each district, a shared district intercept could induce dependence across years and would have a design-based interpretation. If each annual district count is the only record and the target is the distribution of district counts, an NB2 model may be a more direct marginal specification, provided its variance and distributional assumptions are suitable. The scientific target and sampling design determine which interpretation is useful.
Diagnostics, Alternatives, and Limitations
After fitting a candidate model, check that it has represented both the mean and the dependence structure. Examine residual patterns against fitted means and predictors, and compare observed and model-predicted count distributions at the levels relevant to the design. For clustered records, assess whether residuals still co-move within groups. Check whether estimated random-effect variances are near zero, whether estimates are unstable, and whether the fit depends heavily on a small number of groups. Convergence warnings, singular fits, or implausibly large dispersion estimates call for investigation rather than automatic acceptance of a more complicated model.
Useful alternatives answer different questions. A Poisson model without random effects is appropriate only when conditional equidispersion and independence are credible after accounting for predictors and design. A negative binomial model is an alternative when extra count variation is best represented at the response level; adding group intercepts gives a model with both shared and record-level heterogeneity. An observation-level effect offers a latent log-rate interpretation but can be computationally demanding and, with one count per record, its variance may be difficult to distinguish from other dispersion mechanisms. The models should not be ranked by a single dispersion statistic.
Likelihood criteria can help compare models that are fitted to the same observations with comparable likelihood definitions, but they do not decide which latent-variable story is scientifically credible. Boundary estimates for variance components also complicate conventional likelihood-ratio reference distributions. When possible, inspect predictive performance and model-implied dependence as well as a fit criterion. A model may fit marginal count frequencies yet miss within-group association, or capture association while describing the count tails poorly.
There are important limits to what grouped counts can teach. Aggregation removes within-group information; sparse groups offer weak evidence about covariance; and mean-model misspecification can masquerade as overdispersion. NB2 and lognormal-Poisson mixtures may be hard to distinguish with modest samples. Model choice is therefore an explicit statement about the assumed source and scale of variation, supported—but not mechanically determined—by diagnostics.
Common Pitfall
Check Your Understanding
Answer each question, then compare with the brief solutions.
- In a Poisson random-intercept model, what dependence pattern can arise between two counts from the same group?
- Why can one count per group make the source of overdispersion difficult to determine?
- For an NB2 count with conditional mean \(6\) and \(\theta=3\), calculate its conditional variance.
- What is the distinction between a group-level random intercept and an observation-level random effect?
- A fitted model has a large dispersion estimate but repeated observations show residual association within groups. What feature should be considered before choosing an observation-level effect alone?
Solutions. (1) The shared random intercept induces positive covariance between distinct counts in the group. (2) There is no within-group pair of observations to reveal shared covariance, so several mechanisms can explain marginal variation. (3) The variance is \(6+6^2/3=6+12=18\) counts squared. (4) The group intercept is shared across records in a group; the observation-level effect is independent and specific to one count record. (5) Consider a group-level random intercept, because it represents shared variation and can account for within-group association.