Professional Documents
Culture Documents
L.1ecture07 Cholesky Decomposition
L.1ecture07 Cholesky Decomposition
Martin Licht
UC San Diego
Specialized Algorithms
Symmetric Positive Definite Matrices
A = At .
At = (Mt M)t = Mt M = A
Example
1 5 5 1 0
1 , 10 , 1 5 1
1 0.17 0 1 5
Symmetric Positive Definite Matrices
Example
1 1 1 1 1
1 1 1 1 = 1 2 1
1 1 1 1 2
2 2 3 1 4 6 2
3 2 2 2 = 6 13 5
1 2 1 1 2 5 6
√ √ −1
2 q 2 √ 0
−1 q2 q 2 −1 0
√ 3
3
3 = −1
2 q2
2 − 2
2 −1
0 − 32 √2 √2 0 −1 2
3 3
Symmetric Positive Definite Matrices
Specialized Algorithms
Cholesky Decomposition
Lemma
Suppose that A is symmetric positive definite. Then A satisfies
the principle minor criterion.
Proof.
Let A be symmetric positive definite n × n matrix. We want to
show that all principle minors Ak , 1 ≤ k ≤ n are invertible.
Suppose that there exists a principle minor Ak ∈ Rk×k with
1 ≤ k ≤ n that is not invertible. So there exists v ∈ Rk with v 6= 0
v ∈ Rn be the extension of v to an n vector. We
but Ak v = 0. Let e
v 6= 0. We get
have e
0 < he
v, Ae
vi = hv, Ak vi = hv, 0i = 0.
Corollary
The LU decomposition without pivoting exists for symmetric
definite positive matrices.
Cholesky Decomposition
Lemma
The LU decomposition of a symmetric positive definite matrix
has U with positive diagonal entries.
Proof.
Let A be s.p.d. and let L, U ∈ Rn×n be the matrices from its LU
decomposition. We want to show that Uii > 0 for all 1 ≤ i ≤ n.
Suppose that instead there exists 1 ≤ i ≤ n with Uii ≤ 0. Then
Uii = 0 cannot hold because U is invertible, so Uii < 0 must hold.
Let v ∈ Rn be the solution to Lt v = ei , and then let w := Uv. We
obtain v by backward substitution and find that vi = 1 and that
vj = 0 for all j > i. Hence wi = uii vi = uii .
0 < hv, Avi = hv, LUvi = hLt v, Uvi = hei , wi = wi = uii < 0
R := D−1 U, S := LD.
We get that
A = LU = LDD−1 U = SR.
SR = A = At = Rt St .
St = R−t SR.
Suppose that T has any non-zero entry below the diagonal, say,
in row i and column j. Let i be so small that all entries to the left
of ti,j are zero.
Theorem
Every symmetric positive definite matrix has a Cholesky
decomposition.
Theorem
A matrix has a Cholesky decomposition if and only if it is
symmetric positive definite.
Cholesky Decomposition
that is,
1 0 0 4 2 0 4 2 0
1/2 1 0 0 9 −3 = 2 10 −3
0 −1/3 1 0 0 4 0 −3 5
Specialized Algorithms
Note that we have divided the i-th row of U by the square root of
its i-th diagonal entry, and we have multiplied the i-th column of
L by the corresponding entry.
Symmetric Positive Definite Matrices
Specialized Algorithms
Specialized Algorithms
From A = Rt R,
r1,1 r1,1 r1,2 r1,3 . . . r1,n
r1,2 r2,2 r2,2 r2,3 . . . r2,n
A = r1,3 r2,3 r3,3 r3,3 . . . r3,n
.
.. .. .. .. .. ..
. . . . . .
r1,n r2,n r3,n . . . rn,n rn,n
This formula for rii only depends on entries of R above rii in the
i-th column of R.
Specialized Algorithms
1: CholeskyDecomposition
2: for j = 1, n do
q2, . . . ,P
j−1 2
3: rj,j = aj,j − k=1 rk,j
4: for i = j + 1, j + 2,P. . . , n do
−1 j−1
5: rj,i = rj,j ai,j − k=1 rk,i rk,j
6: end for
7: end for
Specialized Algorithms
1: CholeskyDecomposition
2: for i = 1, 2, . . . , n do
3: for j = 1, 2,. . . , i − 1 do
−1 Pj−1
4: rj,i = rj,j ai,j − k=1 rk,i rk,j
5: end for q
ri,i = ai,i − i−1 2
P
6: k=1 rk,i
7: end for