cov_estim_ewma: EWMA Covariance Estimation

View source: R/cov_estim_ewma.R

cov_estim_ewmaR Documentation

EWMA Covariance Estimation

Description

Computes the Exponential Moving Average (EWMA) estimator of the covariance matrix.

Usage

cov_estim_ewma(data, lambda = 0.97)

Arguments

data

an nxp data matrix.

lambda

a double for the decay parameter \lambda. Default is 0.97 - the standard for monthly returns according to \insertCiteriskmetrics1996;textualcovestim. If the data consists of daily returns, lambda should be set to 0.94.

Details

The EWMA estimator of the covariance matrix for an nxp data matrix X is computed with the following formula:

\hat{\Sigma}_{t}= (1-\lambda)R_{t}R'_{t} + \lambda\hat{\Sigma}_{t-1},

where R_{t} is the matrix of demeaned returns for the time period t and \hat{\Sigma}_{t-1} is the EWMA covariance estimator for the period t-1.

Value

a list with the following entries

  • a pxp estimated covariance matrix.

  • an estimation specific tuning parameter, here the decay parameter \lambda.

References

\insertAllCited

Examples

data(rets_m)
sigma_ewma <- cov_estim_ewma(rets_m)[[1]]


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