Least-Squares in Linear Algebra

The least-squares method is very important in the area of data fitting. The lesson will give an overview of how to use the least-squares method, in order to find the best fitting model on data.

Consider a stock, for which you can assume that the stock price increases linearly during a certain period of ten months. Data of the stock price per month is available, see Table 1.