Law of total expectation

The proposition in probability theory known as the law of total expectation, the law of iterated expectations (LIE), Adam's law, the tower rule, and the smoothing property of conditional expectation, among other names, states that if is a random variable whose expected value is defined, and is any random variable on the same probability space, then

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

The conditional expected value , with 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 given the event is a number and it is a function of . If we write for the value of then the random variable is .

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