cov_estim_lwnl: Ledoit-Wolf Covariance Estimation (Nonlinear Shrinkage)

View source: R/cov_estim_lwnl.R

cov_estim_lwnlR Documentation

Ledoit-Wolf Covariance Estimation (Nonlinear Shrinkage)

Description

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

Usage

cov_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{\Sigma}=\Delta\hat{\Lambda}\Delta',

where \Delta is the matrix with the sample eigenvectors of the data matrix and \hat{\Lambda} 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

  • a pxp estimated covariance matrix.

  • an estimation specific tuning parameter, here the bandwidth speed.

References

\insertAllCited

Examples

data(rets_m)
sigma_lwnl <- cov_estim_lwnl(rets_m)[[1]]


antshi/CovEstim documentation built on June 10, 2025, 3:11 a.m.