I have the following tableau
x: -1 0 1 total
y: 1 0 1/8 3/8 1/2
2 3/8 1/8 0 1/2
total: 3/8 2/8 3/8 1
*)Find Cov(x,y) and Var(2x-y)
My work: I use Cov(x,y)= E(XY)-E(X)E(Y)
I have
E(x)= 0
E(Y)= 3/2
E(X^2)= 3/4
E(Y^2)= 5/2
After plug the values I have:
Cov(xy)=-15/8
And,
var(2x-y)= 4 var(x) + var(y) - 2*2 cov(xy)
Var(2x-y)= 10.75
Question: I solve the exercise ok, or I have some problem. I want to check. Thanks!