Cholesky factorization
Positive de nite matrices
1/6
Cholesky decomposition
Let a real matrix A is
symmetric: AT = A
positive de nite: xT Ax > 0 ∀x ∈ Rm
Then
A = LLT
where L is a lower triangular matrix.
2/6
Cholesky decomposition
A = LLT
l11 0 0 ··· 0 l11 l21 l31 ··· lm1
l21 l22 0 ··· 0 0 l22 l32 ··· lm2
··· 0 ··· lm3
= l31 l32 l33 0 0 l33
.. .. .. .. .. .. .. ..
. . . . . . . .
lm1 lm2 lm3 · · · lmm 0 0 0 ··· lmm
1st row of A
2
a11 = l11
a12 = l11 l21 , ··· , a1k = l11 lk1 , k = 2, . . . , m
NB: The square root is OK because A is positive de nite.
3/6
Cholesky decomposition
A = LLT
l11 0 0 ··· 0 l11 l21 l31 ··· lm1
l21 l22 0 ··· 0 0 l22 l32 ··· lm2
··· 0 ··· lm3
= l31 l32 l33 0 0 l33
.. .. .. .. .. .. .. ..
. . . . . . . .
lm1 lm2 lm3 · · · lmm 0 0 0 ··· lmm
2nd row of A
a21 = l21 l11
2
a22 = l21 2
+ l22 , ··· , a2k = l21 lk1 + l22 lk2 , k = 2, . . . , m
NB: The square root is OK because A is positive de nite.
3/6
Cholesky decomposition
Compared to a general LU factorization, Cholesky decomposition:
▶ requires 1/2 memory
▶ requires ∼ 1/2 less operations
▶ has better stability, and does not require pivoting
▶ fails if A is not PD.
4/6
Systems of linear equations
If A is symmetric and positive de nite, then
Ax = b
is solved via A = LLT , and
Ly = b (forward substitution)
LT x = y (back substitution)
5/6
Applications of Cholesky decomposition
Quantum mechanics ( )∗
Observables are represented by Hermitian operators. ( AT = A)
6/6
Applications of Cholesky decomposition
Numerical optimization
The Hessian matrix of a multivariate function F (x)
∂2F
Hjk =
∂xj ∂xk
is symmetric and is in some cases positive (semi-)de nite.
6/6
Applications of Cholesky decomposition
Monte Carlo simulations
Generation of correlated Gaussian random variables: decompose
the correlation matrix C = LLT , generate a vector of uncorrelated
values x, then
z = Lx
has the correlation matrix C.
6/6