Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/ii/paper-1/30k/c/solution

Assume first that . Since ,
and for ,
The least-squares affine-regression coefficients are therefore
The minimum is
where
This matrix is symmetric and positive semidefinite. If , then , one may take and arbitrary , and the minimum is , corresponding to .

New to topics? Read the docs here!