The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V20. Probability

Mathlib.Probability.Kernel.Condexp

32 declarations. Mathlib docs · Source

Kernel associated with a conditional expectation

We define condExpKernel μ m, a kernel from Ω to Ω such that for all integrable functions f, μ[f | m] =ᵐ[μ] fun ω => ∫ y, f y ∂(condExpKernel μ m ω).

This kernel is defined if Ω is a standard Borel space. In general, μ⟦s | m⟧ maps a measurable set s to a function Ω → ℝ≥0∞, and for all s that map is unique up to a μ-null set. For all a, the map from sets to ℝ≥0∞ that we obtain that way verifies some of the properties of a measure, but the fact that the μ-null set depends on s can prevent us from finding versions of the conditional expectation that combine into a true measure. The standard Borel space assumption on Ω allows us to do so.

Main definitions

  • condExpKernel μ m: kernel such that μ[f | m] =ᵐ[μ] fun ω => ∫ y, f y ∂(condExpKernel μ m ω).

Main statements

  • condExp_ae_eq_integral_condExpKernel: μ[f | m] =ᵐ[μ] fun ω => ∫ y, f y ∂(condExpKernel μ m ω).

Relation between conditional expectation, conditional kernel and the conditional measure.

theorem ProbabilityTheory.condExpKernel.congr_simp E1 #

∀ {Ω : Type u_1} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω] (μ μ_1 : MeasureTheory.Measure Ω)
  (e_μ : μ = μ_1) [inst_1 : MeasureTheory.IsFiniteMeasure μ] (m : MeasurableSpace Ω),
  ProbabilityTheory.condExpKernel μ m = ProbabilityTheory.condExpKernel μ_1 m

theorem MeasureTheory.AEStronglyMeasurable.comp_snd_map_prod_id E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {f : Ω → F},
  m ≤ mΩ →
    ∀ [inst : TopologicalSpace F],
      MeasureTheory.AEStronglyMeasurable f μ →
        MeasureTheory.AEStronglyMeasurable (fun x ↦ f x.2) (MeasureTheory.Measure.map Function.diag μ)

theorem MeasureTheory.Integrable.comp_snd_map_prod_id E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m mΩ : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {f : Ω → F},
  m ≤ mΩ →
    ∀ [inst : NormedAddCommGroup F],
      MeasureTheory.Integrable f μ →
        MeasureTheory.Integrable (fun x ↦ f x.2) (MeasureTheory.Measure.map Function.diag μ)

def ProbabilityTheory.condExpKernel E1 #

{Ω : Type u_1} →
  [mΩ : MeasurableSpace Ω] →
    [StandardBorelSpace Ω] →
      (μ : MeasureTheory.Measure Ω) →
        [MeasureTheory.IsFiniteMeasure μ] → (m : MeasurableSpace Ω) → ProbabilityTheory.Kernel Ω Ω

Kernel associated with the conditional expectation with respect to a σ-algebra. It satisfies μ[f | m] =ᵐ[μ] fun ω => ∫ y, f y ∂(condExpKernel μ m ω). It is defined as the conditional distribution of the identity given the identity, where the second identity is understood as a map from Ω with the σ-algebra mΩ to Ω with σ-algebra m ⊓ mΩ. We use m ⊓ mΩ instead of m to ensure that it is a sub-σ-algebra of mΩ. We then use Kernel.comap to get a kernel from m to mΩ instead of from m ⊓ mΩ to mΩ.

theorem ProbabilityTheory.condExpKernel_eq E0 #

∀ {Ω : Type u_1} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω] (μ : MeasureTheory.Measure Ω)
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] [h : Nonempty Ω] (m : MeasurableSpace Ω),
  ProbabilityTheory.condExpKernel μ m = (ProbabilityTheory.condDistrib id id μ).comap id ⋯

theorem ProbabilityTheory.condExpKernel_apply_eq_condDistrib E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : Nonempty Ω] {ω : Ω},
  (ProbabilityTheory.condExpKernel μ m) ω = (ProbabilityTheory.condDistrib id id μ) (id ω)

