Suppose X and Y are random variables with P(X = 1) = P(X = −1) = 1 2 ; P(Y = 1) = P(Y = −1) = 1 2 . Let c = P(X = 1 and Y = 1) (a) Determine the joint distribution of X and Y, Cov(X,Y), and r(X,Y). (b) For what value(s) of c are X and Y independent? For what value(s) of c are X and Y 100% correlated?
a) i) The joint distribution of X and Y, P (x, y) is given by;
x = 1 x = -1 Marginal
y = 1 c 1/2-c 1/2
y = -1 1/2-c c 1/2
Marginal 1/2 1/2 1
ii) Cov (X , Y) = E (XY) - x y, where x and y are the means of x and y respectively.
E (XY) = x y P (X=x , Y = y)
x y
= (1)(1)c + (1)(-1)(1/2 - c) + (-1)(1)(1/2-c) + (-1)(-1)(c)
= c + (-1/2+c) + (-1/2+c) + c
= c - 1/2 + c -1/2 + c + c
= 4c - 1
x = x P (X = x)
x
= 1(1/2) + (-1)(1/2)
= 0
y = y P (Y = y)
y
= 1(1/2) + (-1)(1/2)
= 0
=> Cov (X , Y) = (4c - 1) - (0)(0)
= 4c -1
iii) The correlation coefficient is given by;
r (X , Y) = , where x and y are the standard deviations of X and Y respectively.
Var (X) = E(X2) - [E(X)]2
E(X2) = x2 P (X = x)
x
= (1)2(1/2) + (-1)2(1/2)
= 1/4
=> Var (X) = 1/4 - 02
=> x = = 1/2
Var (Y) = E(Y2) - [E(Y)]2
E(Y2) = y2 P (Y = y)
y
= (1)2(1/2) + (-1)2(1/2)
= 1/4
=> Var (Y) = 1/4 - 02
=> y = = 1/2
r (X , Y) = = = 4 (4c - 1)
b) i) we know that c = P ( X = 1 and Y = 1). For X and Y to be independent, c = P (X = 1) P (Y = 1).
P (X = 1) = 1/2 , P (Y = 1) = 1/2
=> c = 1/2 x 1/2 = 1/4
Therefore, if c = 1/4, then X and Y are independent.
ii) X and Y are said to be 100% correlated if r (x , y) = 1 or r (x , y) = -1.
r (x , y) = 16c - 4 = 1
16c - 4 = 1
16c = 5
c = 5/16
or
r(x , y) = 16c -4 = -1
16c = 3
c = 3/16
Therefore c = 5/16 or 3/16.
Comments