Conditional expectation is a fundamental concept in probability and statistics that describes the average value of a random variable given specified information. It generalizes the ordinary expected value: conditioning on an event produces a number, whereas conditioning on another random variable generally produces a random variable whose value depends on the observed information. It provides a framework for averaging within subpopulations, predicting unobserved quantities, and describing uncertainty as information accumulates. (ocw.mit.edu)
Elementary definitions
For an integrable random variable and an event with , the conditional expectation is
where equals one on and zero elsewhere. For discrete , this becomes
Thus the average uses probabilities adjusted to the specified event rather than the original probabilities. (ocw.mit.edu)
If is discrete, define
for values with . The expression denotes a random variable, while denotes its numerical value at a specified observation. This distinction is essential: the conditional mean changes with , even though the unconditional mean is constant. (ocw.mit.edu)
For real-valued having a joint distribution with density , the corresponding formula uses a conditional density:
where and the integral exists. This is not ordinary division by , which is zero for continuously distributed . (live.ocw.mit.edu)
Measure-theoretic definition
The general definition belongs to measure theory. Let be a probability space, let , and let be a sigma-algebra representing the available information. A conditional expectation is an integrable, -measurable random variable satisfying
These integral identities preserve the averages detectable using that information. Measurability ensures that does not depend on information outside . (math.ucdavis.edu)
Existence follows from the Radon–Nikodym theorem: for nonnegative integrable , the measure on has a Radon–Nikodym derivative relative to . General integrable is handled through its positive and negative parts. Conditional expectations are unique almost surely, meaning that versions may differ on sets of probability zero. (math.ucdavis.edu)
Conditioning on means conditioning on its generated sigma-algebra . For real-valued , a version can be written , with measurable. Its values at individual observations of probability zero need not be uniquely determined; additional regularity may select a convenient version. (math.ucdavis.edu)
Principal properties
For integrable variables, conditional expectation is linear and order-preserving. It leaves -measurable variables unchanged. If is independent of , then
Independence is sufficient for this identity, but the identity alone does not establish independence. (math.ucdavis.edu)
The “taking out what is known” rule states that, for bounded -measurable ,
The tower property states that if , then
Averaging a finer-information estimate using coarser information therefore produces the coarser-information estimate directly. Its special case, the law of total expectation, is
These identities hold almost surely where appropriate. (people.math.wisc.edu)
Conditional Jensen’s inequality gives
for a convex function , assuming the relevant expectations exist. In particular, conditioning cannot increase the expected absolute magnitude:
Prediction and geometric interpretation
When , conditional expectation is the orthogonal projection of onto the closed subspace of -measurable variables in the Hilbert space . Its residual satisfies
for every square-integrable, -measurable . Orthogonality here uses the inner product . (samuel-drapeau.info)
Consequently, minimizes mean squared error among square-integrable predictions based on . For observed predictors , the minimizing prediction is . Unlike linear regression, this optimization does not restrict predictions to linear functions; the optimal conditional mean may be nonlinear. (ocw.mit.edu)
Variance decomposition and stochastic processes
For square-integrable , define conditional variance by
The law of total variance then gives
It separates average variability remaining within information-defined groups from variability between their conditional means. (ocw.mit.edu)
In a stochastic process, an increasing filtration represents information available over time. An integrable adapted process is a martingale when
For an integrable terminal quantity , the process satisfies this identity by the tower property, expressing successive estimates of the same quantity as information grows. (people.math.wisc.edu)