Theory 1

Expectation conditioned by a fixed event

Suppose X is a random variable and A. The expectation of X conditioned on A describes the typical value of X given the hypothesis that XA is known.

Discrete case:

E[X|A]=kkPX|A(k)E[g(X)|A]=kg(k)PX|A(k)

Continuous case:

E[X|A]=+xfX|A(x)dxE[g(X)|A]=+g(x)fX|A(x)dx

Conditional variance:

Var[X|A]=E[(XμX|A)2|A]=E[X2|A]μX|A2

Division into Cases / Total Probability applied to expectation:

E[X]=E[X|A1]P[A1]++E[X|An]P[An]

Linearity of conditional expectation:

E[aX1+bX2+c|Y=y]=aE[X1|Y=y]+bE[X2|Y=y]+c

Extra - Proof: Division of Expectation into Cases

We prove the discrete case only.

  1. Expectation formula:
E[X]=kkPX(k)
  1. Division into Cases for the PMF:
PX(k)=i=1nPX|Ai(k)P[Ai]
  1. Substitute in the formula for E[X]:
kkPX(k)kki=1nPX|Ai(k)P[Ai]i=1nP[Ai]kkPX|Ai(k)i=1nP[Ai]E[X|Ai]

Expectation conditioned by a variable event

Suppose X and Y are any two random variables. The expectation of X conditioned on Y=y describes the typical of value of X in terms of y, given the hypothesis that Y=y is known.

Discrete case:

E[X|Y=y]=kkPX|Y(k|y)(k over all poss. vals.)E[g(X,Y)|Y=y]=kg(k,y)PX|Y(k|y)

Continuous case:

E[X|Y=y]=+xfX|Y(x|y)dxE[g(X,Y)|Y=y]=+g(x,y)fX|Y(x|y)dx

Theory 2

Expectation conditioned by a random variable

Suppose X and Y are any two random variables. The expectation of X conditioned on Y is a random variable giving the typical value of X on the assumption that Y has value determined by an outcome of the experiment.

E[X|Y]=g(Y)whereg(y)=E[X|Y=y]

In other words, start by defining a function g(y):

g:yE[X|Y=y]

Now E[X|Y] is defined as the composite random variable g(Y).

Considered as a random variable, E[X|Y] takes an outcome sS, computes Y(s), sets y=Y(s), then returns the expectation of X conditioned on Y=y.

Notice that X is not evaluated at s, only Y is.

Because the value of E[X|Y] depends only on Y(s), and not on any additional information about s, it is common to represent a conditional expectation E[X|Y] using only the function g.


Iterated Expectation

E[E[X|Y]]=E[X]

Proof of Iterated Expectation, discrete case

E[E[X|Y]]=E[X|Y=]PY()=kkPX|Y(k|)PY()=kkPX,Y(k,)=kkPX(k)=E[X]