Least Squares - Linear Algebra

Card 1 of 56

0
Didn't Know
Knew It
0
1 of 2019 left
Question

Let , and , find the least squares solution for a linear line.

Tap to reveal answer

Answer

The equation for least squares solution for a linear fit looks as follows.

Recall the formula for method of least squares.

Remember when setting up the A matrix, that we have to fill one column full of ones.

To make things simpler, lets make , and

Now we need to solve for the inverse, we can do this simply by doing the following. We flip the sign on the off diagonal, and change the spots on the main diagonal, then we multiply by .

← Didn't Know|Knew It →