In linear algebra, the Cholesky decomposition or Cholesky factorization (pronounced shə-LES-kee) is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose, which is useful for efficient numerical solutions, e.g., Monte Carlo simulations. It was discovered by André-Louis Cholesky for real matrices, and posthumously published in 1924. When it is applicable, the Cholesky decomposition is roughly twice as efficient as the LU decomposition for solving systems of linear equations.
Statement The Cholesky decomposition of a Hermitian positive-definite matrix A is a decomposition of the form 𝐀=𝐋𝐋∗, where L is a lower triangular matrix with real and positive diagonal entries, and L* denotes the conjugate transpose of L. Every Hermitian positive-definite matrix (and thus also every real symmetric positive-definite matrix) has a Cholesky decomposition and the lower triangular matrix is unique if we impose the diagonal to be strictly positive. The converse holds trivially: if A can be written as LL* for some invertible L, lower triangular or otherwise, then A is Hermitian and positive definite. When A is a real matrix (hence symmetric positive-definite), the factorization may be written 𝐀=𝐋𝐋𝖳, where L is a real lower triangular matrix with positive diagonal entries.
Positive semidefinite matrices If a Hermitian matrix A is only positive semidefinite, instead of positive definite, then it still has a decomposition of the form A = LL* where the diagonal entries of L are allowed to be zero. The decomposition need not be unique, for example: [0001]=𝐋𝐋∗,𝐋=[00cosθsinθ], for any θ. However, if the rank of A is r, then there is a unique lower triangular L with exactly r positive diagonal elements and n − r columns containing all zeroes. Alternatively, the decomposition can be made unique when a pivoting choice is fixed. Formally, if A is an n × n positive semidefinite matrix of rank r, then there is at least one permutation matrix P such that P A PT has a unique decomposition of the form P A PT = L L* with 𝐋=[𝐋10𝐋20], where L1 is an r × r lower triangular matrix with positive diagonal.
LDL decomposition A closely related variant of the classical Cholesky decomposition is the LDL decomposition, also known as Bunch-Kaufman factorization 𝐀=𝐋𝐃𝐋∗, where L is a lower unit triangular (unitriangular) matrix, and D is a diagonal matrix. That is, the diagonal elements of L are required to be 1 at the cost of introducing an additional diagonal matrix D in the decomposition. The main advantage is that the LDL decomposition can be computed and used with essentially the same algorithms, but avoids extracting square roots. For this reason, the LDL decomposition is often called the square-root-free Cholesky decomposition. For real matrices, the factorization has the form A = LDLT and is often referred to as LDLT decomposition (or LDLT decomposition, or LDL′). It is reminiscent of the eigendecomposition of real symmetric matrices, A = QΛQT, but is quite different in practice because Λ and D are not similar matrices. The LDL decomposition is related to the classical Cholesky decomposition of the form LL* as follows: 𝐀=𝐋𝐃𝐋∗=𝐋𝐃1/2(𝐃1/2)∗𝐋∗=𝐋𝐃1/2(𝐋𝐃1/2)∗. Conversely, given the classical Cholesky decomposition 𝐀=𝐂𝐂∗ of a positive definite matrix, if S is a diagonal matrix that contains the main diagonal of 𝐂, then A can be decomposed as 𝐋𝐃𝐋∗ where 𝐋=𝐂𝐒−1 (this rescales each column to make diagonal elements 1), 𝐃=𝐒𝐒∗. If A is positive definite then the diagonal elements of D are all positive. For positive semidefinite A, an 𝐋𝐃𝐋∗ decomposition exists where the number of non-zero elements on the diagonal D is exactly the rank of A. Some indefinite matrices for which no Cholesky decomposition exists have an LDL decomposition with negative entries in D: it suffices that the first n − 1 leading principal minors of A are non-singular.
Example Here is the Cholesky decomposition of a symmetric real matrix: (412−161237−43−16−4398)=(200610−853)(26−8015003). And here is its LDLT decomposition: (412−161237−43−16−4398)=(100310−451)(400010009)(13−4015001).
Geometric interpretation
The Cholesky decomposition is equivalent to a particular choice of conjugate axes of an ellipsoid. In detail, let the ellipsoid be defined as yTAy=1, then by definition, a set of vectors v1,...,vn are conjugate axes of the ellipsoid iff viTAvj=δij. Then, the ellipsoid is precisely{∑ixivi:xTx=1}=f(𝕊n)where f maps the basis vector ei↦vi, and 𝕊n is the unit sphere in n dimensions. That is, the ellipsoid is a linear image of the unit sphere. Define the matrix V:=[v1|v2|⋯|vn], then viTAvj=δij is equivalent to VTAV=I. Different choices of the conjugate axes correspond to different decompositions. The Cholesky decomposition corresponds to choosing v1 to be parallel to the first axis, v2 to be within the plane spanned by the first two axes, and so on. This makes V an upper-triangular matrix. Then, there is A=LLT, where L=(V−1)T is lower-triangular. Similarly, principal component analysis corresponds to choosing v1,...,vn to be perpendicular. Then, let λ=1/‖vi‖2 and Σ=diag(λ1,...,λn), and there is V=UΣ−1/2 where U is an orthogonal matrix. This then yields A=UΣUT.
Applications
Numerical solution of system of linear equations The Cholesky decomposition is mainly used for the numerical solution of linear equations 𝐀𝐱=𝐛. If A is symmetric and positive definite, then 𝐀𝐱=𝐛 can be solved by first computing the Cholesky decomposition 𝐀=𝐋𝐋∗, then solving 𝐋𝐲=𝐛 for y by forward substitution, and finally solving 𝐋∗𝐱=𝐲 for x by back substitution. An alternative way to eliminate taking square roots in the 𝐋𝐋∗ decomposition is to compute the LDL decomposition 𝐀=𝐋𝐃𝐋∗, then solving 𝐋𝐲=𝐛 for y, and finally solving 𝐃𝐋∗𝐱=𝐲. For linear systems that can be put into symmetric form, the Cholesky decomposition (or its LDL variant) is the method of choice, for superior efficiency and numerical stability. Compared to the LU decomposition, it is roughly twice as efficient.
… excerpt ends here. Continue reading the full article.

