Skip to content

Taking Out What Is Known

Proposition

Let hh be a Borel-measurable function, and let YY and h(X)Yh(X)Y be integrable (for example, hh bounded). Then, almost surely,

E[h(X) Y∣X]=h(X) E[Y∣X].\begin{aligned} \mathbb{E}[h(X)\,Y\mid X]=h(X)\,\mathbb{E}[Y\mid X]. \end{aligned}

Inside the Conditional Expectation Given a Random Variable, fixing X=xX=x fixes h(X)=h(x)h(X)=h(x). It therefore acts as a constant in the conditional sum or integral, subject to the stated integrability assumptions.


Interpretation

Once XX is observed, any function h(X)h(X) of it is a known number, so it acts as a constant inside the conditional average. The rule is the conditional version of E[cY]=c EY\mathbb{E}[cY]=c\,\mathbb{E}Y.

The conditional means x and x squared plotted against x, with the point x = 2 marked on each; multiplying the first by h(2) = 2 gives the second.

In the illustrated example, Y∣X∼Pois⁡(X)Y\mid X\sim\operatorname{Pois}(X), so the blue line is E[Y∣X=x]=x\mathbb{E}[Y\mid X=x]=x, and h(x)=xh(x)=x. At x=2x=2 the blue value 22 is multiplied by the known factor h(2)=2h(2)=2 to give the red value 44 of E[XY∣X=x]=x2\mathbb{E}[XY\mid X=x]=x^2. In general E[h(X)Y∣X]=h(X) E[Y∣X]\mathbb{E}[h(X)Y\mid X]=h(X)\,\mathbb{E}[Y\mid X]; here E[XY∣X]=X⋅X=X2\mathbb{E}[XY\mid X]=X\cdot X=X^2.

At a fixed value xx, the rule is ordinary linearity of expectation with the constant h(x)h(x); substituting the random XX afterwards gives the stated identity. The integrability assumptions make both sides well defined, which is automatic when hh is bounded.

Combined with Adam’s law, the rule gives E[h(X)Y]=E[h(X) E[Y∣X]]\mathbb{E}[h(X)Y]=\mathbb{E}[h(X)\,\mathbb{E}[Y\mid X]], a standard way to compute mixed moments in two-stage models. In the Poisson example, E[XY]=E[X2]\mathbb{E}[XY]=\mathbb{E}[X^2], so Cov⁡(X,Y)=E[X2]−(EX)2=Var⁡(X)\operatorname{Cov}(X,Y)=\mathbb{E}[X^2]-(\mathbb{E}X)^2=\operatorname{Var}(X). The same step shows that independence implies zero covariance, see conditional expectation and independence.

Only functions of the conditioning variable come out. A function of YY is not known given XX: E[Y2∣X]\mathbb{E}[Y^2\mid X] is in general not (E[Y∣X])2(\mathbb{E}[Y\mid X])^2, and in the Poisson example it equals X+X2X+X^2.


Key Results

  • E[h(X)∣X]=h(X)\mathbb{E}[h(X)\mid X]=h(X) when h(X)h(X) is integrable.
  • Combining the rule with Adam’s law gives E[h(X)Y]=E[h(X)E[Y∣X]]\mathbb{E}[h(X)Y]=\mathbb{E}[h(X)\mathbb{E}[Y\mid X]].

Examples

  • If Y∣X∼Pois⁡(X)Y\mid X\sim\operatorname{Pois}(X) and E[X2]<∞\mathbb{E}[X^2]<\infty, then E[XY∣X]=X2\mathbb{E}[XY\mid X]=X^2.
  • If A={X>0}A=\{X>0\}, then E[𝟙1AY∣X]=𝟙1AE[Y∣X]\mathbb{E}[\indicator_AY\mid X]=\indicator_A\mathbb{E}[Y\mid X].

Prerequisites

Sources

Aliases: pull-out property, taking out what's known, pulling out what is known, pulling out known factors Symbols: infinity

Last updated: 20 October 2026 03:02