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