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.Moments.Basic

78 declarations. Mathlib docs · Source

def ProbabilityTheory.moment E3 #

{Ω : Type u_1} → {m : MeasurableSpace Ω} → (Ω → ℝ) → ℕ → MeasureTheory.Measure Ω → ℝ

Moment of a real random variable, μ[X ^ p].

theorem ProbabilityTheory.moment_def E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} (X : Ω → ℝ) (p : ℕ) (μ : MeasureTheory.Measure Ω),
  ProbabilityTheory.moment X p μ = ∫ (x : Ω), (X ^ p) x ∂μ

def ProbabilityTheory.centralMoment E1 #

{Ω : Type u_1} → {m : MeasurableSpace Ω} → (Ω → ℝ) → ℕ → MeasureTheory.Measure Ω → ℝ

Central moment of a real random variable, μ[(X - μ[X]) ^ p].

theorem ProbabilityTheory.moment_zero E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {p : ℕ} {μ : MeasureTheory.Measure Ω},
  p ≠ 0 → ProbabilityTheory.moment 0 p μ = 0

theorem ProbabilityTheory.moment_zero_measure E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {p : ℕ}, ProbabilityTheory.moment X p 0 = 0

theorem ProbabilityTheory.centralMoment_zero E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {p : ℕ} {μ : MeasureTheory.Measure Ω},
  p ≠ 0 → ProbabilityTheory.centralMoment 0 p μ = 0

theorem ProbabilityTheory.moment_one E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} (X : Ω → ℝ) (μ : MeasureTheory.Measure Ω),
  ProbabilityTheory.moment X 1 μ = ∫ (x : Ω), X x ∂μ

theorem ProbabilityTheory.centralMoment_zero_measure E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {p : ℕ}, ProbabilityTheory.centralMoment X p 0 = 0

theorem ProbabilityTheory.centralMoment_one' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ],
  MeasureTheory.Integrable X μ → ProbabilityTheory.centralMoment X 1 μ = (1 - μ.real Set.univ) * ∫ (x : Ω), X x ∂μ

theorem ProbabilityTheory.centralMoment_one E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
  [MeasureTheory.IsZeroOrProbabilityMeasure μ], ProbabilityTheory.centralMoment X 1 μ = 0

theorem ProbabilityTheory.centralMoment_two_eq_variance E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
  AEMeasurable X μ → ProbabilityTheory.centralMoment X 2 μ = ProbabilityTheory.variance X μ

theorem ProbabilityTheory.centralMoment_congr_ae E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {p : ℕ} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ},
  X =ᵐ[μ] Y → ProbabilityTheory.centralMoment X p μ = ProbabilityTheory.centralMoment Y p μ

Central moments are equal for almost-everywhere equal random variables.

def ProbabilityTheory.mgf E1 #

{Ω : Type u_1} → {m : MeasurableSpace Ω} → (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ → ℝ

Moment-generating function of a real random variable X: fun t => μ[exp(t*X)].

def ProbabilityTheory.cgf E1 #

{Ω : Type u_1} → {m : MeasurableSpace Ω} → (Ω → ℝ) → MeasureTheory.Measure Ω → ℝ → ℝ

Cumulant-generating function of a real random variable X: fun t => log μ[exp(t*X)].

theorem ProbabilityTheory.mgf_zero_fun E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ProbabilityTheory.mgf 0 μ t = μ.real Set.univ

theorem ProbabilityTheory.cgf_zero_fun E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ProbabilityTheory.cgf 0 μ t = Real.log (μ.real Set.univ)

theorem ProbabilityTheory.mgf_zero_measure E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ}, ProbabilityTheory.mgf X 0 = 0

theorem ProbabilityTheory.cgf_zero_measure E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ}, ProbabilityTheory.cgf X 0 = 0

theorem ProbabilityTheory.mgf_const' E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} (c : ℝ),
  ProbabilityTheory.mgf (fun x ↦ c) μ t = μ.real Set.univ * Real.exp (t * c)

theorem ProbabilityTheory.mgf_const E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} (c : ℝ)
  [MeasureTheory.IsProbabilityMeasure μ], ProbabilityTheory.mgf (fun x ↦ c) μ t = Real.exp (t * c)

theorem ProbabilityTheory.cgf_const' E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} [MeasureTheory.IsFiniteMeasure μ],
  μ ≠ 0 → ∀ (c : ℝ), ProbabilityTheory.cgf (fun x ↦ c) μ t = Real.log (μ.real Set.univ) + t * c

