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.Independence.InfinitePi

15 declarations. Mathlib docs · Source

Independence of an infinite family of random variables

In this file we provide several results about independence of arbitrary families of random variables, relying on Measure.infinitePi.

Implementation notes

There are several possible measurability assumptions:

  • The map ω ↦ (Xᵢ(ω))ᵢ is measurable.
  • For all i, the map ω ↦ Xᵢ(ω) is measurable.
  • The map ω ↦ (Xᵢ(ω))ᵢ is almost everywhere measurable.
  • For all i, the map ω ↦ Xᵢ(ω) is almost everywhere measurable.

Although the first two options are equivalent, the last two are not if the index set is not countable.

theorem ProbabilityTheory.iIndepFun.map_fun_eq_infinitePi_map₀ E0 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i},
  AEMeasurable (fun ω i ↦ X i ω) P →
    ProbabilityTheory.iIndepFun X P →
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P

If random variables are independent then their joint distribution is the product measure. This is a version where the random variable ω ↦ (Xᵢ(ω))ᵢ is almost everywhere measurable. See iIndepFun.map_fun_eq_infinitePi_map₀' for a version which only assumes that each Xᵢ is almost everywhere measurable and that ι is countable.

theorem ProbabilityTheory.iIndepFun_iff_map_fun_eq_infinitePi_map₀ E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} [MeasureTheory.IsProbabilityMeasure P],
  AEMeasurable (fun ω i ↦ X i ω) P →
    (ProbabilityTheory.iIndepFun X P ↔
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P)

Random variables are independent iff their joint distribution is the product measure. This is a version where the random variable ω ↦ (Xᵢ(ω))ᵢ is almost everywhere measurable. See iIndepFun_iff_map_fun_eq_infinitePi_map₀' for a version which only assumes that each Xᵢ is almost everywhere measurable and that ι is countable.

theorem ProbabilityTheory.iIndepFun.map_fun_eq_infinitePi_map₀' E0 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} [Countable ι],
  (∀ (i : ι), AEMeasurable (X i) P) →
    ProbabilityTheory.iIndepFun X P →
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P

If random variables are independent then their joint distribution is the product measure. This is an AEMeasurable version of iIndepFun.map_fun_eq_infinitePi_map, which is why it requires ι to be countable.

theorem ProbabilityTheory.iIndepFun_iff_map_fun_eq_infinitePi_map₀' E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} [MeasureTheory.IsProbabilityMeasure P] [Countable ι],
  (∀ (i : ι), AEMeasurable (X i) P) →
    (ProbabilityTheory.iIndepFun X P ↔
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P)

Random variables are independent iff their joint distribution is the product measure. This is an AEMeasurable version of iIndepFun_iff_map_fun_eq_infinitePi_map, which is why it requires ι to be countable.

theorem ProbabilityTheory.iIndepFun.map_fun_eq_infinitePi_map E0 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i},
  (∀ (i : ι), Measurable (X i)) →
    ProbabilityTheory.iIndepFun X P →
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P

If random variables are independent then their joint distribution is the product measure.

theorem ProbabilityTheory.iIndepFun_iff_map_fun_eq_infinitePi_map E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} [MeasureTheory.IsProbabilityMeasure P],
  (∀ (i : ι), Measurable (X i)) →
    (ProbabilityTheory.iIndepFun X P ↔
      MeasureTheory.Measure.map (fun ω i ↦ X i ω) P =
        MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.map (X i) P)

Random variables are independent iff their joint distribution is the product measure.

theorem ProbabilityTheory.iIndepFun.hasLaw_infinitePi E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} {μ : (i : ι) → MeasureTheory.Measure (𝓧 i)},
  (∀ (i : ι), ProbabilityTheory.HasLaw (X i) (μ i) P) →
    ProbabilityTheory.iIndepFun X P →
      AEMeasurable (fun ω i ↦ X i ω) P →
        ProbabilityTheory.HasLaw (fun ω i ↦ X i ω) (MeasureTheory.Measure.infinitePi μ) P

theorem ProbabilityTheory.iIndepFun_iff_hasLaw_Pi_infinitePi E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {𝓧 : ι → Type u_3}
  {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω → 𝓧 i} [MeasureTheory.IsProbabilityMeasure P]
  {μ : (i : ι) → MeasureTheory.Measure (𝓧 i)},
  (∀ (i : ι), ProbabilityTheory.HasLaw (X i) (μ i) P) →
    AEMeasurable (fun ω i ↦ X i ω) P →
      (ProbabilityTheory.iIndepFun X P ↔
        ProbabilityTheory.HasLaw (fun ω i ↦ X i ω) (MeasureTheory.Measure.infinitePi μ) P)

theorem ProbabilityTheory.iIndepFun_infinitePi E1 #

