Science:Math Exam Resources/Courses/MATH100 B/December 2023/Question 25/Solution 1

From UBC Wiki

The two residual values we have for the model are and . The sum of squared residuals is

which is quadratic in and concave up, so we know that the zero of the derivative of with respect to will correspond to a minimum. The derivative is

Setting the derivative to zero and solving gives .