Mathlib.Probability.Moments.MGFAnalytic
27 declarations. Mathlib docs · Source
The moment-generating function is analytic
The moment-generating function mgf X μ of a random variable X with respect to a measure μ
is analytic on the interior of integrableExpSet X μ, the interval on which it is defined.
Main results
-
analyticOn_mgf: the moment-generating function is analytic on the interior of the interval on which it is defined. -
iteratedDeriv_mgf: the n-th derivative of the mgf attisμ[X ^ n * exp (t * X)]. -
analyticOn_cgf: the cumulant-generating function is analytic on the interior of the intervalintegrableExpSet X μ.
theorem ProbabilityTheory.hasDerivAt_integral_pow_mul_exp_real E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ),
HasDerivAt (fun t ↦ ∫ (x : Ω), (fun ω ↦ X ω ^ n * Real.exp (t * X ω)) x ∂μ)
(∫ (x : Ω), (fun ω ↦ X ω ^ (n + 1) * Real.exp (t * X ω)) x ∂μ) t
For t : ℝ with t ∈ interior (integrableExpSet X μ), the derivative of the function
x ↦ μ[X ^ n * exp (x * X)] at t is μ[X ^ (n + 1) * exp (t * X)].
theorem ProbabilityTheory.hasDerivAt_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
HasDerivAt (ProbabilityTheory.mgf X μ) (∫ (x : Ω), (fun ω ↦ X ω * Real.exp (t * X ω)) x ∂μ) t
For t ∈ interior (integrableExpSet X μ), the derivative of mgf X μ at t is
μ[X * exp (t * X)].
theorem ProbabilityTheory.hasDerivAt_iteratedDeriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ),
HasDerivAt (iteratedDeriv n (ProbabilityTheory.mgf X μ))
(∫ (x : Ω), (fun ω ↦ X ω ^ (n + 1) * Real.exp (t * X ω)) x ∂μ) t
theorem ProbabilityTheory.iteratedDeriv_mgf E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ), iteratedDeriv n (ProbabilityTheory.mgf X μ) t = ∫ (x : Ω), (fun ω ↦ X ω ^ n * Real.exp (t * X ω)) x ∂μ
For t ∈ interior (integrableExpSet X μ), the n-th derivative of mgf X μ at t is
μ[X ^ n * exp (t * X)].
theorem ProbabilityTheory.iteratedDeriv_mgf_zero E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
0 ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ), iteratedDeriv n (ProbabilityTheory.mgf X μ) 0 = ∫ (x : Ω), (X ^ n) x ∂μ
The derivatives of the moment-generating function at zero are the moments.
theorem ProbabilityTheory.deriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
deriv (ProbabilityTheory.mgf X μ) t = ∫ (x : Ω), (fun ω ↦ X ω * Real.exp (t * X ω)) x ∂μ
For t ∈ interior (integrableExpSet X μ), the derivative of mgf X μ at t is
μ[X * exp (t * X)].
theorem ProbabilityTheory.deriv_mgf_zero E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
0 ∈ interior (ProbabilityTheory.integrableExpSet X μ) → deriv (ProbabilityTheory.mgf X μ) 0 = ∫ (x : Ω), X x ∂μ
theorem ProbabilityTheory.analyticAt_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) → AnalyticAt ℝ (ProbabilityTheory.mgf X μ) t
The moment-generating function is analytic at every t ∈ interior (integrableExpSet X μ).
theorem ProbabilityTheory.analyticOnNhd_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOnNhd ℝ (ProbabilityTheory.mgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.analyticOn_mgf E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOn ℝ (ProbabilityTheory.mgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
The moment-generating function is analytic on the interior of the interval on which it is defined.
theorem ProbabilityTheory.hasFPowerSeriesAt_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
HasFPowerSeriesAt (ProbabilityTheory.mgf X μ)
(FormalMultilinearSeries.ofScalars ℝ fun n ↦
(∫ (x : Ω), (fun ω ↦ X ω ^ n * Real.exp (v * X ω)) x ∂μ) / ↑n.factorial)
v
theorem ProbabilityTheory.differentiableAt_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ},
t ∈ interior (ProbabilityTheory.integrableExpSet X μ) → DifferentiableAt ℝ (ProbabilityTheory.mgf X μ) t
theorem ProbabilityTheory.differentiableOn_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
DifferentiableOn ℝ (ProbabilityTheory.mgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.continuousOn_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
ContinuousOn (ProbabilityTheory.mgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.continuous_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
(∀ (t : ℝ), MeasureTheory.Integrable (fun ω ↦ Real.exp (t * X ω)) μ) → Continuous (ProbabilityTheory.mgf X μ)
theorem ProbabilityTheory.analyticOnNhd_iteratedDeriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (n : ℕ),
AnalyticOnNhd ℝ (iteratedDeriv n (ProbabilityTheory.mgf X μ)) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.analyticOn_iteratedDeriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (n : ℕ),
AnalyticOn ℝ (iteratedDeriv n (ProbabilityTheory.mgf X μ)) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.analyticAt_iteratedDeriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ), AnalyticAt ℝ (iteratedDeriv n (ProbabilityTheory.mgf X μ)) v
theorem ProbabilityTheory.differentiableAt_iteratedDeriv_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ), DifferentiableAt ℝ (iteratedDeriv n (ProbabilityTheory.mgf X μ)) v
theorem ProbabilityTheory.analyticAt_cgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) → AnalyticAt ℝ (ProbabilityTheory.cgf X μ) v
theorem ProbabilityTheory.analyticOnNhd_cgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOnNhd ℝ (ProbabilityTheory.cgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
theorem ProbabilityTheory.analyticOn_cgf E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOn ℝ (ProbabilityTheory.cgf X μ) (interior (ProbabilityTheory.integrableExpSet X μ))
The cumulant-generating function is analytic on the interior of the interval
integrableExpSet X μ.
theorem ProbabilityTheory.deriv_cgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
deriv (ProbabilityTheory.cgf X μ) v =
(∫ (x : Ω), (fun ω ↦ X ω * Real.exp (v * X ω)) x ∂μ) / ProbabilityTheory.mgf X μ v
theorem ProbabilityTheory.deriv_cgf_zero E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
0 ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
deriv (ProbabilityTheory.cgf X μ) 0 = (∫ (x : Ω), X x ∂μ) / μ.real Set.univ
theorem ProbabilityTheory.iteratedDeriv_two_cgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
iteratedDeriv 2 (ProbabilityTheory.cgf X μ) v =
(∫ (x : Ω), (fun ω ↦ X ω ^ 2 * Real.exp (v * X ω)) x ∂μ) / ProbabilityTheory.mgf X μ v -
deriv (ProbabilityTheory.cgf X μ) v ^ 2
theorem ProbabilityTheory.iteratedDeriv_two_cgf_eq_integral E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {v : ℝ},
v ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
iteratedDeriv 2 (ProbabilityTheory.cgf X μ) v =
(∫ (x : Ω), (fun ω ↦ (X ω - deriv (ProbabilityTheory.cgf X μ) v) ^ 2 * Real.exp (v * X ω)) x ∂μ) /
ProbabilityTheory.mgf X μ v
theorem ProbabilityTheory.exists_cgf_eq_iteratedDeriv_two_cgf_mul E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {t : ℝ}
[MeasureTheory.IsZeroOrProbabilityMeasure μ],
0 < t →
∫ (x : Ω), X x ∂μ = 0 →
Set.Icc 0 t ⊆ interior (ProbabilityTheory.integrableExpSet X μ) →
∃ u ∈ Set.Ioo 0 t, ProbabilityTheory.cgf X μ t = iteratedDeriv 2 (ProbabilityTheory.cgf X μ) u * t ^ 2 / 2