V-Lab
V-Lab

Documentation>Correlation Analysis>EWMA Covariance

Definition

Consider n time series of returns and make the usual assumption that returns are serially uncorrelated. Then, we can define a vector of zero-mean white noises εt=rt-μ, where rt is the n1 vector of returns and μ is the vector of expected returns.

Despite being serially uncorrelated, the returns may present contemporaneous correlation. That is: t 𝔼t-1 rt-μ rt-μ ' may not be a diagonal matrix. Moreover, this contemporaneous variance may be time- varying, depending on past information. The Exponentially Weighted Moving Average (EWMA) covariance model assumes a specific parametric form for this conditional covariance. More specifically, we say that rt-μ~EWMAλ if:t+1=1-λrt-μrt-μ'+λtV-Lab uses λ=0.94, the parameter suggested by RiskMetrics for daily returns, and μ is the sample average of the returns.

Correlations

Notice that the elements from the main diagonal of t give us conditional variances of the returns, i.e. ti,i is the conditional variance of the return rti. Analogously, the elements outside of the main diagonal give us conditional covariances, i.e. ti,j is the conditional covariance between the returns rti and rtj. Hence, we can easily back out the conditional correlations,Γti,jti,jti,itj,jThis is what is plotted by V-Lab.

More concisely, we can define the whole correlation matrix by:ΓtDt-1tDt-1where Dt is a matrix such that, i,j 1...n :Dti,jδi,jti,jwhere δi,j is the Kronecker delta, i.e. δi,j=1 if i=j and δi,j=0 otherwise. That is, Dt is a matrix with with all elements outside of the main diagonal set to zero, and the main diagonal set to the conditional volatilities, i.e. the elements in the main diagonal are equal to the square root of the elements in the main diagonal of t.

Then, Γti,j is again the correlation between rti and rtj. Note that Γti,j=1, i 1...n .

Relation to The GARCH(1,1) Model

Notice that the EWMA is actually a multivariate version of an IGARCH11 model, which is a particular case of the GARCH11 model.

Notice also that after iterating the conditional variance expression, we obtain, if λ01:t+1=1-λεtεt'+λ1-λεt-1εt-1'+λ21-λεt-2εt-2'+...=1-λεtεt'+λεt-1εt-1'+λ2εt-2εt-2'+...=εtεt'+λεt-1εt-1'+λ2εt-2εt-2'+...11-λ=εtεt'+λεt-1εt-1'+λ2εt-2εt-2'+...1+λ+λ2+...which is a weighted average, with weights decaying exponentially at rate λ, hence the name of the model, Exponentially Weighted Moving Average.

References

Engle, R. F., 2009. Anticipating Correlations: A New Paradigm for Risk Management. Princeton University Press.

Tsay, R. S., 2005. Analysis of Financial Time Series — 2nd Ed. Wiley-Interscience.