Exponential dispersion family of order one 2026-10-14
An order-one exponential dispersion family has a scalar natural parameter and canonical sufficient statistic ; its density or mass function has the displayed form on parameter-independent support. Differentiating its normalization gives and . Known observation weights replace by . Its variance function is , and its canonical link function is .
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. Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 1 5I Solution Created 2026-09-24 Updated 2026-10-14
Differentiate the normalization of the exponential family density with respect to , assuming the regularity that permits differentiation under its integral. The density derivative is . ConsequentlyDifferentiating the expectation once more gives , soThe log-likelihood derivative with respect to is . For the generalized linear model with linear predictor , the chain rule givesUsing independence to add the log-likelihood contributions proves the score functionHere includes the dispersion parameter . Defining instead a unit-dispersion variance function would require retaining an explicit in the denominator.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 43 2 Solution Created 2026-10-03 Updated 2026-10-14
For an exponential dispersion family, differentiating the normalization integral with respect to gives an expected score of zero. The score is , hence . Differentiating again, the expected squared score is ; it is also . ThusThe canonical link function sets the linear predictor equal to the natural parameter: . The variance function is , so ; the dispersion parameter is separated from the mean-dependent factor.
The saturated statistical model has a separate mean for each response and fits , with boundary parameters interpreted by limits. At the same fixed dispersion, its log likelihood and the fitted model's log-likelihood define the scaled devianceThe unscaled deviance isKeeping dispersion fixed in this definition is essential; it is not a comparison with a separately estimated zero variance in a Gaussian saturated fit.
For the normal distribution, expanding its density exponent givesConsequentlyHere and the canonical link is the identity, so . The saturated natural parameter is . Substitution into the deviance formula yields
For the cholesterol fits, all formulae include an intercept. Model 1 has age and BMI with three coefficients; models 2 and 3 have one of these covariates with two coefficients; model 4 has only the intercept. Their residual statistical degrees of freedom are respectively . Their reported deviances are residual sums of squares, because these are Gaussian linear models.
The relevant hypothesis is in the full model, against , with age already present. Thus compare model 2 with model 1 using the partial F-test. Its extra sum of squares is , and the common variance is estimated from model 1 by . ThereforeSince , reject at ; the two-sided coefficient-test equivalent has . BMI is associated with cholesterol after adjustment for age, under the linear Gaussian model. The RSS values alone do not identify the sign of its coefficient or the size of the association.
For comparison, the marginal BMI test would compare model 4 with model 3, giving on statistical degrees of freedom, with . This does not answer the adjusted question and makes the BMI evidence appear stronger than the conditional test. Age also contributes after BMI: comparing model 3 with model 1 gives on statistical degrees of freedom, with . Thus retaining both predictors is supported at the stated level.
A raw deviance difference must not simply be compared with the supplied cutoff: Gaussian dispersion is unknown and the differences here are unscaled. If were known, the scaled difference would have a law. Estimating it from the full fit gives the exact finite-sample comparison above, with the appropriate denominator statistical degrees of freedom.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 42 5 Solution Created 2026-10-03 Updated 2026-10-14
An exponential dispersion family of order one has density or mass function, relative to a fixed dominating measure, of the formwhere is a scalar natural parameter, is the dispersion parameter, and the support does not depend on . For regular families, is twice differentiable on an open natural-parameter domain and . Known observation weights replace by . “Order one” refers to the scalar canonical statistic , rather than an arbitrary vector of canonical statistics.
Differentiate the normalization , or its discrete counterpart, assuming differentiation under the integral is valid. The first derivative gives . The second derivative givesConsequently,The variance function expresses the second derivative in terms of the mean:
A generalized linear model specifies independent responses from an exponential dispersion family, a linear predictor , and a differentiable monotone link function relating it to the response mean by . The family, variance function, covariate design, link function and dispersion specification together define the model. The canonical link function identifies the linear predictor with the natural parameter:One advantage is that the likelihood equations become particularly simple. With known weights and common dispersion , the score function and negative Hessian matrix for areThe latter does not explicitly depend on the responses, so it equals the expected Fisher information matrix at the same parameter. With full-rank design and positive variances the likelihood is strictly concave in , simplifying optimization. These statements concern the coefficient block at a fixed dispersion value.
For a normal distribution with mean and variance ,Thus , , , and . Its canonical link function is , the identity link.
For a Poisson distribution with mean and support ,Here , , , and . Therefore , , and the Poisson canonical link is .
For a Bernoulli distribution with success probability ,Taking , , , and gives the required form. Its mean and variance function are and . Its canonical link function is , the logit link. The fixed dispersion values in the Poisson and Bernoulli cases are part of those models; an arbitrary continuous dispersion is not being asserted for them.
To test , first fit the unrestricted model and then the restricted model with that component fixed at zero, estimating all nuisance parameters, including dispersion when applicable, in each fit. If and denote their full fitted parameter vectors, the likelihood-ratio test usesFor identifiable regular models, an interior null parameter and a fixed-dimensional full-rank design with increasing information, the Wilks theorem gives under . A level- test rejects for greater than the -quantile of the chi-squared distribution with one degree of freedom.
Alternatively the Wald test uses , with the variance obtained from the appropriate inverse full Fisher information matrix; it has the same limiting null law. The score test fits only the restricted model. If collects its nuisance parameters, its efficient information is , and the statistic is , again asymptotically . Accounting for the nuisance block is necessary rather than using the unadjusted diagonal information.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 2 5I Solution Created 2026-09-24 Updated 2026-10-14
An exponential dispersion family has density or mass functionwith support independent of the natural parameter . Usually for a known weight . For the Poisson distribution, identifyThe dispersion is fixed at one. Differentiating the normalizing identity gives ; differentiating again gives . Here both derivatives equal , soThe variance function expresses in terms of the mean . The canonical link function maps the mean to the natural parameter, so the Poisson canonical link is .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 a Solution Created 2026-10-03 Updated 2026-10-07
An exponential dispersion family has density or mass function, relative to a fixed measure,Here is the natural parameter, is the cumulant function, and is the dispersion parameter. Assume the natural parameter lies in the interior of its domain and derivatives can pass through the normalizing integral. Differentiating normalization once and twice givesThe variance function is , where the mean-to-natural-parameter inverse exists. The dispersion parameter may be fixed, as in a Poisson distribution, rather than estimated.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 d Solution Created 2026-10-03 Updated 2026-10-07
The Quasi-Poisson regression retains the same conditional mean but permitsThis is a mean–variance function specification through quasi-likelihood; it does not assign a full probability distribution to each count. For independent observations, the quasi-score equation is proportional to , so the mean statistical parameter estimates equal those from Poisson regression. The output estimates through the Pearson dispersion estimator, and inflates the standard errors by approximately .
The large residual deviance relative to 728 residual statistical degrees of freedom also signals substantial overdispersion. Daily weather, traffic and other omitted conditions may produce greater count variation than a homogeneous Poisson distribution allows. The Quasi-Poisson regression accounts for that extra marginal variance. It still requires a correct conditional mean and an appropriate independence assumption; a common dispersion parameter alone does not repair serial correlation.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 b Solution Created 2026-10-03 Updated 2026-10-06
A generalized linear model specifies independent responses in an exponential dispersion family, their means , and a link function connecting those means to a linear predictor. In the common notation,where are known positive weights, is the common dispersion parameter, and is the variance function. The systematic part isHere is a row of the known design matrix and contains the unknown regression coefficients. The link function is invertible on the permitted mean domain; the canonical link function takes the mean to the natural parameter. This separates distributional, predictor, and link assumptions: it does not require the response itself to be normally distributed or the mean itself to be linear in the covariates.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 d Solution Created 2026-10-03 Updated 2026-10-06
For the gamma variance function, the Pearson dispersion estimator isusing residual degrees of freedom. Under a specified null dispersion , the scaled statistic based on squared Pearson residuals has an approximate distribution under the usual residual approximation.
Thus
test1 corresponds to , equivalently gamma shape , the exponential distribution. test2 corresponds to , equivalently shape . The null hypotheses concern dispersion or shape, not whether the regression coefficients vanish.The code computes lower-tail probabilities. Used as one-sided tests, the alternatives are and , respectively, equivalently shapes larger than one and three. At the 5% level the first null is rejected because the lower-tail probability is , while the second is not rejected because its probability is . If the intended alternatives are two-sided, , these displayed numbers must not be called two-sided p-values: doubling the smaller tail gives approximately and , with the same decisions. The chi-squared distribution approximation is not an exact finite-sample gamma identity.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 3 d Solution Created 2026-10-03 Updated 2026-10-06
Use negative binomial regression with a logarithmic mean link, for exampleIn the mean-size parametrization,The extra parameter allows overdispersion that grows quadratically with the mean, unlike the proportional variance of Quasi-Poisson regression.
library(MASS)
species_nb <- glm.nb(nspecies ~ altitude, link = log)The printed assertion needs qualification: a negative-binomial model with fixed size is a generalized linear model. For known , its probability mass function isWith natural parameter , it has exponential family formwith dispersion one. A logarithmic link is permitted even though it is not the canonical link function. This is the fixed-size negative binomial generalized linear model.
What prevents a single ordinary fixed-family GLM fit in
glm.nb is joint estimation of the unknown size : it changes the cumulant, carrier, and variance function, rather than merely multiplying a fixed variance function by a scalar dispersion. The routine alternates a GLM fit at fixed with size-parameter likelihood updates. Thus the intended distinction is between that enlarged fitting problem and a single fixed-family GLM, not a claim that negative-binomial regression can never be a GLM. The package documentation explicitly supports both conventions: stat.ethz.ch/R-manual/R-patched/library/MASS/html/glm.nb.html and stat.ethz.ch/R-manual/R-patched/library/MASS/html/negative.binomial.html. Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 2 d Solution Created 2026-10-03 Updated 2026-10-05
The quasibinomial regression retains the logit link and mean function but uses the working variance function . Its quasi-score equation isso multiplying by the common dispersion parameter does not change the coefficient estimates. Iteratively reweighted least squares therefore gives the same fitted means and coefficients as the binomial model. The usual Pearson dispersion estimator isThe estimated coefficient covariance matrix is , with . From the intercept standard errors, ; the rounded slope errors give approximately the same factor. The display uses approximate Student's t-tests with 118 residual degrees of freedom instead of fixed-dispersion normal tests.
For a genuinely individual binary response, the Bernoulli distribution identity forces . Thus is a working quasi-likelihood specification, not a different independent binary distribution with that mean. The mild estimated underdispersion does not establish an improved model, and the mean predictions are unchanged. In particular, a scalar rescaling does not model correlation among users, and usual likelihood-based Akaike information criterion comparisons are unavailable for a family without a specified probability likelihood. The output gives no convincing reason to prefer model3 to model2.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 5J c Solution Created 2026-09-24 Updated 2026-10-03
For the canonical link function, . Differentiating the log-likelihood gives the score functionSincewhere is the variance function, a second differentiation givesThis Hessian does not depend on the observed , so taking its negative expectation changes nothing. Hence
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 1 13J iv Solution Created 2026-09-24 Updated 2026-09-29
A suitable generalized linear model is a Gamma regression with logarithmic link:withThe gamma distribution is appropriate for a positive, continuous, right-skewed payment, and its variance function allows the conditional variance to grow like the square of the conditional mean instead of assuming constant variance. The logarithmic link function also guarantees positive fitted means and represents covariate effects multiplicatively, which accords with the Box–Cox transformation evidence for a logarithmic scale.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 218 1 a Solution 2026-09-28
Put and . The density can be writtenwhereThus this is an exponential dispersion family. Its derivative identities giveThe variance function is . In the usual Gamma-GLM convention the canonical inverse link isit differs by a minus sign from the natural parameter .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 1 b Solution Created 2026-09-24 Updated 2026-09-25
For the Poisson variance function , the code computes the Pearson chi-squared statisticand the Pearson dispersion estimatorThe first quantity measures goodness of fit; the second estimates the dispersion parameter, which equals one in a correctly specified Poisson regression. A standard rough calculation substitutes the residual deviance for the Pearson statistic and givesIf the reported upper-tail probability is inverted numerically, the actual Pearson statistic used by the code is about , giving . Either calculation reveals severe overdispersion.
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 218 1 a Solution Created 2026-09-24 Updated 2026-10-03
Expanding the exponent of the Inverse Gaussian distribution givesThus the exponential dispersion family representationhasandThe standard cumulant identities yieldHence the variance function is , and the canonical link function is .
Quasibinomial regression 2026-10-05
The logit mean model with working variance function has the same coefficient estimates as ordinary binomial logistic regression, but estimates dispersion from residuals. For an actual individual binary random variable, forces variance , so a nonunit dispersion is a working specification rather than a new independent binary distribution.