Conditional Expectation

  • Conditional expectation is just expectation computed with conditional probability:

    For discrete:

E[XY]=xxpXY(xy)dx

For continuous:

E[XY]=xfXY(xy)dx

  • Law of total expectation allows us to decompose expectation into smaller expectations:

E[X]=yE[XY=y]pY(y)E[X]=E[XY=y]fY(y)dycompact form:E[X]=EY[EX|Y[X|Y]]

Here the subscripts on the expectation tell you what distribution to use.