Skip to content
Prev 324609 / 398503 Next

Multivariate EWMA covariance estimator?

On 02-06-2013, at 19:45, Neuman Co <neumancohu at gmail.com> wrote:

            
I'm not going to do homework.
You have to scale the weights. So you need to scale lambda^(a-1) by their sum for a=1:100 if I understand correctly.
Exactly that: you don't have to initialize dummy2.
You are assigning a value to dummy2 for each value of a.
You are thus either creating a new object dummy2  or overwriting any existing object dummy2 and thus destroying a previous value.
You are not using it on the righthand side of an expression. You are assigning to it.
You only need to initialize dummy2 if you have an expression involving dummy2 on the righthand side e.g.  dummy2 <- dummy2 + ??

Berend