Q.7.29

Question

Suppose that X and Y are both Bernoulli random variables. Show that X and Y are independent if and only if Cov(X, Y) = 0. 

Step-by-Step Solution

Verified
Answer

It is clear from the calculation that the X and Y are independent Variables.

1Step 1: Given information

X and Y are both Bernoulli random variables.

2Step 2: Solution

First we need to calculate the Cov(X,Y)=E(XY)E(X)E(Y)

Suppose X and Y are independent

Cov(X,Y)=E(XY)E(X)E(Y)

={0×0×P(X=0,Y=0)}+{1×1×P(X=1,Y=1)}

[{0×P(X=0)}+{1×P(X=1)}][{0×P(Y=0)}+{1×P(Y=1)}]

=P(X=1,Y=1)P(X=0)P(Y=1)

=P(X=0)P(Y=1)P(X=0)P(Y=1)

=0

Therefore X and Y are independent

3Step 3: Solution

Now let as consider,

Cov(X,Y)=0

E(XY)=E(X)E(Y)

P(X=1,Y=1)=P(X=0)P(Y=1)

So, X and Y are independent.

4Step 4: Final answer

It is clear that the X and Y are independent Variables.