If I'm given a joint distribution of 2 random variables say A and B, how would I find the covariance of A,B?
(I have known to calculate E_X, E_Y, E_XY and apply formula, what I want to find library that calculate directly Cov(X,Y) without E_X,E_Y..).
Joint distribution:
X|Y 1 3 5
1 0.1 0.2 0.3
4 0.2 0.05 0.15