Law of total expectation

The proposition in probability theory known as the law of total expectation,[1] the law of iterated expectations[2] (LIE), Adam's law,[3] the tower rule,[4] and the smoothing theorem,[5] among other names, states that if

is a random variable whose expected value

is any random variable on the same probability space, then i.e., the expected value of the conditional expected value of

The conditional expected value

a random variable, is not a simple number; it is a random variable whose value depends on the value of

That is, the conditional expected value of

is a number and it is a function of

then the random variable

One special case states that if

is a finite or countable partition of the sample space, then Suppose that only two factories supply light bulbs to the market.

's bulbs work for an average of 5000 hours, whereas factory

's bulbs work for an average of 4000 hours.

supplies 60% of the total bulbs available.

What is the expected length of time that a purchased bulb will work for?

Applying the law of total expectation, we have: where Thus each purchased light bulb has an expected lifetime of 4600 hours.

When a joint probability density function is well defined and the expectations are integrable, we write for the general case

A similar derivation works for discrete distributions using summation instead of integration.

For the specific case of a partition, give each cell of the partition a unique label and let the random variable Y be the function of the sample space that assigns a cell's label to each point in that cell.

be a probability space on which two sub σ-algebras

on such a space, the smoothing law states that if

Since a conditional expectation is a Radon–Nikodym derivative, verifying the following two properties establishes the smoothing law: The first of these properties holds by definition of the conditional expectation.

To prove the second one, so the integral

is defined (not equal

The second property thus holds since

implies Corollary.

In the special case when

, the smoothing law reduces to Alternative proof for

This is a simple consequence of the measure-theoretic definition of conditional expectation.

-measurable random variable that satisfies for every measurable set

proves the claim.