theorem ProbabilityTheory.cgf_const E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} [MeasureTheory.IsProbabilityMeasure μ]
  (c : ℝ), ProbabilityTheory.cgf (fun x ↦ c) μ t = t * c

theorem ProbabilityTheory.mgf_zero' E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
  ProbabilityTheory.mgf X μ 0 = μ.real Set.univ

theorem ProbabilityTheory.mgf_zero E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
  [MeasureTheory.IsProbabilityMeasure μ], ProbabilityTheory.mgf X μ 0 = 1

theorem ProbabilityTheory.cgf_zero' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
  ProbabilityTheory.cgf X μ 0 = Real.log (μ.real Set.univ)

theorem ProbabilityTheory.cgf_zero E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω}
  [MeasureTheory.IsZeroOrProbabilityMeasure μ], ProbabilityTheory.cgf X μ 0 = 0

theorem ProbabilityTheory.mgf_undef E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ¬MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ → ProbabilityTheory.mgf X μ t = 0

theorem ProbabilityTheory.cgf_undef E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ¬MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ → ProbabilityTheory.cgf X μ t = 0

theorem ProbabilityTheory.mgf_nonneg E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  0 ≤ ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_pos' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  μ ≠ 0 → MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ → 0 < ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_pos E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsProbabilityMeasure μ],
  MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ → 0 < ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_pos_iff E0 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} [hμ : NeZero μ],
  0 < ProbabilityTheory.mgf X μ t ↔ MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ

theorem ProbabilityTheory.exp_cgf E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} [hμ : NeZero μ],
  MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
    Real.exp (ProbabilityTheory.cgf X μ t) = ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_map E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {Ω' : Type u_3} {mΩ' : MeasurableSpace Ω'} {μ : MeasureTheory.Measure Ω'}
  {Y : Ω' → Ω} {X : Ω → ℝ},
  AEMeasurable Y μ →
    ∀ {t : ℝ},
      MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * X ω)) (MeasureTheory.Measure.map Y μ) →
        ProbabilityTheory.mgf X (MeasureTheory.Measure.map Y μ) t = ProbabilityTheory.mgf (X ∘ Y) μ t

theorem ProbabilityTheory.mgf_id_map E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
  AEMeasurable X μ → ProbabilityTheory.mgf id (MeasureTheory.Measure.map X μ) = ProbabilityTheory.mgf X μ

theorem ProbabilityTheory.mgf_congr E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} {Y : Ω → ℝ},
  X =ᵐ[μ] Y → ProbabilityTheory.mgf X μ t = ProbabilityTheory.mgf Y μ t

theorem ProbabilityTheory.mgf_congr_identDistrib E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_3}
  {mΩ' : MeasurableSpace Ω'} {μ' : MeasureTheory.Measure Ω'} {Y : Ω' → ℝ},
  ProbabilityTheory.IdentDistrib X Y μ μ' → ProbabilityTheory.mgf X μ = ProbabilityTheory.mgf Y μ'

theorem ProbabilityTheory.mgf_neg E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ProbabilityTheory.mgf (-X) μ t = ProbabilityTheory.mgf X μ (-t)

theorem ProbabilityTheory.cgf_neg E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
  ProbabilityTheory.cgf (-X) μ t = ProbabilityTheory.cgf X μ (-t)

theorem ProbabilityTheory.mgf_smul_left E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} (α : ℝ),
  ProbabilityTheory.mgf (α • X) μ t = ProbabilityTheory.mgf X μ (α * t)

theorem ProbabilityTheory.mgf_const_mul E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} (α : ℝ),
  ProbabilityTheory.mgf (fun ω ↦ α * X ω) μ t = ProbabilityTheory.mgf X μ (α * t)

theorem ProbabilityTheory.mgf_const_add E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} (α : ℝ),
  ProbabilityTheory.mgf (fun ω ↦ α + X ω) μ t = Real.exp (t * α) * ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_add_const E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} (α : ℝ),
  ProbabilityTheory.mgf (fun ω ↦ X ω + α) μ t = ProbabilityTheory.mgf X μ t * Real.exp (t * α)

