I have troubles to understand the solution to the following task:
$X,Y$ are two independent exponential r.v. with parameters $\lambda,\mu>0$ and $T=\min(X,Y)$. Comput $\mathbb{E}(T\mid X)$
Solution: For $f:\mathbb{R}\to \mathbb{R}$ measurable and bounded we have $$\mathbb{E}(Tf(X))=\mathbb{E}(Xf(X)\mathbb{1}_{\{Y>X\}}+Yf(X)\mathbb{1}_{\{Y\leq X\}})$$ And because of independence: $$\stackrel{(*)}{=}\int\limits_0^\infty(xP(Y>x)+\mathbb{E}(Y\mathbb{1}_{\{Y\leq x\}}))f(x)P_X(\mathrm{d}x)$$ $$=\int\limits_0^\infty\left(xe^{-\mu x}+\frac{1}{\mu}(1-e^{-\mu x}(1+\mu x))\right)f(x)P_X(\mathrm{d}x)=\mathbb{E}(\frac{1}{\mu}(1-e^{-\mu X})f(X))$$ hence $$\mathbb{E}(T\mid X)=\frac{1-e^{-\mu X}}{\mu}\quad a.s.$$
I have 2 little questions:
- For me the calculation steps to get $(*)$ looks like this $$\mathbb{E}(Xf(X)\mathbb{1}_{\{Y>X\}}+Yf(X)\mathbb{1}_{\{Y\leq X\}})=\mathbb{E}(\mathbb{1}_{\{Y>X\}})\mathbb{E}(Xf(X))+\mathbb{E}(Y\mathbb{1}_{\{Y\leq X\}})\mathbb{E}(f(X))$$ $$=P(Y>X)\mathbb{E}(Xf(X))+\mathbb{E}\left(\mathbb{E}(Y\mathbb{1}_{\{Y\leq X\}})f(X)\right)$$ $$=\mathbb{E}\left((P(Y>X)X+\mathbb{E}(Y\mathbb{1}_{\{Y\leq X\}}))f(X)\right)$$
Is this correct?
- If the above calculations are correct, then why is $$\mathbb{E}(Xf(X)\mathbb{1}_{\{Y>X\}})=\mathbb{E}(\mathbb{1}_{\{Y>X\}})\mathbb{E}(Xf(X))$$ allowed? Wouldn't that imply that $\mathbb{1}_{\{Y>X\}}$ and $X$ are independent?
Thank you very much!