Skip to main content
1-Visitor
Nov 19, 2012 7:58 PM UTC
Solved

Calculate covariance with matrix?

Hi...

Please someone tell me why I can't calculate covariance with matrix.

I have attach the file where you can see the problem.

Thank you....

Werner_E
Werner_EAnswer
25-Diamond I
Nov 19, 2012 9:53 PM UTC

You have to calculate the product of the two vectors (R.i - E(R.i) first before you multiply with the probability vector P and second you have to vectorize that product, otherwise you get the scalar product and not a vector as result.

19.11.png

See attached

WE

1 reply

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Nov 19, 2012 9:53 PM UTC

You have to calculate the product of the two vectors (R.i - E(R.i) first before you multiply with the probability vector P and second you have to vectorize that product, otherwise you get the scalar product and not a vector as result.

19.11.png

See attached

WE

Translate