Lably
Skip to content

Law of total expectation

Proposition in probability theory

  • 2 min read
  • 3 chapters

Related on Lably

Through Random variable, Expected value and Sample space

E⁡[X]=E⁡[E⁡[X∣Y]],

i.e., the expected value of the conditional expected value of X given Y is the same as the expected value of X.

The conditional expected value E⁡[X∣Y], with Y a random variable, is not a simple number; it is a random variable whose value depends on the value of Y. That is, the conditional expected value of X given the event Y=y is a number and it is a function of y. If we write g(y) for the value of E⁡[X∣Y=y] then the random variable E⁡[X∣Y] is g(Y).

One special case states that if {Ai} is a finite or countable partition of the sample space, then

E⁡[X]=∑iE⁡[X∣Ai]Pr(Ai).

Example

Suppose that only two factories supply light bulbs to the market. Factory X's bulbs work for an average of 5000 hours, whereas factory Y's bulbs work for an average of 4000 hours. It is known that factory X supplies 60% of the total bulbs available. What is the expected length of time, L, that a purchased bulb will work for?

Applying the law of total expectation, we have:

E⁡[L]=E⁡[L∣X]Pr(X)+E⁡[L∣Y]Pr(Y)=5000(0.6)+4000(0.4)=4600

where

  • E⁡[L] is the expected life of the bulb;
  • Pr(X)=610 is the probability that the purchased bulb was manufactured by factory X;
  • Pr(Y)=410 is the probability that the purchased bulb was manufactured by factory Y;
  • E⁡[L∣X]=5000 is the expected lifetime of a bulb manufactured by X;
  • E⁡[L∣Y]=4000 is the expected lifetime of a bulb manufactured by Y.

Thus each purchased light bulb has an expected lifetime of 4600 hours.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics