Chapter 4 — Conditional Expectation
This page develops conditional expectation from event conditioning through conditioning on random variables and sigma-fields. The mathematical discussion is separate from the Python API and worked examples.
1. Introduction
Conditional expectation is introduced as a tool for estimation when partial information is available, especially in prediction and when some data are unobserved or missing.
2. Conditioning on an event
For \(B\in\mathcal F\) such that \(P(B)>0\),
For \(X\in L^1\),
Example
Three coins with values 10, 20, and 50 are tossed. If \(X\) is the total amount obtained on heads and \(B\) is the event that exactly two coins show heads, then
3. Conditioning on a discrete random variable
Let \(Y\) take values in a countable space \(E\), and define
For \(y\in E_0\),
Then define
where \(g(y)=E(X\mid Y=y)\) on \(E_0\). The value of \(g\) outside \(E_0\) is irrelevant because that set has probability zero.
Thus \(E(X\mid Y)\) is a random variable and a function of \(Y\), so it is \(\sigma(Y)\)-measurable.
Example with a die
For a fair die, let \(X(\omega)=\omega\), and let \(Y\) indicate whether the result is odd or even. Then
4. Absolutely continuous case
When \(X\) and \(Y\) have a joint density,
Then
In the corresponding example, this procedure gives
5. Properties in the discrete case
The main properties include
the law of total expectation
and, under independence,
For a function \(h\), the value of \(Y\) may be replaced by the corresponding constant inside the conditioning relation when appropriate.
6. Characterization through \(\sigma(Y)\)
For \(X\in L^1\) and discrete \(Y\), \(E(X\mid Y)\) is, up to a null set, the unique \(\sigma(Y)\)-measurable random variable satisfying
This formulation leads to conditioning with respect to an arbitrary random variable and then with respect to a sigma-field.
7. Arbitrary random variable
For \(X\in L^1\) and an arbitrary random variable \(Y\), conditional expectation is defined by the same property: it is \(\sigma(Y)\)-measurable and
The relevant object is the information sigma-field. In particular,
8. Conditioning with respect to a sigma-field
Let \(\mathcal G\subseteq\mathcal F\) be a sub-sigma-field. For \(X\in L^1\), the conditional expectation \(E(X\mid\mathcal G)\) is a \(\mathcal G\)-measurable random variable such that
When \(\mathcal G=\sigma(Y)\), this gives the notation \(E(X\mid Y)\).
9. Characterization theorem
There exists a unique variable \(Y\in L^1(\Omega,\mathcal G,P)\) such that, for every bounded \(\mathcal G\)-measurable variable \(Z\),
This variable is
In particular,
The existence proof is beyond the scope of this finite framework.
10. Fundamental properties
If \(X\) is \(\mathcal G\)-measurable,
Linearity:
Positivity:
Total expectation:
Absolute-value control:
and therefore \(E|E(X\mid\mathcal G)|\le E|X|\).
Monotonicity:
Independence: if \(X\) is independent of \(\mathcal G\),
11. Measurable factor
If \(Y\) is \(\mathcal G\)-measurable and the required integrability conditions hold,
12. Successive conditioning
If \(\mathcal G_1\subseteq\mathcal G_2\), then
If \(B\in\mathcal G\), one also has
13. Independence of sigma-fields
Two sub-sigma-fields \(\mathcal G_1\) and \(\mathcal G_2\) are independent if and only if, for every integrable random variable measurable with respect to \(\mathcal G_2\),
For independent random variables \(X\) and \(Y\), in particular,
However, this last equality by itself is not sufficient to establish independence.