diagonalloading
Diagonal loading, sometimes written as diagonalloading, is a numerical technique used to improve the numerical properties of a matrix by adding a multiple of the identity matrix to it. The approach is widely used across statistics, signal processing, finance, and numerical linear algebra to stabilize computations and enforce positive definiteness.
Mathematically, given a square matrix A, diagonal loading creates A_λ = A + λI, with λ ≥ 0 and I
Common uses include stabilizing covariance matrices S by S + γI, implementing ridge-like regularization (X^TX + λI) in
Choosing λ involves a bias–variance trade-off: larger λ increases numerical stability and reduces variance but introduces bias in