I recently failed to solve a problem relating to conditional expectation. The problem states:
A student is initially outside. He is given the choice with a probability of 0.4 of going to the playground, 0.3 of shopping in the mall and 0.3 of returning home. If he is in the playground, he takes 2 hrs of time and then decides to stay in the playground again or return back home. (he can continue to decide to stay in playground like a recursive process) Similarly, If he is in the mall, he takes 3 hrs of time and then decides to stay in the mall again or return back home. (he can continue to decide to stay in mall like a recursive process) For all cases, it takes 1 hr to return home. what is the expected hours the student was outside home?
Initially, I thought about using Law of Total Expectation here. Like:
\begin{align*} E[X] &= E[X|Y=1]P(Y=1) + E[X|Y=2]P(Y=2) + \\ &\,\,\,E[X|Y=3]P(Y=3) \end{align*}
X = total # hrs outside, Y = choice.
But I don't know how to handle the conditional expectations for each individual event. For instance, in the case where students stay in the playground, it would be
$$E[X|Y=1] = 2 + 1/0.4.$$
Is it correct? Similarly for staying in the mall, it would be
$$E[X|Y=2] = 3 + 1/0.3.$$
Am I correct or am I making some very basic errors? Help would be appreciated.