Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 210 3 Solution Created 2026-09-24 Updated 2026-09-25
A cubic spline with knots is twice continuously differentiable and restricts to a polynomial of degree at most three between consecutive knots. It is a natural cubic spline when it is linear outside , equivalently when its second derivative vanishes at the two outer knots and on the exterior intervals.
Let be the natural cubic spline interpolating prescribed values and let be any other interpolant in . Then . Piecewise integration by parts, using that between knots, is continuous, on the exterior intervals, and every jump of is multiplied by , givesConsequentlyEquality forces almost everywhere. Then is affine and its zeros at at least two distinct knots force , proving uniqueness.
For the penalized problem, fix a vector of fitted values. The preceding variational result says that its natural spline interpolant has the least roughness among all functions taking those values, and by assumption that roughness is . The infinite-dimensional problem therefore reduces toBecause is positive semidefinite, is positive definite. The unique fitted-value vector isand is its unique natural cubic spline interpolant.
For Leave-one-out cross-validation, let minimizeand defineIf , its normal equations sayThus , whereTaking the th coordinate and writing givesTherefore one spline fit and the diagonal of its smoothing matrix give