MathFin
Map / Probability · Analysis and convexity / MathFin.Probability.Analysis.IndepFreezing

Freezing an independent variable

MathFin.Probability.Analysis.IndepFreezingMSC 60E05MSC 28A25MSC 91G20 source

If X and Y are independent, the expectation of g(X, Y) can be computed by freezing X at a value x, averaging g(x, Y) over Y alone, and then averaging the result over the law of X:

𝔼[g(X, Y)] = ∫ x, 𝔼[g(x, Y)] d(law X).

This is the freezing lemma. When X = N is a count it is the law of total expectation over the number of jumps, the step every Poisson-mixture computation takes: the jump-diffusion price, Merton's among them, and the compound-Poisson moment generating function (Probability/Jumps/CompoundPoissonMGF.lean) both go through it. With X a jump part of any law it is the mixing formula of Models/Jumps/JumpDiffusionMixing.lean: a jump-diffusion call is the Black–Scholes price averaged over the jumps.

The proof composes two Mathlib facts: independence makes the joint law the product of the marginal laws (IndepFun.map_prod_eq_prod_map_map), and an integral against a product measure is an iterated integral (integral_prod).

Its conditional form is Shreve's independence lemma (Stochastic Calculus for Finance II, Lemma 2.3.4): if X is measurable for a σ-algebra 𝓜 and Y is independent of 𝓜, then

𝔼[g(X, Y) | 𝓜] = G(X), with G(x) = 𝔼[g(x, Y)].

Given 𝓜, X is known and Y keeps its law. On an event s ∈ 𝓜 the joint law of (X, Y) is the law of X on s times the law of Y (map_restrict_prodMk_of_indep), so the unconditional computation runs on every such event, which characterizes the conditional expectation. This is the step that prices an option at an intermediate date: the state at t is known, and the increment to maturity is independent of the past (the American put's Brownian transitions, Models/BlackScholes/American/Stopping/BrownianTransition.lean, and the jump-diffusion prices of Models/Jumps/JumpDiffusionOptionPrices.lean).

Main results

  • integrable_comp_prodMk_iff_of_indepFun: g(X, Y) is integrable exactly when g is integrable against the product of the laws.
  • integral_comp_prodMk_of_indepFun: the freezing lemma.
  • integrable_prod_map_of_countable: for a countable-valued X, integrability against the product of the laws is checked one value of X at a time.
  • integral_comp_prodMk_of_indepFun_of_countable: the freezing lemma for a countable-valued X and a nonnegative g, with integrability checked one value of X at a time.
  • integral_comp_of_hasLaw_of_countable: integrating out a countable variable. For X with a countable law ν, independent of Y, and a nonnegative F whose expectations c a = 𝔼[F(a, Y)] are finite and integrable against ν, 𝔼[F(X, Y)] = ∫ a, c a ∂ν. With ν = Poisson(Λ) this is the Poisson-mixture step.
  • condExp_comp_prodMk_of_indep: the conditional freezing lemma (Shreve's independence lemma), 𝔼[g(X, Y) | 𝓜] = G(X) for X measurable for 𝓜 and Y independent of 𝓜.
  • condExp_mul_of_indep: 𝔼[X·Y | m] = X·𝔼[Y] for X measurable for m and Y for a σ-algebra independent of m.
  • indepFun_prodMk_of_indepFun_prodMk: if X is independent of (Y, W) and Y of W, then Y is independent of (X, W). Mutual independence of three variables can be stated with any of them split off first.

References

  • S. E. Shreve, Stochastic Calculus for Finance II: Continuous-Time Models [ShreveSCFII], Lemma 2.3.4

Tags

freezing lemma, independence lemma, Shreve, law of total expectation, Poisson mixture, conditional expectation, independent random variables, MSC 60E05, MSC 28A25, MSC 91G20

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

ce-freezing-lemma · conditional_expectation.json · full statement
The Freezing Lemma (Independence Lemma, Unconditional Form)

For independent random variables X and Y on a finite measure space and g integrable against the product of their laws, E[g(X, Y)] = ∫ E[g(x, Y)] d(law X)(x): X can be frozen at a value x, g(x, Y) averaged over Y alone, and the result averaged over the law of X. This is the unconditional form; the conditional statement E[g(X, Y) | 𝒢] = G(X), for X 𝒢-measurable and Y independent of 𝒢, is ce-conditional-freezing-lemma.

ce-conditional-freezing-lemma · conditional_expectation.json · full statement
The Independence Lemma (Conditional Freezing Lemma)

Let 𝒢 be a sub-σ-algebra, X a 𝒢-measurable random variable with values in a measurable space, and Y a random variable independent of 𝒢 (a.e.-measurable, with values in another measurable space), on a finite measure space. For g strongly measurable, with values in a Banach space, and g(X, Y) integrable, E[g(X, Y) | 𝒢] = G(X) almost surely, where G(x) = ∫ g(x, y) d(law Y)(y): given 𝒢, X is known and Y keeps its law. With vector-valued X and Y this is Shreve's independence lemma. It is the step that prices an option at an intermediate date: the state is known, and the increment to maturity is independent of the past (the American put's Brownian transitions, and the jump-diffusion prices of mf-jump-diffusion-payoff-every-date).

Declarations 10

theoremMathFin.integrable_comp_prodMk_iff_of_indepFunsource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {E : Type u_4} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [NormedAddCommGroup E] {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β}, IndepFun X Y P → AEMeasurable X P → AEMeasurable Y P → ∀ {g : α × β → E}, AEStronglyMeasurable g ((Measure.map X P).prod (Measure.map Y P)) → (Integrable (fun ω => g (X ω, Y ω)) P ↔ Integrable g ((Measure.map X P).prod (Measure.map Y P)))

For independent X and Y, g(X, Y) is integrable exactly when g is integrable against the product of the laws of X and Y.

theoremMathFin.integral_comp_prodMk_of_indepFunsource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {E : Type u_4} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [NormedAddCommGroup E] {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} [NormedSpace ℝ E], IndepFun X Y P → AEMeasurable X P → AEMeasurable Y P → ∀ {g : α × β → E}, Integrable g ((Measure.map X P).prod (Measure.map Y P)) → ∫ (ω : Ω), g (X ω, Y ω) ∂P = ∫ (x : α), ∫ (ω : Ω), g (x, Y ω) ∂P ∂Measure.map X P

The freezing lemma. For independent X and Y, and g integrable against the product of their laws, 𝔼[g(X, Y)] = ∫ x, 𝔼[g(x, Y)] d(law X).

theoremMathFin.integrable_prod_map_of_countablesource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} [Countable α] [MeasurableSingletonClass α], AEMeasurable Y P → ∀ {g : α × β → ℝ}, (∀ (a : α), Measurable fun b => g (a, b)) → (∀ (a : α), Integrable (fun ω => g (a, Y ω)) P) → Integrable (fun a => ∫ (ω : Ω), ‖g (a, Y ω)‖ ∂P) (Measure.map X P) → Integrable g ((Measure.map X P).prod (Measure.map Y P))

