I had a question I was hoping for some help on:
Let $Y_1$ and $Y_2$ be continuous random variables with joint density function:
$$f(x,y) = \begin{cases} 6(1-y_2) & \text{if $0 <= y_1 <= y_2 <= 1$ } \\ 0 & \text{elsewhere} \end{cases}$$
a) Find E[$Y_1|Y_2 = y_2$]
b) Use the answer you found in part a) to find E[E[$Y_1|Y_2 = y_2$]]
I did the work to find that a) is $$\int_{0}^{1}\frac{6(1-y_2)}{6y_2 - 6y_2^2}\ dy_1 = \dfrac{1}{y_2}$$ (If you wouldn't mind checking that answer as seeing my question relies on part b), which in turn relies on a) ). However, I'm not sure at all how to approach b). Would someone assist me? Thank you so much in advance, I really appreciate it!