Description Usage Arguments Details Value References Examples
View source: R/cov-estim-lwnonlin.R
Computes the analytical Ledoit-Wolf nonlinear shrinkage estimator of the covariance matrix.
1 | sigma_estim_lwnl(data, bandwidth_speed = NULL, zeromean_log = FALSE)
|
data |
an nxp data matrix. |
bandwidth_speed |
a double, indicating the speed at which the bandwidth vanishes in the number of variables p. Default value is -1/3. |
zeromean_log |
a logical, indicating whether the data matrix has zero means (TRUE) or not (FALSE). Default value is FALSE. |
The Ledoit-Wolf nonlinear shrinkage estimator of the covariance matrix is computed according to \insertCiteledoit2018analytical;textualCovEstim with the following formula:
\hat{Σ}=Δ\hat{Λ}Δ',
where Δ is the matrix with the sample eigenvectors of the data matrix and \hat{Λ} is a diagonal matrix with the sample eigenvalues, shrunk in a nonlinear way. The optimal solution is achieved using a nonparametric variable bandwidth kernel estimation of the limiting spectral density of the sample eigenvalues and its Hilbert transform. The speed at which the bandwidth vanishes in the number of assets is set to -1/3. 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 bandwidth speed.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.