Home page for accesible maths 6 Expectation (II)

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

6.3 Decomposition of the marginal variance

We have seen that the marginal expectations can be obtained from the conditional expectations. We can also obtain the marginal variances from the conditional expectations and variances by the following formula:

𝖤[𝖵𝖺𝗋[YX]]+𝖵𝖺𝗋[𝖤[YX]]
=𝖤[𝖤[Y2X]-𝖤[YX]2]+𝖤[𝖤[YX]2]-𝖤[𝖤[YX]]2
=𝖤[Y2]-𝖤[Y]2
=𝖵𝖺𝗋[Y].

These formulae are particularly useful when a random variable Y is given as a mixture of distributions. This is most easily illustrated by an example.

Example 6.3.1.

Let X be a Poisson(λ) random variable, and given X takes the value x let Y be Binomial(x,p)-distributed, i.e. YX=x Binomial(x,p). Find the expectation and variance of Y.

Solution.  From properties of the Binomial distribution we have

  1. 𝖤[YX=x]=xp,

  2. 𝖵𝖺𝗋[YX=x]=xp(1-p).

Hence, using properties of the Poisson distribution we obtain

𝖤[Y]=𝖤[𝖤[YX]]=𝖤[Xp]=λp.
𝖵𝖺𝗋[Y] =𝖤[𝖵𝖺𝗋[YX]]+𝖵𝖺𝗋[𝖤[YX]]
=𝖤[Xp(1-p)]+𝖵𝖺𝗋[Xp]
=λp(1-p)+λp2
=λp.

In fact, it can be shown that YPoisson(λp).