instance ProbabilityTheory.instIsMarkovKernelCondExpKernel E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  ProbabilityTheory.IsMarkovKernel (ProbabilityTheory.condExpKernel μ m)

theorem ProbabilityTheory.compProd_trim_condExpKernel E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] (hm : m ≤ mΩ),
  (μ.trim hm).compProd (ProbabilityTheory.condExpKernel μ m) = MeasureTheory.Measure.map Function.diag μ

theorem ProbabilityTheory.condExpKernel_comp_trim E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] (hm : m ≤ mΩ),
  (μ.trim hm).bind ⇑(ProbabilityTheory.condExpKernel μ m) = μ

theorem ProbabilityTheory.measurable_condExpKernel E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : Set Ω},
  MeasurableSet s → Measurable fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω) s

theorem ProbabilityTheory.stronglyMeasurable_condExpKernel E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : Set Ω},
  MeasurableSet s → MeasureTheory.StronglyMeasurable fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω) s

theorem MeasureTheory.StronglyMeasurable.integral_condExpKernel' E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.StronglyMeasurable f →
    MeasureTheory.StronglyMeasurable fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

theorem MeasureTheory.StronglyMeasurable.integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.StronglyMeasurable f →
    MeasureTheory.StronglyMeasurable fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

theorem MeasureTheory.AEStronglyMeasurable.integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.AEStronglyMeasurable f μ →
    MeasureTheory.AEStronglyMeasurable (fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω) μ

theorem ProbabilityTheory.aestronglyMeasurable_integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.AEStronglyMeasurable f μ →
    MeasureTheory.AEStronglyMeasurable (fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω) μ

theorem ProbabilityTheory.aestronglyMeasurable_trim_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  (hm : m ≤ mΩ) (hf : MeasureTheory.AEStronglyMeasurable f μ),
  ∀ᵐ (ω : Ω) ∂μ.trim hm, f =ᵐ[(ProbabilityTheory.condExpKernel μ m) ω] MeasureTheory.AEStronglyMeasurable.mk f hf

theorem MeasureTheory.Integrable.condExpKernel_ae E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F},
  MeasureTheory.Integrable f μ → ∀ᵐ (ω : Ω) ∂μ, MeasureTheory.Integrable f ((ProbabilityTheory.condExpKernel μ m) ω)

theorem MeasureTheory.Integrable.integral_norm_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F},
  MeasureTheory.Integrable f μ →
    MeasureTheory.Integrable (fun ω ↦ ∫ (y : Ω), ‖f y‖ ∂(ProbabilityTheory.condExpKernel μ m) ω) μ

theorem MeasureTheory.Integrable.norm_integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.Integrable f μ →
    MeasureTheory.Integrable (fun ω ↦ ‖∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω‖) μ

theorem MeasureTheory.Integrable.integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F],
  MeasureTheory.Integrable f μ →
    MeasureTheory.Integrable (fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω) μ

theorem ProbabilityTheory.integrable_toReal_condExpKernel E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : Set Ω},
  MeasurableSet s → MeasureTheory.Integrable (fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω).real s) μ

theorem ProbabilityTheory.condExpKernel_ae_eq_condExp' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] {s : Set Ω},
  MeasurableSet s → (fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω).real s) =ᵐ[μ] μ[s.indicator fun ω ↦ 1 | m ⊓ mΩ]

theorem ProbabilityTheory.condExpKernel_ae_eq_condExp E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ],
  m ≤ mΩ →
    ∀ {s : Set Ω},
      MeasurableSet s → (fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω).real s) =ᵐ[μ] μ[s.indicator fun ω ↦ 1 | m]

theorem ProbabilityTheory.condExpKernel_ae_eq_trim_condExp E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] (hm : m ≤ mΩ) {s : Set Ω},
  MeasurableSet s →
    (fun ω ↦ ((ProbabilityTheory.condExpKernel μ m) ω).real s) =ᵐ[μ.trim hm] μ[s.indicator fun ω ↦ 1 | m]

theorem ProbabilityTheory.condDistrib_apply_ae_eq_condExpKernel_map E1 #

