Cholesky Decomposition for Least Squares Method
Algorithm
Given and vector such that and the least-squares solution of is denoted as .
Step 1.
Multiply both sides of the given equation by to form the normal equation .
The solution of the normal equation is the least-squares solution of the original equation, hence, solving for fulfills our requirement.
Step 2.
Calculate to obtain .
Step 3. Cholesky Decomposition
Find a lower triangular matrix that satisfies to derive .
Step 4. Forward Substitution
Given , assume then
Since is a lower triangular matrix, the solution of the equation for is found using the forward substitution method.
Step 5. Backward Substitution
Having found and with being an upper triangular matrix, the solution of the equation for is found using the backward substitution method.
Explanation
The Cholesky decomposition originally had a strong precondition that the matrix to be decomposed must be a positive definite matrix. The key in this method lies in the trick of constructing the normal equation, which forcibly satisfies that stringent condition. Of course, this trick requires a guarantee that is positive definite, and proving this is not too difficult.
Theorem
For the matrix ,
Proof
For any vector ,
thus, . Assuming that the inverse of does not exist implies the existence of satisfying . Multiplying both sides of the equation by on the left yields , and from the definition of norm, . This means that the column vectors of are linearly dependent, thus .
Conversely, assuming implies the existence of satisfying .
Multiplying both sides of the equation by on the left yields , and does not have an inverse. Since ,
therefore,
■