Cholesky and Positive-Definiteness
The square root of a matrix, when one exists. Push the correlation too far and the factorisation fails — which is the test.
Cholesky and Positive-Definiteness
This module needs JavaScript: the numbers are computed in the page rather than recorded.
Worth knowing
C = L L' with L lower triangular. It is the closest thing a matrix has to a square root.Overview
Positive definiteness
A real symmetric matrix A is positive-definite when xᵀAx > 0 for every nonzero x. Geometrically, its quadratic form is an upward bowl in every direction. Positive-definiteness implies positive eigenvalues and makes many optimisation and probability calculations well behaved.
The Cholesky factorisation writes A = LLᵀ, where L is lower triangular with positive diagonal entries. For a 2 × 2 example, A = [[4, 2], [2, 3]] factors as L = [[2, 0], [1, √2]], since LLᵀ = A. Solving Ax = b then becomes two triangular solves rather than a general matrix solve.
Positive definiteness
A real symmetric matrix A is positive-definite when xᵀAx > 0 for every nonzero x. Geometrically, its quadratic form is an upward bowl in every direction. Positive-definiteness implies positive eigenvalues and makes many optimisation and probability calculations well behaved.
The Cholesky factorisation writes A = LLᵀ, where L is lower triangular with positive diagonal entries. For a 2 × 2 example, A = [[4, 2], [2, 3]] factors as L = [[2, 0], [1, √2]], since LLᵀ = A. Solving Ax = b then becomes two triangular solves rather than a general matrix solve.