I have two random variables Y and X and Y is dependent of X, though X is not the only source of variability of Y. With fixed X=x, Y(x) follows gaussian law. X also follows gaussian law. In what cases can I move from E[ Y(X) ] to E[ Y(E(X))] someone has any idea? is there a text You recomend on the topic? thanks..