Conditional Expectation — Definition, Formula & Example
Conditional expectation is the average value you expect a random variable to take once you know that some event has happened. It is the ordinary expected value, recalculated using only the outcomes that are still possible.
For a random variable and an event with , the conditional expectation of given is , where equals 1 on and 0 otherwise. For a discrete random variable , is the random variable , where . It satisfies the law of total expectation, .
Key Formula
Where:
- = A discrete random variable
- = The given event, with P(A) > 0
- = Each possible value of X
- = The conditional probability that X equals x, given that A occurred
Worked Example
Problem: You roll two fair six-sided dice. Let be their sum. Given that the first die shows 4, what is the expected value of ?
Step 1: Once the first die shows 4, the possible sums are 5 through 10. Each one comes from exactly one face of the second die. Divide each joint probability by the probability of the given event.
Step 2: Multiply each possible sum by its conditional probability, then add the products.
Step 3: Compare with the unconditional mean. Without any information, each die averages 3.5, so the sum averages 7.
Answer: . This is 0.5 more than because the first die is fixed at 4, which is 0.5 above its average of 3.5. The second die still averages 3.5.
Why It Matters
In statistics, the regression function is the best predictor of from in the mean-squared-error sense. Actuaries use conditional expectation to price insurance for specific risk groups. The law of total expectation lets you solve hard expected-value problems, such as the expected number of coin flips until two heads in a row, by first conditioning on the outcome of the first flip.
Common Mistakes
Mistake: Weighting the remaining outcomes by their original probabilities instead of their conditional probabilities. In the example, this gives instead of 7.5.
Correction: After you condition on , the probabilities of the outcomes inside must add to 1. Divide each one by before you multiply by the values.
