cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Calculate covariance with matrix?

ptc-4307506
1-Visitor

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....

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ptc-4307506)

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

View solution in original post

1 REPLY 1
Werner_E
25-Diamond I
(To:ptc-4307506)

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

Announcements

Top Tags