The determinant of a square matrix is a scalar that captures how the transformation scales volume:
- = factor by which scales -dimensional volume
- means the transformation reverses orientation (mirror)
- means the transformation collapses a dimension → is singular (not invertible)
Key properties:
- For triangular matrices: product of diagonal entries
The inverse exists iff , and satisfies .
Solving : if is invertible, . In practice, use Gaussian Elimination (LU decomposition) — never actually compute .
Where this matters in ML:
- Multivariate Gaussians: requires to be invertible → must be positive definite
- Maximum Likelihood Estimation for Gaussians involves in the normalizing constant
- Change of variables in normalizing flows: where is the Jacobian Matrix
- A near-singular matrix (small determinant) means ill-conditioning → numerically unstable gradients
See also: Gaussian Elimination, Eigendecomposition, Positive Definite Matrices