For known size , the negative binomial distribution is an exponential family with natural parameter and cumulant . A generalized linear model can use a logarithmic link function for its mean, even though that link is not canonical. Jointly estimating the size changes the family and variance function, requiring additional updates beyond a single fixed-family GLM fit; this is what MASS::glm.nb does.
In the stationary law of a two-resource linear flow network, the local counts are independent geometric variables with parameters . Conditional on local counts , the through count has a negative binomial distribution with mean . With positive loads, it is correlated with each local count, even though those two local counts are independent. Degenerate zero-load cases must be distinguished from the positive-load assertion.
Negative binomial regression models overdispersed counts with a negative binomial distribution, commonly using a logarithmic link for the mean.
Negative binomial series 2026-10-06
For a nonnegative integer and , this specialization of the binomial series sums the normalizing coefficients of a negative binomial distribution.
Panjer claim-count class 2026-10-07
The nonnegative integer laws whose probabilities satisfy this recurrence for all . Their probability generating function solves . This is the count class used in the Panjer aggregate algorithm; the count recurrence itself should be distinguished from that aggregate recursion. It includes the Poisson distribution, binomial distribution, and negative binomial distribution with suitable parameters.
Keep baseline covariates fixed and put , , and for . Integration of a Poisson count over the Gamma component gives
This negative binomial distribution has mean and variance . Therefore the unconditional one-term distribution is the zero-inflated negative binomial distribution
In particular its zero probability is , not simply . As this becomes a Zero-inflated Poisson distribution.
The mixing effect has , and . The law of total variance and law of total covariance now give
Equivalently, for , and . This also supplies raw second moments by adding . Dependence arises from both shared heterogeneity and shared structural zeros, even when the positive random effect is constant.
The printed moment variance matches the hierarchical variance at the same parameter values, but its printed off-diagonal covariance is . Equality would require , or . It is therefore false to claim that the two approaches consistently estimate all the same parameters in general.
The precise distinction is between consistency of mean ratios and identification of structural parameters. In the hierarchical model, with , both the quadratic variance coefficient and the covariance coefficient in terms of the marginal mean are
For the moment parameterization, writing its parameters as , these coefficients are and . Its intercept is identifiable from the mean only as . Matching the true first two moments demands . One solution always is
For there is also a solution , , , with the corresponding shifted intercept. Indeed eliminating gives . This is moment aliasing in a shared zero-inflated count model: matching the moments does not identify the actual structural-zero probability.
For a concrete counterexample take . Then and . The only admissible moment-matching choice is , with an intercept shifted by ; it cannot recover the true structural-zero proportion 0.2. Correct marginal means can give consistent term and baseline-covariate slopes with sandwich standard errors; they do not justify consistent estimation of the intended , or latent intercept. Nor does a mean-only estimating equation identify at all. Full-distribution inference provides information beyond these first two moments.
Conditioning on the intensity in the Poisson mixture gives
Thus has the negative binomial distribution with two successes and success probability , counting failures; explicitly for . The probability generating function is finite for real .
The claim-size moment-generating function is . Substituting into the aggregate moment-generating function and using gives
Put , the moment-generating function of an exponential distribution with rate . The identity
then yields
The gamma-mixed Poisson aggregate with exponential claims has three nonnegative mixture weights summing to one. By uniqueness of the moment-generating function near zero, the aggregate distribution is
Here is the Dirac measure at zero. In particular , consistently with . The positive components have respective expected values and ; their mixture distribution accounts for the possibility of no aggregate payout.
A feasible per-flow allocation satisfies for each active route and . It has proportional fairness if every feasible competitor obeys
By the first-order inequality for the strictly concave logarithm, this is equivalent to maximizing weighted logarithmic utility over the feasible allocations. Inactive-route rates are immaterial; set them to zero as a convention.
Write , , , and . The capacity constraints are and . For , put . Each active local route uses its remaining capacity . Omitting constants, the utility is
Its maximum has ; when , the maximum is the endpoint . Hence for active routes
These formulas also give and when . When there is no allocated service. Equivalently, the aggregate route rates for are
This is the proportionally fair allocation on a two-resource linear network for a two-resource linear flow network.
For independent Poisson processes of documents and independent document sizes with exponential distribution of rate , the memorylessness of the exponential distribution makes the population a continuous-time Markov chain. Its transition intensities are
The departure intensity sums the independent completion hazards . There is no departure on an inactive route. Set , with .
To prove the proposed stationary distribution, define the balance function of a flow-level network
For an active local route, , while for the through route this ratio is . Thus . The weights
satisfy detailed balance on every arrival-departure pair:
Each total jump rate is bounded by , so the chain is a nonexplosive Markov chain; normalized detailed-balance weights therefore give its stationary distribution, the stationary law of a two-resource linear flow network.
Use the negative binomial series to sum first over :
The remaining two geometric series give
All summands are nonnegative. Consequently the sum is finite exactly under the stability conditions for a two-resource linear flow network
These say that the offered load on each unit-capacity resource is strictly below one. Equality is insufficient: at least one geometric series then diverges. If all arrival rates are positive, the chain is irreducible and the normalizable law is its unique equilibrium law.
Finally put , . Summing over yields
Thus the two local-route counts are independent, each with geometric distribution on the nonnegative integers. The conditional through-route count has negative binomial distribution
For positive traffic rates this depends on the local counts, so all three route counts are not independent. More quantitatively, , and likewise for . If zero arrival rates are allowed, the exceptional independent cases are , or , when the relevant counts are deterministic zero. This distinction is local-count independence with through-flow dependence.
For fixed known , take the natural parameter of an exponential family
The negative binomial distribution has log-likelihood
Thus this is a negative binomial exponential family, with dispersion parameter in the convention of part (a). The carrier contains the Gamma function and depends on the fixed size , which need not be an integer. Differentiating the cumulant function of an exponential family gives
Therefore
The size controls overdispersion relative to a Poisson distribution; it is different from the unit dispersion parameter used by this fixed-size generalized linear model. Another common convention applies to the scaled response : then and . Keeping track of the response scale prevents confusing these two representations. At the law is concentrated at zero and is obtained as a boundary limit, rather than by a finite natural parameter of an exponential family.
Let and . Under the proposed zero-inflated negative binomial model, independence gives the likelihood function
The positive-count factor uses the ordinary, untruncated negative binomial distribution. With , the log-likelihood is
For latent indicators , the complete-data log-likelihood is
where is allowed only when . This separation is what makes the expectation-maximization algorithm convenient.
For the process to stop on toss , the last toss must be the th head, while the first tosses must contain exactly heads. Hence the negative binomial distribution gives
For , the last flip must be the th head. Among the preceding flips, exactly are tails and are heads. There are choices for their positions, and every resulting sequence has probability . The negative binomial stopping argument therefore gives
so has the failures-before-the-th-success negative binomial distribution.
To put the mass function into exponential family form, set
Since ,
where
Thus the natural parameter of an exponential family is , and the Fisher-Neyman factorization theorem shows that is a sufficient statistic. This is the negative binomial exponential family.
The exponential-family derivative identities now give
and