7.6 Other matrix decompositions
7.6.1 LU Factorization
We can factorize any square matrix into a lower and upper triangle matrix and :
We might need to reorder the rows at each iteration so that the first element of is non-zero: if then either or is singular.
where is a permutation matrix, i.e. a square binary matrix where means permuting row with row .
7.6.2 QR Decomposition
Suppose we have a set of linearly independent basis vectors. We want to find a series of orthonormal vectors that span the successive subspace of
We have:
and thus:
with and
7.6.3 Cholesky decomposition
Any symmetric positive definite matrix can be decomposed as where is a lower triangular with real, positive diagonal elements. The complexity is .
7.6.3.1 Application: sampling from an MVN
Let . We can easily sample from since it requires sampling from separate 1d Gaussians.
Let , we then set .
We can check that: