Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 207 5 b Solution Created 2026-09-24 Updated 2026-09-25
Choose a parametric baseline hazard and fitUnder independent right censoring, the full survival likelihood isEstimate by maximum likelihood estimation and test with a likelihood-ratio test, Wald test, or score test. Equality of the two event-time distributions is exactly within this model.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 207 6 b ii Solution Created 2026-09-24 Updated 2026-09-25
Under a country-specific constant hazard survival model, let be the number of deaths and the total person-time at risk in country . The likelihood is proportional toso the maximum-likelihood estimator is . Test by a likelihood-ratio test, score test, or Wald test; equivalently, give a Poisson distribution with mean and test the country coefficient in a Poisson regression with offset .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 1 d Solution Created 2026-09-24 Updated 2026-09-25
The variance approaches the Poisson distribution variance when . Equivalently, with , the Poisson model is the boundary value . The usual Wilks theorem for a likelihood-ratio test assumes that the null parameter is an interior point of a smooth parameter space, so comparing the statistic with an ordinary law is invalid here.
A valid parametric bootstrap proceeds as follows. First fit the null Poisson model and retain its fitted means . For each bootstrap repetition , independently simulateusing the original doses, refit both the Poisson and negative-binomial models to that simulated data, and calculateFor the observations calculate the analogous . The bootstrap -valueuses the null distribution with its boundary and finite-sample fitting behaviour automatically reproduced. A large controls the Monte Carlo error of this estimate.
Past exam of the mathematics course of the University of Cambridge 2025 ib Paper 1 6H Solution Created 2026-09-23 Updated 2026-10-03
The Neyman–Pearson lemma says that among tests of size at most for two simple hypotheses, a likelihood-ratio test rejecting where is most powerful, with boundary randomisation if required. If is that test and any competing test, choose so the sizes agree. Pointwise,Integration and the size inequality yield .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 1 d Solution Created 2026-09-24 Updated 2026-10-03
The third fit is a negative binomial regression. The Poisson model is obtained at the boundary where the negative-binomial overdispersion tends to zero, so the likelihood-ratio test has the asymptotic null distribution . Since model3 has one additional parameter,The supplied output gives , and hence the boundary-corrected p-value is
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 207 6 c ii Solution Created 2026-09-24 Updated 2026-09-25
Under the two-rate alternative, maximize the piecewise-exponential survival model likelihood separately to obtain the estimates in part (i). Under , there are 15 deaths and 2200 days of exposure, so . Twice the maximized log-likelihood difference isUnder the null this likelihood-ratio test statistic is asymptotically .
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 218 1 e Solution Created 2026-09-24 Updated 2026-09-25
Testwith a likelihood-ratio test. Model1 has three likelihood parameters and model2 has four, so their AIC values giveThe statistic isUsing a naive reference gives . Because the null variance lies on the boundary, the standard asymptotic reference is the mixture , giving . Either calibration rejects at the five-percent level and supports a subject random effect.
Statistical degrees of freedom 2026-10-07
The number of free dimensions remaining after specified constraints often determines a reference sampling distribution. In a full-rank normal linear model with observations and mean coefficients, the residual space has dimension . A regular nested likelihood-ratio test instead uses the difference in free statistical parameter dimensions. Boundary constraints may invalidate this regular calibration.