Let $X$ be a random variable that is uniform on $[0, 1]$ and let $X_k$ for $k = 1, 2, ..., n$ be a random sample of $X$. Define the random variable $Y$ and $Z$ as follows: $Y =$ the number of $i$ so that $X_i \geq \frac{1}{2}$ and $Z =$ the number of $i$ so that $X_i \geq \frac{3}{4}$. Determine $cov(Y, Z)$. Are $Y$ and $Z$ independent? Why or why not?
I know that the formula is $cov(Y, Z) = E(YZ) - E(Y)E(Z)$ but I don't know how to find these expected values.
I have no idea how to approach this problem. I have spent hours doing research but I cannot find anything useful. Any assistance is much appreciated.
$Y\sim Bin(n;1/2)$ and $Z\sim Bin(n;1/4)$.
They are NOT independent and it can easy be proved observing, i.e. that
$$P(Y=n)=\frac{1}{2^n}$$
but
$$P(Y=n|Z=n)=1$$
To calculate $E(YZ)$ you can use the Law of total expectation