About
There are some cases to compute determinants of covariance matrix such as marginal log likelihood in multi variate Gaussian distribution. I summarize how to briefly.
Get Determinant thru Cholesky decomposition
The Cholesky decomposition can be used to efficiently calculate the determinant of a matrix. The Cholesky decomposition is an efficient method for dealing with positive definite symmetric matrices. In this decomposition, the matrix is decomposed as follows:
A=LL^TWhere L is a lower triangular matrix. Using the Cholesky decomposition, the determinant can be easily calculated as follows:
det(A) = det(L) det(L^T)Calculating determinants using Cholesky decomposition
If matrix is a positive definite symmetric matrix and can be expressed as by Cholesky decomposition, the determinant is calculated as follows:
det(L)=det(L^T)However, is the transpose of , and the following holds due to the nature of matrix determinants:
Therefore,
det (A) = det(L)^2Furthermore, since the determinant of a triangular matrix is given by the product of its diagonal elements, using the diagonal element of , it can be expressed as follows:
\text{det}(A) = \left( \prod_{i=1}^{n} l_{ii} \right)^2