Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 3 5I Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2007 ii Paper 4 13I Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 4 13J Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 2 5I Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 3 5J Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 3 b Solution Created 2026-10-03 Updated 2026-10-07
For and , the Poisson distribution has massMatch this to the exponential dispersion family withThen and . The canonical link function expresses the natural parameter in terms of the mean, so the Poisson canonical link is . Its conditional variance equals its conditional mean.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 a Solution Created 2026-10-03 Updated 2026-10-06
Write and . With , the Gamma exponential dispersion family representation iswhereSubstitution gives the original gamma density, so both unknown parameters are included. The exponential-family derivative identities yield and . ThereforeThe exact natural-parameter canonical link function is . The usual inverse-link convention is , as used by the printed R fits; multiplying the link and coefficients by gives the natural-parameter convention. The sign convention changes neither the fitted means nor the weight matrix below.
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 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 ii Paper 3 5J Solution Created 2026-09-24 Updated 2026-10-05
Write for the log-likelihood and for the score function. Newton method uses the Observed Fisher information ; Fisher scoring uses the Fisher information .
For independent responses in an exponential family, with fixed dispersion parameter and fixed weights , a canonical link function gives andThe last matrix depends on but not on the responses, so taking its expectation leaves it unchanged. Hence the two updates are identical, wherever this Fisher information matrix is invertible. Equivalently both solve the same iteratively reweighted least squares problem. This statement concerns the regression coefficients at a fixed dispersion parameter; a joint update of an unknown dispersion parameter need not have identical observed and expected full Fisher information matrices.
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 2021 ii Paper 2 5J Solution Created 2026-09-23 Updated 2026-09-25
A generalized linear model assumes that the independent responses have distributions in an exponential family, with means , and thatThe invertible function is the link function; it connects the mean to the linear predictor.
For binomial regression, write independently, so . The logistic regression link iswhile probit regression useswhere is the standard-normal distribution function. The logit is the canonical link function for the binomial family.
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 .