sigma_estim_lwnl: Ledoit-Wolf Covariance Estimation (Nonlinear Shrinkage)

Description Usage Arguments Details Value References Examples

View source: R/cov-estim-lwnonlin.R

Description

Computes the analytical Ledoit-Wolf nonlinear shrinkage estimator of the covariance matrix.

Usage

1
sigma_estim_lwnl(data, bandwidth_speed = NULL, zeromean_log = FALSE)

Arguments

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.

Details

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.

Value

a list with the following entries

References

\insertAllCited

Examples

1
2
3
data(sp200)
sp_rets <- sp200[,-1]
sigma_lwnl <- sigma_estim_lwnl(sp_rets)[[1]]

antshi/CovEstim documentation built on Nov. 13, 2020, 2:25 p.m.