For a countable-valued X, integrability of g against the product of the laws is checked one value of X at a time: each g(a, Y) integrable, and a ↦ 𝔼‖g(a, Y)‖ integrable against the law of X. Measurability of the sections suffices, since X takes countably many values.

theoremMathFin.integral_comp_prodMk_of_indepFun_of_countablesource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} [Countable α] [MeasurableSingletonClass α], IndepFun X Y P → AEMeasurable X P → AEMeasurable Y P → ∀ {g : α × β → ℝ}, (∀ (a : α), Measurable fun b => g (a, b)) → (∀ (p : α × β), 0 ≤ g p) → (∀ (a : α), Integrable (fun ω => g (a, Y ω)) P) → Integrable (fun a => ∫ (ω : Ω), g (a, Y ω) ∂P) (Measure.map X P) → ∫ (ω : Ω), g (X ω, Y ω) ∂P = ∫ (a : α), ∫ (ω : Ω), g (a, Y ω) ∂P ∂Measure.map X P

The freezing lemma for a countable variable. For a countable-valued X independent of Y and a nonnegative g, if each g(a, Y) is integrable and a ↦ 𝔼[g(a, Y)] is integrable against the law of X, then 𝔼[g(X, Y)] = ∫ a, 𝔼[g(a, Y)] d(law X).

theoremMathFin.integral_comp_of_hasLaw_of_countablesource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} [Countable α] [MeasurableSingletonClass α] {ν : Measure α}, HasLaw X ν P → AEMeasurable Y P → IndepFun X Y P → ∀ {F : α → β → ℝ}, (∀ (a : α), Measurable fun y => F a y) → (∀ (a : α) (y : β), 0 ≤ F a y) → ∀ {c : α → ℝ}, (∀ (a : α), Integrable (fun ω => F a (Y ω)) P) → (∀ (a : α), ∫ (ω : Ω), F a (Y ω) ∂P = c a) → Integrable c ν → ∫ (ω : Ω), F (X ω) (Y ω) ∂P = ∫ (a : α), c a ∂ν

