Least squares approximation (deriving the Pseudo Inverse)
Video
Table of Contents:
Derivation of the Pseudo Inverse using the Least Squares Approximation
Introduction to the Problem
- We have a matrix equation
, where is an matrix, is a vector in , and is a vector in .
- The problem arises when there is no solution for
, which happens when is not a linear combination of the column vectors of , i.e., is not in the column space of .
Step 1: Introducing Least Squares Approximation (Minimizing the Distance)
To find an approximate solution, we introduce the concept of the least squares approximation:
- The goal is to find a vector
such that is as close as possible to . - This closeness is quantified by minimizing the length of the vector
. - The minimization process involves finding the vector
that minimizes the squared length of . - Mathematically, this is expressed as minimizing
, which is the sum of the squared differences of the elements in the vectors and .
Step 2: Projection onto Column Space
- The closest vector to
in the column space of is the projection of onto this space. - We seek
such that is this projection, which will minimize the distance between and .
Question: Is there an easier way to find
Answer: Yes, there is! We can use the Orthogonal Complement and Null Space
Step 3: Orthogonal Complement and Null Space
- It is shown that
is orthogonal to the column space of .
- Therefore,
is a member of the orthogonal complement of the column space of , which is also the null space of .
Step 4: Deriving the Least Squares Solution
- Multiplying both sides of the equation
by gives . - Solving this for
gives the least squares solution. The equation always has a solution, which is the best approximation for the original problem.
Conclusion
- The least squares solution
is the best possible approximation in the least squares sense for the equation when there is no exact solution. - This approach minimizes the error in the approximation, making
as close as possible to .
More Content from Khan Academy
For more content, visit the official page