Least Squares
@(LinearAlgebra)
Summary
Motivations for Least Squares
- Commonly, in the over-determined system, there is no solution.
- Even if no solution exists, we want to approximately obtain the solution for the over-determined system.
- Least Squares provides the approximiation of the solution for the over-determined system.
What is Least Squares Problem
Given an over-determined system where , and , a least square solution is defined as
- The most import aspect of the least-square problem is that no matter what is selected, the vector will necessarily be in the column space Col .
- Thus, the least square seeks for that makes as the closet point in Col to .
Geometric Interpretation of Least Squares
- Consider such that is the closet point to among all vectors in Col .
- That is, is closer to than for any other .
- To satisfy this, the vector should be orthogonal to Col .
This means should be orthogonal to any vector in Col :
Or equivalently,
Finally, given a least squares problem, , we obtain
- which is called a normal equation.
This can be viewed as a new linear system, , where a square matrix , and .
- If is invertible, then the solution is computed as
Another Derivation of Normal Equation.
Computing derivatives with regard to , we obtain
Thus, if is invertible, then the solution is computed as
is always invertible! So, we can always approximate the solution, .
- 차 방정식이 항상 개의 complex solution 가짐.
- dimensional square matrix has eigen values.
- 중복된 eigen value를 개별로 셀 경우임.
- Matrix의 eigen vector들이 모두 linear independent일 경우, invertible 이며 diagonalizable임.
- Diagonalizable matrix의 eigen value에 0인 경우가 없을시 항상 invertible.
- Symmetric matrix의 경우, eigne value는 real number이며, eigen vector들은 모두 orthgonal임.
- Symmetric matrix의 경우, 항상 diagonalizable임.
- 는 항상 symmetric matrix임.
- 는 최소한 positive semi-definite이며, 만일 0인 eigen value가 없을시 positive definite임.
- Symmetric matrix가 positive definite인 경우, eigen value들은 모두 양수임. 즉 invertible하다.
- Symmetric matrix가 positive semi-definite인 경우, eigen value들은 0또는 양수임.
Orthogonal Projection Perspective
In the case of invertible , consider the orthogonal projecton of onto Col as
Suppose that Col is a 2-dimensional subspace , consider a transformation of orthogonal projection of , given orthonomal basis of Col :
When has orthonomal columns:
Thus,