Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 1 c Solution Created 2026-10-03 Updated 2026-10-05
The negative binomial regression assumes independent random variables conditional on their recorded days, withThe logarithmic link function applies to the conditional expectation, not to the observed count. The displayed maximum-likelihood estimates areand the dispersion parameter for the fitted family is one. Thus the fitted variance is , practically the Poisson distribution variance at these means.
Increasing the day by one multiplies the conditional expectation by , a decrease of about . Comparing days 365 and 1 gives . The negative slope has Wald statistic approximately , so under the stated model assumptions there is very strong evidence of a decreasing conditional mean:This is an association with calendar day, not a causal effect established by the regression. The printed negative-binomial residual deviance is on residual degrees of freedom, which is a reason to investigate the adequacy of the assumed count model and dependence structure. In particular, the small reported slope standard error cannot make a misspecified model reliable.
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 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 1 5J Solution Created 2026-09-24 Updated 2026-09-29
An exponential dispersion family has densities of the formwhere is the canonical parameter, is the dispersion parameter, and the support does not depend on . Its mean and variance are
For the given Gamma distribution, setThengivesThus the gamma laws form the Gamma exponential dispersion family.
Directly integrating, or using the cumulant-generating function of a gamma distribution,soDifferentiation at zero yields
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 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 2025 iii Paper 218 1 b Solution Created 2026-09-24 Updated 2026-09-25
The second fit is a Quasi-Poisson regression. It retains the logarithmic link function and mean modelbut assumes only for an unknown dispersion parameter , rather than a complete Poisson distribution.
Quasi-likelihood 2026-10-05
Quasi-likelihood specifies a mean and a variance function without necessarily specifying a full response distribution. For independent responses, the estimating equation is . A common scalar dispersion parameter rescales coefficient covariance while leaving the roots of the quasi-score equation unchanged.
Residual deviance 2026-10-06
The unscaled residual deviance of an exponential dispersion family compares its fitted mean with the saturated statistical model at a common dispersion parameter. Its normalization removes the factor in the log-likelihood. In Poisson regression and binomial regression, , so it is twice the saturated-minus-fitted log-likelihood. Under suitable regularity, has approximately a chi-squared distribution with the residual degrees of freedom; this is not an automatic accurate approximation for sparse responses. Nested deviance reductions with estimated dispersion lead to approximate F-tests after scaling by the dispersion estimate.
Scaled deviance 2026-10-14
For an exponential dispersion family with a common dispersion parameter , scaled deviance compares a fitted model with the saturated statistical model at the same dispersion:For a normal distribution with variance , unscaled deviance is the residual sum of squares and scaled deviance is that sum divided by . For the binomial distribution, and the two coincide. Unknown Gaussian dispersion requires variance estimation; raw deviance differences should not be treated as chi-squared statistics without the scale.
Serial correlation Created 2026-10-07 Updated 2026-10-14
Responses observed on the same process or individual at different times may have nonzero correlation coefficients. Such serial correlation can arise from a shared random effect or from history-dependent conditional means. A scalar dispersion parameter adjustment alone does not represent this temporal dependence.
Underdispersion 2026-10-05