Conditional Expectation
EssentialPrerequisites
The expectation is the probability-weighted average of over the whole sample space. Conditional expectation asks the same question but restricts to a sub-population: given that event occurred, or given that a random variable took value , what is the average of ?
Conditional expectation given an event
Let with and let be an integrable random variable. The conditional expectation of given is the expectation of under the conditional probability :
In the discrete case (where takes values ):
In the absolutely continuous case, if has a well-defined conditional density :
The result is a constant — it is a single number, not a random variable.
Conditional expectation given a random variable
The more general and powerful concept conditions on the value of a random variable .
Discrete case
If takes values and , define for each such :
Jointly continuous case
If has joint density and marginal , the conditional density of given is
and
as a random variable
The expression is a deterministic function of ; call it . Composing with gives the conditional expectation
This is a random variable — a function of the random variable . Before is observed you do not know which value will take. Informally, is the best prediction of from in the mean-square sense: among all functions , the one minimising is .
Key properties
Throughout, are integrable random variables and are arbitrary random variables.
Linearity
Monotonicity
If almost surely, then almost surely.
Taking out what is known
If is a measurable function such that is integrable:
Once you know , the factor is a constant from the perspective of and factors out of the expectation.
Example. If and are independent, then (a constant function), and the identity gives , so — recovering the standard independence formula.
Iterated conditioning
If for some measurable function (so is “coarser” than ):
Conditioning on after having conditioned on the finer washes out the extra precision: you end up with just the -level information.
Summary
- : the expectation of under ; a constant when is a fixed event with .
- : the conditional mean of when is known to equal ; a deterministic function of .
- : the random variable where ; it is the best mean-square predictor of from .
- Key properties: linearity, monotonicity, taking out what is known (), and iterated conditioning ( when is coarser than ).