Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 205 5 b Solution Created 2026-09-24 Updated 2026-09-25
The leave-one-out residual identity for a linear smoother, obtained from the block matrix inverse or the Sherman–Morrison formula, isHence
Compute once the spectral decomposition in operations and the vector in . For each , setThen computeBoth calculations take operations per tuning parameter, after which the displayed leave-one-out formula costs . All scores therefore require operations.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 e Solution Created 2026-09-24 Updated 2026-09-25
Let , letand recover the sufficient cross-products from the model1 normal equations by setting and . Thenis the total squared residual about the fixed line. The squared sum of the ten residuals within each person, summed across people, isFor one person's ten observations, the marginal covariance matrix is . The matrix determinant lemma and Sherman–Morrison formula therefore give, up to an additive constant, twice the negative marginal log-likelihoodBecause the model was fitted with
REML = FALSE, it minimizes this ordinary marginal maximum-likelihood objective. Thus belongs to the stated argmin over and .