∀ {Ω : Type u_1} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω] {μ : MeasureTheory.Measure Ω}
  [inst_1 : MeasureTheory.IsFiniteMeasure μ] {β : Type u_3} {γ : Type u_4} {mβ : MeasurableSpace β}
  {mγ : MeasurableSpace γ} [inst_2 : StandardBorelSpace β] [inst_3 : Nonempty β] {X : Ω → β} {Y : Ω → γ},
  Measurable X →
    Measurable Y →
      ∀ {s : Set β},
        MeasurableSet s →
          (fun a ↦ ((ProbabilityTheory.condDistrib X Y μ) (Y a)) s) =ᵐ[μ] fun a ↦
            (((ProbabilityTheory.condExpKernel μ (MeasurableSpace.comap Y mγ)).map X) a) s

theorem ProbabilityTheory.condExp_ae_eq_integral_condExpKernel' E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F] [CompleteSpace F],
  MeasureTheory.Integrable f μ → μ[f | m ⊓ mΩ] =ᵐ[μ] fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

theorem ProbabilityTheory.condExp_ae_eq_integral_condExpKernel E3 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F] [CompleteSpace F],
  m ≤ mΩ → MeasureTheory.Integrable f μ → μ[f | m] =ᵐ[μ] fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

The conditional expectation of f with respect to a σ-algebra m is almost everywhere equal to the integral ∫ y, f y ∂(condExpKernel μ m ω).

theorem ProbabilityTheory.condExp_ae_eq_trim_integral_condExpKernel_of_stronglyMeasurable E2 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F] [CompleteSpace F] (hm : m ≤ mΩ),
  MeasureTheory.StronglyMeasurable f →
    MeasureTheory.Integrable f μ →
      μ[f | m] =ᵐ[μ.trim hm] fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

Auxiliary lemma for condExp_ae_eq_trim_integral_condExpKernel.

theorem ProbabilityTheory.condExp_ae_eq_trim_integral_condExpKernel E1 #

∀ {Ω : Type u_1} {F : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [inst : StandardBorelSpace Ω]
  {μ : MeasureTheory.Measure Ω} [inst_1 : MeasureTheory.IsFiniteMeasure μ] [inst_2 : NormedAddCommGroup F] {f : Ω → F}
  [inst_3 : NormedSpace ℝ F] [CompleteSpace F] (hm : m ≤ mΩ),
  MeasureTheory.Integrable f μ → μ[f | m] =ᵐ[μ.trim hm] fun ω ↦ ∫ (y : Ω), f y ∂(ProbabilityTheory.condExpKernel μ m) ω

The conditional expectation of f with respect to a σ-algebra m is (μ.trim hm)-almost everywhere equal to the integral ∫ y, f y ∂(condExpKernel μ m ω).

theorem ProbabilityTheory.condExp_generateFrom_singleton E1 #

∀ {Ω : Type u_1} {F : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ]
  {s : Set Ω} [inst : NormedAddCommGroup F] [inst_1 : NormedSpace ℝ F] [CompleteSpace F],
  MeasurableSet s →
    ∀ {f : Ω → F},
      MeasureTheory.Integrable f μ →
        μ[f | MeasurableSpace.generateFrom {s}] =ᵐ[μ.restrict s] fun x ↦ ∫ (x : Ω), f x ∂μ[|s]

theorem ProbabilityTheory.condExp_set_generateFrom_singleton E1 #

∀ {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {s t : Set Ω},
  MeasurableSet s →
    MeasurableSet t → μ[t.indicator fun ω ↦ 1 | MeasurableSpace.generateFrom {s}] =ᵐ[μ.restrict s] fun x ↦ μ[|s].real t

theorem ProbabilityTheory.condExpKernel_singleton_ae_eq_cond E1 #

∀ {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [inst : MeasureTheory.IsFiniteMeasure μ]
  {s t : Set Ω} [inst_1 : StandardBorelSpace Ω],
  MeasurableSet s →
    MeasurableSet t →
      ∀ᵐ (ω : Ω) ∂μ.restrict s, ((ProbabilityTheory.condExpKernel μ (MeasurableSpace.generateFrom {s})) ω) t = μ[t | s]