variance-covariance matrix EWMA

2 次查看(过去 30 天)
Michela
Michela 2016-4-15
Hi, I have used the code tsmovavg to calculate the exponentially weighted moving average, but now I need to calculate its variance covariance matrix. Is there somone that can explain me how I can do it? By considering, also, that my variable is a 143*14 matrix, then I need that the variance covariance matrix will be a 14*14*143. Thank you for your help.

回答(1 个)

charles alexander
charles alexander 2020-11-21
编辑:charles alexander 2020-11-21
it is simple, the matrix is distributive.
a(bk)=ab(K). the variable k is 14.
i suggest this matrix;
{a1n a2n a10} by {a6 a10} by {1 1}
{a1 a2 a5} {1 1} {1 sigma 50}.
these reduces the matrix to an equivalent cofactors to determine the
associated elements.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by