The problem goes as follows:
Let there be an urn with 5 white balls and 5 black balls. First, we draw 4 balls (with return). We define the random variable $Y$ to be the number of white balls we drew in the first step. Secondly, from the balls we drew in the first step, we draw 3 balls (without returning). We define the random variable $X$ to be the number of white balls in the second step. What is $\mathbb E[X]$?
Now I know there is a really simple solution, that we can define a new random variable named $Z$ to be the number of black balls in the second draw, and then we get $X+Z=3$ and from symmetry $\mathbb E[X]= \mathbb E[Z] = \frac{3}{2}$.
What I want to know is where one of the ways I tried to solve is incorrect. Where was my mistake here?
By using the law of total expectation, Let us calculate $\mathbb E[X] = \mathbb E[\mathbb E[X|Y]]$. We also note that $Y\sim Bin(4,\frac{1}{2})$.
Then we get: $$\mathbb E[X] = \sum_{i=0}^4\mathbb E[X|Y=i]P(Y=i) = (1*\frac{1}{4})(4*(\frac{1}{2})^4) + (1*\frac{1}{2} + 2*\frac{1}{2})(\binom{4}{2}*(\frac{1}{2})^4) + (2*\frac{3}{4}+3*\frac{1}{4})(4*(\frac{1}{2})^4) + (3*1)(\frac{1}{2})^4 = \frac{22}{16}$$
I don't think I've made any calculation mistakes, therefore something is probably wrong in the way itself. Thanks!
I didn't check it all but I think that when you compute $E[X | Y = 1] P[Y=1] = \frac{3}{4}( 3*\frac{1}{2^4})$ you have $\frac{3}{4}$ and not $\frac{1}{4}$. Because, picking 3 balls, is the same as not picking a ball, you have $1$ chance over $4$ to not pick the ball, so $3$ over $4$ to pick it.