Can someone please check my answer?
Let X be a random variable with X ∼ Geom(1/3). Let Y be another random variable
with Y ∼ Bin(n, 1/4) where n is the value taken by the random variable X.
1. Using the law of total probability, or otherwise, compute the expectation of Y. I got 3n/8
2. Using the law of total probability, or otherwise, compute the expectation of the product XY and hence compute the covariance of the random variables X and Y .
I got E(XY)= 9n/8 and Cov(x,y)=0