Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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....
Solved! Go to Solution.
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.

See attached
WE
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.

See attached
WE
