Class 03/19/21

Gram Schmidt process

You can find orthogonal basis from any basis

If you define

as

Where a projection is:

Least Squares

Suppose is not in the , has no solution.

However, the projection: is called a least-squares solution of .

This is inherently the projection onto a space, and then finding the vector that is closest to that vector outside of the column space.

Using the Normal Equations to Solve

is in the

is in

Normal equations:

Example

Find a least squares solution of

Goes to:

Ans:

Find

Multiply it by A:

Error

The length of the projection vector is error amount.