cov_estim_lwone | R Documentation |
Computes the Ledoit-Wolf linear shrinkage estimator of the covariance matrix towards the one-parameter matrix.
cov_estim_lwone(data, shrink_int = NULL, zeromean_log = FALSE)
data |
an nxp data matrix. |
shrink_int |
a double, indicating the shrinkage intensity. Default is the optimal shrinkage intensity as in \insertCiteledoit2004oneparam;textualcovestim. |
zeromean_log |
a logical, indicating whether the data matrix has zero means (TRUE) or not (FALSE). Default value is FALSE. |
The Ledoit-Wolf linear shrinkage estimator of the covariance matrix towards the diagonal matrix of equal variances is calculated with the following formula:
\hat{\Sigma}= s\Sigma_{T} + (1-s)\Sigma,
where \Sigma
is the sample covariance matrix, s is the user-supplied or optimal shrinkage intensity and
\Sigma_{T}
is a diagonal matrix with the average sample variance \bar{\sigma}^2
on the diagonal.
This covariance estimator assumes a zero correlation and equal variances
as the underlying covariance structure of the data.
A corresponding MATLAB code for the estimator can be accessed under
https://www.econ.uzh.ch/en/people/faculty/wolf/publications.html.
a list with the following entries
a pxp estimated covariance matrix.
an estimation specific tuning parameter, here the shrinkage intensity.
data(rets_m)
sigma_lwone <- cov_estim_lwone(rets_m)[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.