Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/iii/paper-218/2/a/solution

Because the columns of the design matrix are centred, ridge regression with an unpenalized intercept solves
The normal equations give, for ,
The fitted values are consequently
If the objective is normalized by , the same formulas hold after replacing by .

New to topics? Read the docs here!