Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 1 b Solution Created 2026-10-03 Updated 2026-10-05
For fixed known , take the natural parameter of an exponential familyThe negative binomial distribution has log-likelihoodThus 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 givesThereforeThe 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.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 5J b Solution Created 2026-09-24 Updated 2026-10-05
This is not a valid ordinary R glm family specification. A multinomial distribution is natural for the three damage counts conditional on the row total, but base R's generalized linear model interface does not supply a family named multinomial. Furthermore, the written response is one cell count, not a three-category response or grouped multinomial vector. A properly specified multinomial logistic regression could model category probabilities by group, but it is not the model fit by this command. The independent-count log-linear model in part (a), conditional on the margins, is the appropriate supplied alternative.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 5J c Solution Created 2026-09-24 Updated 2026-10-05
This does not model the full three-category response. A binomial distribution has two outcome classes, whereas the observed damage factor has three. In base R, a factor response to a binomial generalized linear model is coded as first level versus all other levels; this would silently collapse the categories. It would also treat the nine table rows as nine individual observations, ignoring the frequencies. A deliberate binary analysis would require specifying the collapse and retaining the counts, but cannot recover the full damage distribution.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 13J c Solution Created 2026-09-24 Updated 2026-10-03
Fit a Poisson regression to artificial responses with meansWith the logarithmic link, this is the generalized linear modelwhere is a known offset. Its log likelihood, apart from constants, isThe differencedoes not depend on . The Poisson surrogate therefore has exactly the same maximum-likelihood estimate of . This is the Poisson surrogate for an uncensored proportional-hazards likelihood.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 5J b Solution Created 2026-09-24 Updated 2026-10-03
For independent observations from an exponential dispersion family with common known dispersion parameter , the generalized linear model log-likelihood iswhere and the link function satisfies .
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 2020 ii Paper 1 5J c Solution Created 2026-09-24 Updated 2026-09-29
At a current value , putand define the working responseThen the displayed formulas in the question can be written compactly asandIndeed, the th component of the latter iswhich is precisely the stated score.
Substitution into the Fisher-scoring update givesBy part (b), this is the weighted least squares fit of the working response on . Both and are recomputed from the current fitted means after every update. Fisher scoring for a generalized linear model is therefore the iteratively reweighted least squares algorithm.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 13J a Solution Created 2026-09-24 Updated 2026-09-29
A generalized linear model assumes independent responses from one exponential dispersion family,where , , and a link function relates the mean to the linear predictor by . It follows from normalization of the density after shifting the natural parameter thatIndependence therefore gives the joint moment-generating functionwhenever every shifted natural parameter lies in its natural-parameter domain.
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 2023 iii Paper 218 3 e Solution 2026-09-28
The ordinary least squares equations for model 2 areFor the Gamma generalized linear model, and , so its score equation under the logarithmic link isWhen is close to ,by the first-order Taylor expansion of the exponential function. The Gamma score equations then become the model-2 normal equations, so their coefficient estimates are close.
Past exam of the mathematics course of the University of Cambridge 2024 ii Paper 1 5L a Solution Created 2026-09-24 Updated 2026-09-25
A generalized linear model has three components:
For independent uncensored event times with and baseline cumulative hazard , maximizing the survival log likelihood over is equivalent to fitting a Poisson regression with unit responses and meansThus a log-link generalized linear model with response , linear predictor , and offset gives the same estimate of .