View source: R/cov_help_funcs.R
sqrt_root_mat_calc | R Documentation |
Calculates the squared root of a matrix.
sqrt_root_mat_calc(mat)
mat |
a positive-definite pxp matrix. |
The squared root of a positive-definite symmetric matrix X is calculated with the following formula:
\sqrt{X}=\Delta \sqrt{\Lambda}\Delta^{-1},
where \Delta
is the matrix of eigenvectors and
\sqrt{\Lambda}
is a diagonal matrix with the squared roots of the eigenvalues of X.
a pxp matrix, the squared root of mat.
data(rets_m)
sigma_ml <- cov_estim_wrapper2(rets_m, "ML")
sigma_ml_sqrt_root <- sqrt_root_mat_calc(sigma_ml)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.