Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2019/paper-1/18/b/ii/solution

Compute the two sides of the normal equations for linear least squares and divide by :
The first equation gives . Substitute this into the second and solve:
These simple linear regression coefficients are unique provided the observed distances are not all equal, since
The condition alone does not guarantee this. If all , the design matrix has matrix rank one and the valid alternative is the family
In this rank-deficient ordinary least squares case, the fitted predictions are uniquely but the two parameters cannot be separately determined.

New to topics? Read the docs here!