theorem ProbabilityTheory.mgf_add_measure E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  {ν : MeasureTheory.Measure Ω},
  MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) ν →
      ProbabilityTheory.mgf X (μ + ν) t = ProbabilityTheory.mgf X μ t + ProbabilityTheory.mgf X ν t

theorem ProbabilityTheory.mgf_sum_measure E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {t : ℝ} {ι : Type u_3} {μ : ι → MeasureTheory.Measure Ω},
  MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) (MeasureTheory.Measure.sum μ) →
    ProbabilityTheory.mgf X (MeasureTheory.Measure.sum μ) t = ∑' (i : ι), ProbabilityTheory.mgf X (μ i) t

theorem ProbabilityTheory.mgf_smul_measure E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} (c : ENNReal),
  ProbabilityTheory.mgf X (c • μ) t = c.toReal * ProbabilityTheory.mgf X μ t

theorem ProbabilityTheory.mgf_mono_of_nonneg E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} {Y : Ω → ℝ},
  X ≤ᵐ[μ] Y →
    0 ≤ t →
      MeasureTheory.Integrable (fun ω ↦ Real.exp (t * Y ω)) μ →
        ProbabilityTheory.mgf X μ t ≤ ProbabilityTheory.mgf Y μ t

The moment-generating function is monotone in the random variable for t ≥ 0.

theorem ProbabilityTheory.mgf_anti_of_nonpos E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ} {Y : Ω → ℝ},
  X ≤ᵐ[μ] Y →
    t ≤ 0 →
      MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
        ProbabilityTheory.mgf Y μ t ≤ ProbabilityTheory.mgf X μ t

The moment-generating function is antitone in the random variable for t ≤ 0.

theorem ProbabilityTheory.IndepFun.exp_mul E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω → ℝ},
  ProbabilityTheory.IndepFun X Y μ →
    ∀ (s t : ℝ), ProbabilityTheory.IndepFun (fun ω ↦ Real.exp (s * X ω)) (fun ω ↦ Real.exp (t * Y ω)) μ

This is a trivial application of IndepFun.comp but it will come up frequently.

theorem ProbabilityTheory.IndepFun.mgf_add E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X Y : Ω → ℝ},
  ProbabilityTheory.IndepFun X Y μ →
    MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * X ω)) μ →
      MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * Y ω)) μ →
        ProbabilityTheory.mgf (X + Y) μ t = ProbabilityTheory.mgf X μ t * ProbabilityTheory.mgf Y μ t

theorem ProbabilityTheory.IndepFun.mgf_add' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X Y : Ω → ℝ},
  ProbabilityTheory.IndepFun X Y μ →
    MeasureTheory.AEStronglyMeasurable X μ →
      MeasureTheory.AEStronglyMeasurable Y μ →
        ProbabilityTheory.mgf (X + Y) μ t = ProbabilityTheory.mgf X μ t * ProbabilityTheory.mgf Y μ t

theorem ProbabilityTheory.IndepFun.cgf_add E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X Y : Ω → ℝ},
  ProbabilityTheory.IndepFun X Y μ →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      MeasureTheory.Integrable (fun ω ↦ Real.exp (t * Y ω)) μ →
        ProbabilityTheory.cgf (X + Y) μ t = ProbabilityTheory.cgf X μ t + ProbabilityTheory.cgf Y μ t

theorem ProbabilityTheory.aestronglyMeasurable_exp_mul_add E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X Y : Ω → ℝ},
  MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * X ω)) μ →
    MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * Y ω)) μ →
      MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * (X + Y) ω)) μ

theorem ProbabilityTheory.aestronglyMeasurable_exp_mul_sum E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X : ι → Ω → ℝ}
  {s : Finset ι},
  (∀ i ∈ s, MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * X i ω)) μ) →
    MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * (∑ i ∈ s, X i) ω)) μ

theorem ProbabilityTheory.IndepFun.integrable_exp_mul_add E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X Y : Ω → ℝ},
  ProbabilityTheory.IndepFun X Y μ →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      MeasureTheory.Integrable (fun ω ↦ Real.exp (t * Y ω)) μ →
        MeasureTheory.Integrable (fun ω ↦ Real.exp (t * (X + Y) ω)) μ

theorem ProbabilityTheory.iIndepFun.integrable_exp_mul_sum E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsFiniteMeasure μ] {X : ι → Ω → ℝ},
  ProbabilityTheory.iIndepFun X μ →
    (∀ (i : ι), Measurable (X i)) →
      ∀ {s : Finset ι},
        (∀ i ∈ s, MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X i ω)) μ) →
          MeasureTheory.Integrable (fun ω ↦ Real.exp (t * (∑ i ∈ s, X i) ω)) μ