Integrating out a countable variable. For X with a countable law ν, independent of Y, and a nonnegative F, if each F(a, Y) is integrable with expectation c a and c is integrable against ν, then 𝔼[F(X, Y)] = ∫ a, c a ∂ν. For a Poisson count this is the Poisson-mixture step of a compound-Poisson computation.

theoremMathFin.map_restrict_prodMk_of_indepsource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {m mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β}, m ≤ mΩ → Measurable X → AEMeasurable Y P → Indep (MeasurableSpace.comap Y mβ) m P → ∀ {s : Set Ω}, MeasurableSet s → Measure.map (fun ω => (X ω, Y ω)) (P.restrict s) = (Measure.map X (P.restrict s)).prod (Measure.map Y P)

On an event s of a σ-algebra m for which X is measurable and of which Y is independent, the joint law of (X, Y) under P restricted to s is the law of X on s times the law of Y under P. Normalized by P(s), it says that given s, Y keeps its law and stays independent of X.

theoremMathFin.condExp_comp_prodMk_of_indepsource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {E : Type u_4} {m mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} [NormedAddCommGroup E] {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} [NormedSpace ℝ E] [CompleteSpace E], m ≤ mΩ → Measurable X → AEMeasurable Y P → Indep (MeasurableSpace.comap Y mβ) m P → ∀ {g : α × β → E}, StronglyMeasurable g → Integrable (fun ω => g (X ω, Y ω)) P → P[fun ω => g (X ω, Y ω) | m] =ᵐ[P] fun ω => ∫ (y : β), g (X ω, y) ∂Measure.map Y P

The conditional freezing lemma (Shreve's independence lemma). If X is measurable for a σ-algebra m and Y is independent of m, then 𝔼[g(X, Y) | m] = G(X) almost surely, with G(x) = ∫ g(x, y) d(law Y)(y), for g strongly measurable and g(X, Y) integrable: given m, X is known and Y keeps its law. On each event of m the joint law of (X, Y) is a product (map_restrict_prodMk_of_indep), so both sides have the same integral over it.

theoremMathFin.condExp_mul_of_indepsource
∀ {Ω : Type u_1} {m mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsFiniteMeasure P] {m' : MeasurableSpace Ω} {X Y : Ω → ℝ}, m ≤ mΩ → m' ≤ mΩ → Indep m' m P → StronglyMeasurable X → StronglyMeasurable Y → Integrable X P → Integrable Y P → P[X * Y | m] =ᵐ[P] fun ω => X ω * ∫ (ω : Ω), Y ω ∂P

Pulling out a known factor against an independent one. If X is m-measurable and Y is measurable for a σ-algebra m' independent of m (both integrable), then 𝔼[X·Y | m] = X·𝔼[Y] almost surely: given m, X is known and Y keeps its mean. With X = e^{a+Z} and Y = e^{W}, for Z known and W independent of the past, this is the conditional exponential moment of a sum.

theoremMathFin.map_prod_prod_rotatesource
∀ {α : Type u_2} {β : Type u_3} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {γ : Type u_5} {mγ : MeasurableSpace γ} (μ : Measure α) (ν : Measure β) (ρ : Measure γ) [SFinite μ] [SFinite ν] [SFinite ρ], Measure.map (fun p => (p.2.1, p.1, p.2.2)) (μ.prod (ν.prod ρ)) = ν.prod (μ.prod ρ)

Moving the middle factor of a triple product measure to the front: (μ ⊗ (ν ⊗ ρ)).map ((a, b, c) ↦ (b, a, c)) = ν ⊗ (μ ⊗ ρ).

theoremMathFin.indepFun_prodMk_of_indepFun_prodMksource
∀ {Ω : Type u_1} {α : Type u_2} {β : Type u_3} {mΩ : MeasurableSpace Ω} {mα : MeasurableSpace α} {mβ : MeasurableSpace β} {P : Measure Ω} [IsFiniteMeasure P] {X : Ω → α} {Y : Ω → β} {γ : Type u_5} {mγ : MeasurableSpace γ} {W : Ω → γ}, AEMeasurable X P → AEMeasurable Y P → AEMeasurable W P → IndepFun X (fun ω => (Y ω, W ω)) P → IndepFun Y W P → IndepFun Y (fun ω => (X ω, W ω)) P

Re-associating independence. If X is independent of (Y, W) and Y of W, then Y is independent of (X, W). Either pair of hypotheses says that X, Y and W are mutually independent: the joint law is the product of the three marginal laws.