Skip to content

Conditional Expectation and Independence

Proposition

Let E∣Y∣<∞\mathbb{E}|Y|<\infty. If XX and YY are independent (X⊥YX\perp Y), then E[Y∣X]=E[Y]\mathbb{E}[Y\mid X]=\mathbb{E}[Y] almost surely.


Interpretation

If the response YY is independent of the observed variable XX, observing XX cannot change the expected value of YY: the best prediction of YY given XX is the constant EY\mathbb{E}Y.

Two panels. Left: a 6 by 6 grid of dice outcomes with a flat line at the conditional mean 3.5. Right: the parabola x = y squared, where the conditional mean of Y is 0 for every x although X and Y are dependent.

The red lines show E[Y∣X=x]\mathbb{E}[Y\mid X=x]. For independent fair dice this equals 3.53.5 in every column. A constant conditional mean does not imply independence: if Y∼Unif⁡(−1,1)Y\sim\operatorname{Unif}(-1,1) and X=Y2X=Y^2, then given X=xX=x the values ±x\pm\sqrt{x} are equally likely, so E[Y∣X]=0\mathbb{E}[Y\mid X]=0 almost surely, yet XX and YY are dependent.

Under independence the conditional distribution of YY given X=xX=x is the unconditional distribution of YY, for every xx, so its mean is EY\mathbb{E}Y. This gives more than the mean: E[h(Y)∣X]=E[h(Y)]\mathbb{E}[h(Y)\mid X]=\mathbb{E}[h(Y)] for every integrable h(Y)h(Y). The words almost surely are needed because E[Y∣X]\mathbb{E}[Y\mid X] is only determined up to events of probability zero.

The proposition is the first step of a chain: independence implies a constant conditional mean, which implies zero covariance when the variances are finite. The second step uses taking out what is known and Adam’s law: E[XY]=E[X E[Y∣X]]=EX EY\mathbb{E}[XY]=\mathbb{E}[X\,\mathbb{E}[Y\mid X]]=\mathbb{E}X\,\mathbb{E}Y. Neither step can be reversed. The figure shows the first; for the second, X∼Unif⁡(−1,1)X\sim\operatorname{Unif}(-1,1) and Y=X2Y=X^2 are uncorrelated, but E[Y∣X]=X2\mathbb{E}[Y\mid X]=X^2 is not constant.

Note the direction: the proposition is about E[Y∣X]\mathbb{E}[Y\mid X]. In the right panel E[Y∣X]=0\mathbb{E}[Y\mid X]=0 is constant, but E[X∣Y]=Y2\mathbb{E}[X\mid Y]=Y^2 is not, which already shows the dependence.


Key Results

  • Independence gives E[h(Y)∣X]=E[h(Y)]\mathbb{E}[h(Y)\mid X]=\mathbb{E}[h(Y)] for every integrable h(Y)h(Y).
  • The converse fails: a constant conditional mean E[Y∣X]=EY\mathbb{E}[Y\mid X]=\mathbb{E}Y does not by itself imply independence.

Examples

  • For independent fair dice X,YX,Y, E[Y∣X]=3.5\mathbb{E}[Y\mid X]=3.5.
  • For Y∼Unif⁡(−1,1)Y\sim\operatorname{Unif}(-1,1) and X=Y2X=Y^2, symmetry gives E[Y∣X]=0=EY\mathbb{E}[Y\mid X]=0=\mathbb{E}Y, yet XX and YY are dependent.

Prerequisites

Sources

Symbols: infinity, square root

Last updated: 20 October 2026 03:02