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.