Mathlib.Probability.Moments.ComplexMGF
24 declarations. Mathlib docs · Source
The complex-valued moment-generating function
The moment-generating function (mgf) is t : ℝ ↦ μ[fun ω ↦ rexp (t * X ω)]. It can be extended to
a complex function z : ℂ ↦ μ[fun ω ↦ cexp (z * X ω)], which we call complexMGF X μ.
That function is holomorphic on the vertical strip with base the interior of the interval
of definition of the mgf.
On the vertical line that goes through 0, complexMGF X μ is equal to the characteristic function.
This allows us to link properties of the characteristic function and the mgf (mostly deducing
properties of the mgf from those of the characteristic function).
Main definitions
complexMGF X μ: the functionz : ℂ ↦ μ[fun ω ↦ cexp (z * X ω)].
Main results
-
complexMGF_ofReal: forx : ℝ,complexMGF X μ x = mgf X μ x. -
hasDerivAt_complexMGF: for allz : ℂsuch that the real partz.rebelongs to the interior of the interval of definition of the mgf,complexMGF X μis differentiable atzwith derivativeμ[X * exp (z * X)]. -
differentiableOn_complexMGF:complexMGF X μis holomorphic on the vertical strip{z | z.re ∈ interior (integrableExpSet X μ)}. -
analyticOn_complexMGF:complexMGF X μis analytic on the vertical strip{z | z.re ∈ interior (integrableExpSet X μ)}. -
eqOn_complexMGF_of_mgf: if two random variables have the same moment-generating function, then they have the samecomplexMGFon the vertical strip{z | z.re ∈ interior (integrableExpSet X μ)}. Once we know that equalmgfimplies equal distributions, we will be able to show that thecomplexMGFare equal everywhere, not only on the strip. This lemma will be used in the proof of the equality of distributions. -
ext_of_complexMGF_eq: If the complex moment-generating functions of two random variablesXandYwith respect to the finite measuresμ,μ', respectively, coincide, thenμ.map X = μ'.map Y. In other words, complex moment-generating functions separate the distributions of random variables.
TODO
- Prove that if two random variables have the same
mgf, then the have the samecomplexMGF.
Iterated derivatives of complexMGF
We prove that if two random variables have the same mgf, then
they also have the same complexMGF.
def ProbabilityTheory.complexMGF E3 #
{Ω : Type u_1} → {m : MeasurableSpace Ω} → (Ω → ℝ) → MeasureTheory.Measure Ω → ℂ → ℂ
Complex extension of the moment-generating function.
theorem ProbabilityTheory.complexMGF_undef E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
AEMeasurable X μ →
¬MeasureTheory.Integrable (fun ω ↦ Real.exp (z.re * X ω)) μ → ProbabilityTheory.complexMGF X μ z = 0
theorem ProbabilityTheory.complexMGF_id_map E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AEMeasurable X μ → ProbabilityTheory.complexMGF id (MeasureTheory.Measure.map X μ) = ProbabilityTheory.complexMGF X μ
theorem ProbabilityTheory.complexMGF_congr_identDistrib E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {μ' : MeasureTheory.Measure Ω'} {Y : Ω' → ℝ},
ProbabilityTheory.IdentDistrib X Y μ μ' → ProbabilityTheory.complexMGF X μ = ProbabilityTheory.complexMGF Y μ'
theorem ProbabilityTheory.norm_complexMGF_le_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
‖ProbabilityTheory.complexMGF X μ z‖ ≤ ProbabilityTheory.mgf X μ z.re
theorem ProbabilityTheory.complexMGF_ofReal E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (x : ℝ),
ProbabilityTheory.complexMGF X μ ↑x = ↑(ProbabilityTheory.mgf X μ x)
theorem ProbabilityTheory.re_complexMGF_ofReal E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} (x : ℝ),
(ProbabilityTheory.complexMGF X μ ↑x).re = ProbabilityTheory.mgf X μ x
theorem ProbabilityTheory.re_complexMGF_ofReal' E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
(fun x ↦ (ProbabilityTheory.complexMGF X μ ↑x).re) = ProbabilityTheory.mgf X μ
theorem ProbabilityTheory.complexMGF_id_mul_I E1 #
∀ {μ : MeasureTheory.Measure ℝ} (t : ℝ), ProbabilityTheory.complexMGF id μ (↑t * Complex.I) = MeasureTheory.charFun μ t
theorem ProbabilityTheory.complexMGF_mul_I E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AEMeasurable X μ →
∀ (t : ℝ),
ProbabilityTheory.complexMGF X μ (↑t * Complex.I) = MeasureTheory.charFun (MeasureTheory.Measure.map X μ) t
theorem ProbabilityTheory.hasDerivAt_integral_pow_mul_exp E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ),
HasDerivAt (fun z ↦ ∫ (x : Ω), (fun ω ↦ ↑(X ω) ^ n * Complex.exp (z * ↑(X ω))) x ∂μ)
(∫ (x : Ω), (fun ω ↦ ↑(X ω) ^ (n + 1) * Complex.exp (z * ↑(X ω))) x ∂μ) z
For z : ℂ with z.re ∈ interior (integrableExpSet X μ), the derivative of the function
z' ↦ μ[X ^ n * cexp (z' * X)] at z is μ[X ^ (n + 1) * cexp (z * X)].
theorem ProbabilityTheory.hasDerivAt_complexMGF E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
HasDerivAt (ProbabilityTheory.complexMGF X μ) (∫ (x : Ω), (fun ω ↦ ↑(X ω) * Complex.exp (z * ↑(X ω))) x ∂μ) z
For all z : ℂ with z.re ∈ interior (integrableExpSet X μ),
complexMGF X μ is differentiable at z with derivative μ[X * exp (z * X)].
theorem ProbabilityTheory.differentiableOn_complexMGF E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
DifferentiableOn ℂ (ProbabilityTheory.complexMGF X μ) {z | z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ)}
complexMGF X μ is holomorphic on the vertical strip
{z | z.re ∈ interior (integrableExpSet X μ)}.
theorem ProbabilityTheory.analyticOnNhd_complexMGF E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOnNhd ℂ (ProbabilityTheory.complexMGF X μ) {z | z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ)}
theorem ProbabilityTheory.analyticOn_complexMGF E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω},
AnalyticOn ℂ (ProbabilityTheory.complexMGF X μ) {z | z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ)}
complexMGF X μ is analytic on the vertical strip
{z | z.re ∈ interior (integrableExpSet X μ)}.
theorem ProbabilityTheory.analyticAt_complexMGF E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ) → AnalyticAt ℂ (ProbabilityTheory.complexMGF X μ) z
complexMGF X μ is analytic at any point z with z.re ∈ interior (integrableExpSet X μ).
theorem ProbabilityTheory.hasDerivAt_iteratedDeriv_complexMGF E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ),
HasDerivAt (iteratedDeriv n (ProbabilityTheory.complexMGF X μ))
(∫ (x : Ω), (fun ω ↦ ↑(X ω) ^ (n + 1) * Complex.exp (z * ↑(X ω))) x ∂μ) z
theorem ProbabilityTheory.iteratedDeriv_complexMGF E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {z : ℂ},
z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ) →
∀ (n : ℕ),
iteratedDeriv n (ProbabilityTheory.complexMGF X μ) z =
∫ (x : Ω), (fun ω ↦ ↑(X ω) ^ n * Complex.exp (z * ↑(X ω))) x ∂μ
For z : ℂ with z.re ∈ interior (integrableExpSet X μ), the n-th derivative of the function
complexMGF X μ at z is μ[X ^ n * cexp (z * X)].
theorem ProbabilityTheory.integrableExpSet_eq_of_mgf' E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {Y : Ω' → ℝ} {μ' : MeasureTheory.Measure Ω'},
ProbabilityTheory.mgf X μ = ProbabilityTheory.mgf Y μ' →
(μ = 0 ↔ μ' = 0) → ProbabilityTheory.integrableExpSet X μ = ProbabilityTheory.integrableExpSet Y μ'
If two random variables have the same moment-generating function then they have
the same integrableExpSet.
theorem ProbabilityTheory.integrableExpSet_eq_of_mgf E1 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {Y : Ω' → ℝ} {μ' : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure μ],
ProbabilityTheory.mgf X μ = ProbabilityTheory.mgf Y μ' →
ProbabilityTheory.integrableExpSet X μ = ProbabilityTheory.integrableExpSet Y μ'
If two random variables have the same moment-generating function then they have
the same integrableExpSet.
theorem ProbabilityTheory.eqOn_complexMGF_of_mgf' E2 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {Y : Ω' → ℝ} {μ' : MeasureTheory.Measure Ω'},
ProbabilityTheory.mgf X μ = ProbabilityTheory.mgf Y μ' →
(μ = 0 ↔ μ' = 0) →
Set.EqOn (ProbabilityTheory.complexMGF X μ) (ProbabilityTheory.complexMGF Y μ')
{z | z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ)}
If two random variables have the same moment-generating function then they have
the same complexMGF on the vertical strip {z | z.re ∈ interior (integrableExpSet X μ)}.
TODO: once we know that equal mgf implies equal distributions, we will be able to show that
the complexMGF are equal everywhere, not only on the strip.
This lemma will be used in the proof of the equality of distributions.
theorem ProbabilityTheory.eqOn_complexMGF_of_mgf E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {Y : Ω' → ℝ} {μ' : MeasureTheory.Measure Ω'} [MeasureTheory.IsProbabilityMeasure μ],
ProbabilityTheory.mgf X μ = ProbabilityTheory.mgf Y μ' →
Set.EqOn (ProbabilityTheory.complexMGF X μ) (ProbabilityTheory.complexMGF Y μ')
{z | z.re ∈ interior (ProbabilityTheory.integrableExpSet X μ)}
If two random variables have the same moment-generating function then they have
the same complexMGF on the vertical strip {z | z.re ∈ interior (integrableExpSet X μ)}.
theorem MeasureTheory.Measure.ext_of_complexMGF_eq E3 #
∀ {Ω : Type u_1} {m : MeasurableSpace Ω} {X : Ω → ℝ} {μ : MeasureTheory.Measure Ω} {Ω' : Type u_2}
{mΩ' : MeasurableSpace Ω'} {Y : Ω' → ℝ} {μ' : MeasureTheory.Measure Ω'} [MeasureTheory.IsFiniteMeasure μ]
[MeasureTheory.IsFiniteMeasure μ'],
AEMeasurable X μ →
AEMeasurable Y μ' →
ProbabilityTheory.complexMGF X μ = ProbabilityTheory.complexMGF Y μ' →
MeasureTheory.Measure.map X μ = MeasureTheory.Measure.map Y μ'
If the complex moment-generating functions of two random variables X and Y with respect to
the finite measures μ, μ', respectively, coincide, then μ.map X = μ'.map Y. In other words,
complex moment-generating functions separate the distributions of random variables.
theorem MeasureTheory.Measure.ext_of_complexMGF_id_eq E0 #
∀ {μ μ' : MeasureTheory.Measure ℝ} [MeasureTheory.IsFiniteMeasure μ] [MeasureTheory.IsFiniteMeasure μ'],
ProbabilityTheory.complexMGF id μ = ProbabilityTheory.complexMGF id μ' → μ = μ'