Science:Math Exam Resources/Courses/MATH221/December 2009/Question 09/Solution 1

From UBC Wiki

The coefficients of the least squares fit are given by

where

and

Now

and

.

Solving the resulting linear system, we find that , so the least squares fit is .