Solution

ID: past-exam-of-the-mathematical-and-computational-biology-course-of-the-university-of-cambridge/2024/paper-1/b3/a/solution

Choose the diagonal matrix . Multiplying a vector by scales its th component by . Therefore
The Euclidean norm objective for ordinary linear least squares on is exactly the weighted least squares objective, so the sets of minimizing vectors coincide. Zero weights simply discard the corresponding residuals.

New to topics? Read the docs here!