Conditional expectations, discrete random variables
Summary
- X,YX,Y are two discrete random variables with range x1,…,xnx1,…,xn and y1,…,ymy1,…,ym respectively.
- Suppose that we have partial information about the experiment, we know the outcome of XX , X=xX=x .
- The distribution of YY will then change from fY(y)fY(y) to fY|X(x)fY|X(x) and the expected value of YY will change from
m∑j=1yjfY(yj)m∑j=1yjfY(yj)
- to
m∑j=1yjfY|X(x)m∑j=1yjfY|X(x)
- The latter is called the conditional expectation of YY given X=xX=x , E(X=x)E(X=x) .
- E(X=x)E(X=x) is a function of XX which we may denote as g(x)g(x) .
- The conditional expectation of YY given XX , E(X)E(X) , is then defined as the random variable g(X)g(X) .
Example
- f(x,y)f(x,y) is defined by the following table:
- fY(0)=0.5fY(0)=0.5 and fY(1)=0.5fY(1)=0.5 .
- Suppose we observe X=0X=0 . Then fY|X(0)=0.4/0.5=0.8fY|X(0)=0.4/0.5=0.8 and fY|X(1)=0.1/0.5=0.2fY|X(1)=0.1/0.5=0.2 . The expected value of YY changes from 0.50.5 to 0.20.2 . Thus, E(Y)=0.5E(Y)=0.5 and E(X=0)=0.2.E(X=0)=0.2. Similarly, E(X=1)=0.8E(X=1)=0.8 .
- Define g(x)=E(X=x)g(x)=E(X=x) and we have g(0)=0.2g(0)=0.2 and g(1)=0.8g(1)=0.8 .
- Define ZZ as the random variable Z=E(X)=g(X)Z=E(X)=g(X) . ZZ takes the value 0.20.2 when X=0X=0 and 0.80.8 when X=1X=1 . The range of ZZ is {0.2,0.8}{0.2,0.8} and the pmf is given by fZ(0.2)=0.5fZ(0.2)=0.5 , fZ(0.8)=0.5fZ(0.8)=0.5 .