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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Calculate covariance with matrix?

ptc-4307506
1-Newbie

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

Top Tags