Example 5.22

Find E[Y] where YXGaussian(X,X2) and XGaussian(μ,σ2).

First find EYX(YX) , which we know is simply X.

Now using that, we find:

E[Y]=EX[EY|X[Y|X]]=EX[X]=μ

No need to even mess with the integrals.