∀ {ι : Type u_1} {𝓧 : ι → Type u_3} {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {Ω : ι → Type u_4}
  {mΩ : (i : ι) → MeasurableSpace (Ω i)} {P : (i : ι) → MeasureTheory.Measure (Ω i)}
  [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (P i)] {X : (i : ι) → Ω i → 𝓧 i},
  (∀ (i : ι), Measurable (X i)) → ProbabilityTheory.iIndepFun (fun i ω ↦ X i (ω i)) (MeasureTheory.Measure.infinitePi P)

Given random variables X i : Ω i → 𝓧 i, they are independent when viewed as random variables defined on the product space Π i, Ω i.

theorem MeasureTheory.Measure.infinitePi_map_eval_prod E1 #

∀ {ι : Type u_1} {Ω : ι → Type u_4} {mΩ : (i : ι) → MeasurableSpace (Ω i)} {P : (i : ι) → MeasureTheory.Measure (Ω i)}
  [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (P i)] {i j : ι},
  i ≠ j → MeasureTheory.Measure.map (fun ω ↦ (ω i, ω j)) (MeasureTheory.Measure.infinitePi P) = (P i).prod (P j)

theorem MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj E0 #

∀ {ι : Type u_1} {α : Type u_4} {Ω : ι → Type u_5} {mΩ : (i : ι) → MeasurableSpace (Ω i)}
  {P : (i : ι) → MeasureTheory.Measure (Ω i)} [∀ (i : ι), MeasureTheory.IsProbabilityMeasure (P i)] {f : α → ι},
  Function.Injective f →
    MeasureTheory.Measure.map (fun ω i ↦ ω (f i)) (MeasureTheory.Measure.infinitePi P) =
      MeasureTheory.Measure.infinitePi fun i ↦ P (f i)

theorem ProbabilityTheory.iIndepFun_uncurry E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {κ : ι → Type u_4}
  {𝓧 : (i : ι) → κ i → Type u_5} {m𝓧 : (i : ι) → (j : κ i) → MeasurableSpace (𝓧 i j)}
  {X : (i : ι) → (j : κ i) → Ω → 𝓧 i j},
  (∀ (i : ι) (j : κ i), Measurable (X i j)) →
    ProbabilityTheory.iIndepFun (fun i ω x ↦ X i x ω) P →
      (∀ (i : ι), ProbabilityTheory.iIndepFun (X i) P) → ProbabilityTheory.iIndepFun (fun p ω ↦ X p.fst p.snd ω) P

Consider ((Xᵢⱼ)ⱼ)ᵢ a family of families of random variables. Assume that for any i, the random variables (Xᵢⱼ)ⱼ are independent. Assume furthermore that the random variables ((Xᵢⱼ)ⱼ)ᵢ are independent. Then the random variables (Xᵢⱼ) indexed by pairs (i, j) are independent.

This is a dependent version of iIndepFun_uncurry'.

theorem ProbabilityTheory.iIndepFun_uncurry_infinitePi E1 #

∀ {ι : Type u_1} {κ : ι → Type u_4} {𝓧 : (i : ι) → κ i → Type u_5} {m𝓧 : (i : ι) → (j : κ i) → MeasurableSpace (𝓧 i j)}
  {Ω : (i : ι) → κ i → Type u_6} {mΩ : (i : ι) → (j : κ i) → MeasurableSpace (Ω i j)}
  {X : (i : ι) → (j : κ i) → Ω i j → 𝓧 i j} (μ : (i : ι) → (j : κ i) → MeasureTheory.Measure (Ω i j))
  [∀ (i : ι) (j : κ i), MeasureTheory.IsProbabilityMeasure (μ i j)],
  (∀ (i : ι) (j : κ i), Measurable (X i j)) →
    ProbabilityTheory.iIndepFun (fun p ω ↦ X p.fst p.snd (ω p.fst p.snd))
      (MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.infinitePi (μ i))

Given random variables X i j : Ω i j → 𝓧 i j, they are independent when viewed as random variables defined on the product space Π i, Π j, Ω i j.

theorem ProbabilityTheory.iIndepFun_uncurry' E1 #

∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {κ : Type u_4}
  {𝓧 : ι → κ → Type u_5} {m𝓧 : (i : ι) → (j : κ) → MeasurableSpace (𝓧 i j)} {X : (i : ι) → (j : κ) → Ω → 𝓧 i j},
  (∀ (i : ι) (j : κ), Measurable (X i j)) →
    ProbabilityTheory.iIndepFun (fun i ω x ↦ X i x ω) P →
      (∀ (i : ι), ProbabilityTheory.iIndepFun (X i) P) → ProbabilityTheory.iIndepFun (fun p ω ↦ X p.1 p.2 ω) P

Consider ((Xᵢⱼ)ⱼ)ᵢ a family of families of random variables. Assume that for any i, the random variables (Xᵢⱼ)ⱼ are independent. Assume furthermore that the random variables ((Xᵢⱼ)ⱼ)ᵢ are independent. Then the random variables (Xᵢⱼ) indexed by pairs (i, j) are independent.

This is a non-dependent version of iIndepFun_uncurry.

theorem ProbabilityTheory.iIndepFun_uncurry_infinitePi' E1 #

∀ {ι : Type u_1} {κ : Type u_4} {𝓧 : ι → κ → Type u_5} {m𝓧 : (i : ι) → (j : κ) → MeasurableSpace (𝓧 i j)}
  {Ω : ι → κ → Type u_6} {mΩ : (i : ι) → (j : κ) → MeasurableSpace (Ω i j)} {X : (i : ι) → (j : κ) → Ω i j → 𝓧 i j}
  (μ : (i : ι) → (j : κ) → MeasureTheory.Measure (Ω i j))
  [∀ (i : ι) (j : κ), MeasureTheory.IsProbabilityMeasure (μ i j)],
  (∀ (i : ι) (j : κ), Measurable (X i j)) →
    ProbabilityTheory.iIndepFun (fun p ω ↦ X p.1 p.2 (ω p.1 p.2))
      (MeasureTheory.Measure.infinitePi fun i ↦ MeasureTheory.Measure.infinitePi (μ i))

Given random variables X i j : Ω i j → 𝓧 i j, they are independent when viewed as random variables defined on the product space Π i, Π j, Ω i j.