Linearity of Conditional Expectation
Statement
Let be a sub--algebra, and let , be integrable real random variables. For constants :
This follows from two atomic properties:
- Additivity: a.s.
- Scalar multiplication: a.s.
Visualization
Two dice experiment. Roll dice and independently. Let , , and (information from die only).
| Outcome | Direct: | |||
|---|---|---|---|---|
Since is independent of , for all . Linearity gives a.s., matching direct computation.
Proof Sketch
- Additivity. Show that satisfies the defining property of : it is -measurable and for all , .
- Uniqueness. Conditional expectation is defined up to a.s. equality by the defining property, so additivity holds a.s.
- Scalar. is -measurable and by linearity of integration.
Connections
Linearity of conditional expectation is the key structural property underpinning the Law of Total ExpectationLaw of Total ExpectationThe expectation of X equals the expectation of its conditional expectation: E[X] = E[E[X|Y]]Read more → and the martingale property in Martingale DefinitionMartingale DefinitionA stochastic process is a martingale if future conditional expectations equal the current valueRead more →. Combined with Jensen's InequalityJensen's InequalityFor a convex function phi, phi(E[X]) <= E[phi(X)] — the image of the mean is at most the mean of imagesRead more → (for convex : a.s.), it characterises the relationship between conditional and unconditional moments.
Lean4 Proof
Mathlib provides condExp_add and condExp_smul in Mathlib.MeasureTheory.Function.ConditionalExpectation.Basic.
condExp_add is proved in Mathlib by showing the sum satisfies the defining characterisation of conditional expectation; condExp_smul follows from linearity of the Bochner integral.
Lean4 Proof
import Mathlib.MeasureTheory.Function.ConditionalExpectation.Basic
namespace MoonMath
open MeasureTheory
/-- **Additivity of conditional expectation**.
`μ[f + g | m] =ᵐ[μ] μ[f | m] + μ[g | m]`. -/
theorem condExp_add_ae {α : Type*} {m₀ m : MeasurableSpace α} (μ : Measure α)
{f g : α → ℝ} (hf : Integrable f μ) (hg : Integrable g μ) :
μ[fun x => f x + g x | m] =ᵐ[μ] fun x => (μ[f | m]) x + (μ[g | m]) x :=
condExp_add hf hg m
/-- **Homogeneity of conditional expectation**.
`μ[c • f | m] =ᵐ[μ] c • μ[f | m]`. -/
theorem condExp_smul_ae {α : Type*} {m₀ m : MeasurableSpace α} (μ : Measure α)
(c : ℝ) (f : α → ℝ) :
μ[fun x => c * f x | m] =ᵐ[μ] fun x => c * (μ[f | m]) x := by
have := condExp_smul (𝕜 := ℝ) c f m (α := α) (μ := μ)
simpa [smul_eq_mul] using this
end MoonMathReferenced by
- Martingale DefinitionProbability
- Martingale DefinitionProbability