I'm struggling with this problem that I need to solve for my paper about bingo. I want to do something that I have not learn yet in the course. I have looked for it (iterated expectation?) on the internet, but I couldn't find a solution for the problem that I have right now.
The probability of what you win is dependent of how many cards that is bought. Cards can be bought in the beginning and during the break. There is a maximum on amount of cards that can be bought and that is in this case 120.
Define the random variables $Z$, $X$~bin$(120,p_1)$ and $Y|X=x$~bin$(120-x,p_2)$ as: \begin{align} Z=\text{amount of money that you can win in one round after the break}\end{align} \begin{align} X=\text{amount of cards that is bought in the beginning} \end{align} \begin{align} Y=\text{amount of cards that is bought during the break} \end{align}
It may be interesting to know what the expectation of $Z$ is for given $X=x, Y=y$: \begin{align} \mathbb{E}[Z|X=x, Y=y]=\dfrac{25k}{k+x+y}, \hspace{10pt} k= \text{your cards} \end{align} What I tried is to write it as: \begin{align} \mathbb{E}[Z]=\mathbb{E}[\mathbb{E}[Z|Y]]=\mathbb{E}[\mathbb{E}[\mathbb{E}[(Z|Y)|X]]]\end{align} I don't know how to calculate this. I have seen something like $\mathbb{E}[Z|X,Y]$ on internet, but I don't know if that is what I need for this, since this is not covered in the course.
I do not need the elaborated calculations per se, but I want to know what and how I should calculate to get the desired expected value.
I appreciate your help! Thanks!