PhilBoileau / cvCovEst

An R package for assumption-lean covariance matrix estimation in high dimensions
https://philboileau.github.io/cvCovEst/
Other
13 stars 4 forks source link

Scaled Matrix Frobenius Loss #35

Closed PhilBoileau closed 3 years ago

PhilBoileau commented 3 years ago

This PR implements cvScaledMatrixFrobeniusLoss, a new matrix-based loss function that scales squared error calculations associated with each entry of a covariance matrix estimate by the sample variances of the entry's row and column variables. This is particularly useful if the features of your dataset are of different magnitude. It's approximately equivalent to estimating the correlation matrix, but without the need to re-scale the estimated correlation matrix to be an estimated covariance matrix.