Final answer:
To show the equation E[h(X)Y] = E[h(X)E(Y|X)], we need to consider the conditional expectation E(h(X)Y|X = x) and apply the law of iterated expectations.
Step-by-step explanation:
To show the equation E[h(X)Y] = E[h(X)E(Y|X)], we need to consider the conditional expectation E(h(X)Y|X = x) and apply the law of iterated expectations.
- Start by considering E(h(X)Y|X = x), which represents the conditional expectation of h(X)Y given X = x. This can be written as E(Y|X = x) multiplied by h(x) since h(X) does not depend on X = x.
- Then, take the expectation on both sides of the equation above, resulting in E[E(h(X)Y|X = x)] = E[h(X)E(Y|X)].
- By applying the law of iterated expectations, E[E(h(X)Y|X = x)] = E[h(X)Y], and the equation becomes E[h(X)Y] = E[h(X)E(Y|X)].