This document discusses using least squares approximation to fit linear and polynomial models to data. It introduces the concept of best approximation in a subspace and shows that the orthogonal projection of a vector onto the subspace is the best approximation. The document then applies these concepts to derive the normal equations and the least squares solution for linear and polynomial regression models. Examples are provided to illustrate fitting lines and curves to data using least squares.