|
|
In Part 1 of this module, we saw that we could find the coefficients m and b of the least squares line y = mx + b by finding the projection p of the data vector y on the span W of the vectors 1 and x in R9. In fact, p = b1 + mx -- that is, the coefficients are also the coordinates of p with respect to the basis {1, x} of W.
We saw in Part 3 of the Orthogonality module that the projection p is UUTy, where U is a matrix whose columns are an orthonormal basis for W. In this part we find p this way. Of course, our given basis {1, x} is not orthonormal, so we have to start by constructing U.
|
|