6.5. ExpectationΒΆ

This section contains several results on expectation operator.

Any function g(x) defines a new random variable g(X). If g(X) has a finite expectation, then

E[g(X)]=βˆ«βˆ’βˆžβˆžg(x)fX(x)dx.

If several random variables X1,…,Xn are defined on the same sample space, then their sum X1+β‹―+Xn is a new random variable. If all of them have finite expectations, then the expectation of their sum exists and is given by

E[X1+β‹―+Xn]=E[X1]+β‹―+E[Xn].

If X and Y are mutually independent random variables with finite expectations, then their product is a random variable with finite expectation and

E(XY)=E(X)E(Y).

By induction, if X1,…,Xn are mutually independent random variables with finite expectations, then

E[∏i=1nXi]=∏i=1nE[Xi].

Let X and Y be two random variables with the joint density function fX,Y(x,y). Let the marginal density function of Y given X be f(y|x). Then the conditional expectation is defined as follows:

E[Y|X]=βˆ«βˆ’βˆžβˆžyf(y|x)dy.

E[Y|X] is a new random variable.

E[E[Y|X]]=βˆ«βˆ’βˆžβˆžE[Y|X]f(x)dx=βˆ«βˆ’βˆžβˆžβˆ«βˆ’βˆžβˆžyf(y|x)f(x)dydx=βˆ«βˆ’βˆžβˆžy(βˆ«βˆ’βˆžβˆžf(x,y)dx)dy=βˆ«βˆ’βˆžβˆžyf(y)dy=E[Y].

In short, we have

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

The covariance of X and Y is defined as

Cov⁑(X,Y)=E[(Xβˆ’E[X])(Yβˆ’E[Y])].

It is easy to see that

Cov⁑(X,Y)=E[XY]βˆ’E[X]E[Y].

The correlation coefficient is defined as

Οβ‰œCov⁑(X,Y)Var(X)Var(Y).

6.5.1. Independent VariablesΒΆ

If X and Y are independent, then

E[g1(x)g2(y)]=E[g1(x)]E[g2(y)].

If X and Y are independent, then Cov⁑(X,Y)=0.

6.5.2. Uncorrelated VariablesΒΆ

The two variables X and Y are called uncorrelated if Cov⁑(X,Y)=0. Covariance doesn’t imply independence.