A conditional expectation of an integrable XX given a sub-σ\sigma-algebra GF\mathcal G\subseteq\mathcal F on a (Ω,F,P)(\Omega,\mathcal F,\mathbb P) is an integrable, G\mathcal G- YY such that

E ⁣[Y1G]  =  E ⁣[X1G]for every GG.\mathbb E\!\left[Y\,\mathbf 1_G\right] \;=\; \mathbb E\!\left[X\,\mathbf 1_G\right]\quad\text{for every }G\in\mathcal G.

Such a YY exists and is unique up to almost-sure equality; it is denoted E[XG]\mathbb E[X\mid\mathcal G].

Remarks

The special case X=1AX=\mathbf1_A gives the of AA given G\mathcal G.

Examples
  • If G={,Ω}\mathcal G=\{\varnothing,\Omega\}, then E[XG]=E[X]\mathbb E[X\mid\mathcal G]=\mathbb E[X] almost surely.
  • If XX is G\mathcal G-measurable, then E[XG]=X\mathbb E[X\mid\mathcal G]=X almost surely.
  • If BFB\in\mathcal F, P(B)(0,1)\mathbb P(B)\in(0,1), and G=σ(B)\mathcal G=\sigma(B), then
    E[XG]  =  E[X1B]P(B)1B  +  E[X1Bc]P(Bc)1Bc.\mathbb E[X\mid \mathcal G] \;=\; \frac{\mathbb E[X\,\mathbf 1_B]}{\mathbb P(B)}\,\mathbf 1_B \;+\; \frac{\mathbb E[X\,\mathbf 1_{B^c}]}{\mathbb P(B^c)}\,\mathbf 1_{B^c}.