Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 4 17H a Solution Created 2026-09-24 Updated 2026-10-03
Write the linear mean model asThe errors are independent but heteroscedastic. Minimizing the unweighted residual sum of squaresgives the normal equationThus, provided ,Since ,Hence it is an unbiased estimator. This is the least-squares part of the estimators for a Poisson exposure model.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 205 5 a Solution Created 2026-09-28 Updated 2026-10-03
With the normalization used in the question, ridge regression solvesDifferentiating with respect to and using the centered columns gives . The normal equation for issoThe push-through identity then gives the equivalent dual form
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 225 4 b Solution 2026-09-28
Let and define the roughness penalty matrixFor , the loss is the quadratic functionIts normal equations areWhenever is positive definite, the unique minimizer isFor the usual choice , the penalty matrix is positive semidefinite, so full column rank of suffices. Since the question permits arbitrary real , a sufficiently negative value can make the quadratic form indefinite; then the loss is unbounded below and no minimizer exists. In the singular positive-semidefinite case, the Moore-Penrose inverse describes the minimum-norm solution whenever the normal equations are consistent.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 2 a Solution Created 2026-09-24 Updated 2026-09-25
Because the columns of the design matrix are centred, ridge regression with an unpenalized intercept solvesThe normal equations give, for ,The fitted values are consequentlyIf the objective is normalized by , the same formulas hold after replacing by .