theorem ProbabilityTheory.iIndepFun.mgf_sum₀ E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X : ι → Ω → ℝ},
  ProbabilityTheory.iIndepFun X μ →
    (∀ (i : ι), AEMeasurable (X i) μ) →
      ∀ (s : Finset ι), ProbabilityTheory.mgf (∑ i ∈ s, X i) μ t = ∏ i ∈ s, ProbabilityTheory.mgf (X i) μ t

theorem ProbabilityTheory.iIndepFun.mgf_sum E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X : ι → Ω → ℝ},
  ProbabilityTheory.iIndepFun X μ →
    (∀ (i : ι), Measurable (X i)) →
      ∀ (s : Finset ι), ProbabilityTheory.mgf (∑ i ∈ s, X i) μ t = ∏ i ∈ s, ProbabilityTheory.mgf (X i) μ t

theorem ProbabilityTheory.iIndepFun.cgf_sum₀ E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X : ι → Ω → ℝ},
  ProbabilityTheory.iIndepFun X μ →
    (∀ (i : ι), AEMeasurable (X i) μ) →
      ∀ {s : Finset ι},
        (∀ i ∈ s, MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X i ω)) μ) →
          ProbabilityTheory.cgf (∑ i ∈ s, X i) μ t = ∑ i ∈ s, ProbabilityTheory.cgf (X i) μ t

theorem ProbabilityTheory.iIndepFun.cgf_sum E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {t : ℝ} {X : ι → Ω → ℝ},
  ProbabilityTheory.iIndepFun X μ →
    (∀ (i : ι), Measurable (X i)) →
      ∀ {s : Finset ι},
        (∀ i ∈ s, MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X i ω)) μ) →
          ProbabilityTheory.cgf (∑ i ∈ s, X i) μ t = ∑ i ∈ s, ProbabilityTheory.cgf (X i) μ t

theorem ProbabilityTheory.mgf_congr_of_identDistrib E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (X : Ω → ℝ) {Ω' : Type u_3}
  {m' : MeasurableSpace Ω'} {μ' : MeasureTheory.Measure Ω'} (X' : Ω' → ℝ),
  ProbabilityTheory.IdentDistrib X X' μ μ' → ∀ (t : ℝ), ProbabilityTheory.mgf X μ t = ProbabilityTheory.mgf X' μ' t

theorem ProbabilityTheory.mgf_sum_of_identDistrib₀ E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : ι → Ω → ℝ} {s : Finset ι}
  {j : ι},
  (∀ (i : ι), AEMeasurable (X i) μ) →
    ProbabilityTheory.iIndepFun X μ →
      (∀ i ∈ s, ∀ j ∈ s, ProbabilityTheory.IdentDistrib (X i) (X j) μ μ) →
        j ∈ s → ∀ (t : ℝ), ProbabilityTheory.mgf (∑ i ∈ s, X i) μ t = ProbabilityTheory.mgf (X j) μ t ^ s.card

theorem ProbabilityTheory.mgf_sum_of_identDistrib E1 #

∀ {Ω : Type u_1} {ι : Type u_2} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : ι → Ω → ℝ} {s : Finset ι}
  {j : ι},
  (∀ (i : ι), Measurable (X i)) →
    ProbabilityTheory.iIndepFun X μ →
      (∀ i ∈ s, ∀ j ∈ s, ProbabilityTheory.IdentDistrib (X i) (X j) μ μ) →
        j ∈ s → ∀ (t : ℝ), ProbabilityTheory.mgf (∑ i ∈ s, X i) μ t = ProbabilityTheory.mgf (X j) μ t ^ s.card

theorem ProbabilityTheory.measure_ge_le_exp_mul_mgf E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsFiniteMeasure μ] (ε : ℝ),
  0 ≤ t →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      μ.real {ω | ε ≤ X ω} ≤ Real.exp (-t * ε) * ProbabilityTheory.mgf X μ t

Chernoff bound on the upper tail of a real random variable.

theorem ProbabilityTheory.measure_le_le_exp_mul_mgf E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsFiniteMeasure μ] (ε : ℝ),
  t ≤ 0 →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      μ.real {ω | X ω ≤ ε} ≤ Real.exp (-t * ε) * ProbabilityTheory.mgf X μ t

Chernoff bound on the lower tail of a real random variable.

theorem ProbabilityTheory.measure_ge_le_exp_cgf E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsFiniteMeasure μ] (ε : ℝ),
  0 ≤ t →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      μ.real {ω | ε ≤ X ω} ≤ Real.exp (-t * ε + ProbabilityTheory.cgf X μ t)

Chernoff bound on the upper tail of a real random variable.

theorem ProbabilityTheory.measure_le_le_exp_cgf E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
  [MeasureTheory.IsFiniteMeasure μ] (ε : ℝ),
  t ≤ 0 →
    MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ →
      μ.real {ω | X ω ≤ ε} ≤ Real.exp (-t * ε + ProbabilityTheory.cgf X μ t)

Chernoff bound on the lower tail of a real random variable.

theorem ProbabilityTheory.mgf_dirac E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {x : ℝ},
  ProbabilityTheory.HasLaw X (MeasureTheory.Measure.dirac x) μ →
    ∀ (t : ℝ), ProbabilityTheory.mgf X μ t = Real.exp (x * t)

theorem ProbabilityTheory.mgf_dirac' E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {t : ℝ} [MeasurableSingletonClass Ω] {ω : Ω},
  ProbabilityTheory.mgf X (MeasureTheory.Measure.dirac ω) t = Real.exp (t * X ω)

theorem ProbabilityTheory.aemeasurable_exp_mul E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X : Ω → ℝ} (t : ℝ),
  AEMeasurable X μ → MeasureTheory.AEStronglyMeasurable (fun ω ↦ Real.exp (t * X ω)) μ

theorem ProbabilityTheory.integrable_exp_mul_of_le E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {X : Ω → ℝ}
  (t b : ℝ),
  0 ≤ t → AEMeasurable X μ → (∀ᵐ (ω : Ω) ∂μ, X ω ≤ b) → MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ

theorem ProbabilityTheory.integrable_exp_mul_of_mem_Icc E1 #

∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {X : Ω → ℝ}
  {a b t : ℝ},
  AEMeasurable X μ → (∀ᵐ (ω : Ω) ∂μ, X ω ∈ Set.Icc a b) → MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ

theorem ContinuousLinearMap.integral_comp_id_comm' E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E},
  MeasureTheory.Integrable id μ → ∀ (L : E →L[𝕜] F), ∫ (x : E), L x ∂μ = L (∫ (x : E), id x ∂μ)

theorem ContinuousLinearMap.integral_comp_id_comm E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E},
  MeasureTheory.Integrable id μ → ∀ (L : E →L[𝕜] F), ∫ (x : E), L x ∂μ = L (∫ (x : E), x ∂μ)

theorem ContinuousLinearMap.integral_id_map E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E} [OpensMeasurableSpace E] [inst_11 : MeasurableSpace F] [BorelSpace F]
  [SecondCountableTopology F],
  MeasureTheory.Integrable id μ →
    ∀ (L : E →L[𝕜] F), ∫ (x : F), x ∂MeasureTheory.Measure.map (⇑L) μ = L (∫ (x : E), x ∂μ)

theorem ContinuousLinearEquiv.integral_comp_id_comm' E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E} (L : E ≃L[𝕜] F), ∫ (x : E), L x ∂μ = L (∫ (x : E), id x ∂μ)

theorem ContinuousLinearEquiv.integral_comp_id_comm E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E} (L : E ≃L[𝕜] F), ∫ (x : E), L x ∂μ = L (∫ (x : E), x ∂μ)

theorem ContinuousLinearEquiv.integral_id_map E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : RCLike 𝕜] [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedAddCommGroup F] [inst_3 : NormedSpace 𝕜 E] [inst_4 : NormedSpace ℝ E] [inst_5 : NormedSpace 𝕜 F]
  [inst_6 : NormedSpace ℝ F] [CompleteSpace E] [CompleteSpace F] [inst_9 : MeasurableSpace E]
  {μ : MeasureTheory.Measure E} [BorelSpace E] [inst_11 : MeasurableSpace F] [BorelSpace F] (L : E ≃L[𝕜] F),
  ∫ (x : F), x ∂MeasureTheory.Measure.map (⇑L) μ = L (∫ (x : E), x ∂μ)