Documentation

LeanPool.SemicircleLaw.SemicircleDistribution

Semicircle Distributions over #

We define the real-valued Wigner semicircle distribution.

Main definitions #

Main results #

noncomputable def LeanPool.SemicircleLaw.semicirclePDFReal (μ : ) (v : NNReal) (x : ) :

Probability density function of the semicircle distribution with mean μ and variance v. Note that the square root of a negative number is defined to be zero.

Equations
Instances For
    theorem LeanPool.SemicircleLaw.semicirclePDFReal_def (μ : ) (v : NNReal) :
    semicirclePDFReal μ v = fun (x : ) => 1 / (2 * Real.pi * v) * (4 * v - (x - μ) ^ 2)

    The semicircle pdf is nonnegative.

    The semicircle pdf is continuous.

    The semicircle pdf is measurable.

    The support of the semicircle pdf is contained in [μ - 2√v, μ + 2√v].

    theorem LeanPool.SemicircleLaw.sqrt_semicircle_affine (v : NNReal) {y : } (hy : y Set.Icc (-1) 1) :
    (4 * v - (2 * v * y) ^ 2) = 2 * v * (1 - y ^ 2)
    theorem LeanPool.SemicircleLaw.integral_sqrt_semicircle_interval (μ : ) {v : NNReal} (hv : v 0) :
    (x : ) in μ - 2 * v..μ + 2 * v, (4 * v - (x - μ) ^ 2) = 2 * Real.pi * v

    The unnormalized semicircle kernel has integral 2 * π * v over its support interval.

    The semicircle distribution pdf integrates to 1 when the variance is nonzero.

    The semicircle distribution pdf has total mass 1 when the variance is nonzero.

    noncomputable def LeanPool.SemicircleLaw.semicirclePDF (μ : ) (v : NNReal) (x : ) :

    The ℝ≥0∞-valued pdf of a semicircle distribution on with mean μ and variance v.

    Equations
    Instances For
      theorem LeanPool.SemicircleLaw.semicirclePDFReal_eq_zero_of_notMem (μ : ) (v : NNReal) {x : } (hx : xSet.Icc (μ - 2 * v) (μ + 2 * v)) :

      The semicircle pdf vanishes outside the support [μ - 2√v, μ + 2√v].

      Translating the input translates the mean in the opposite direction.

      Translating the input translates the mean in the opposite direction.

      theorem LeanPool.SemicircleLaw.semicirclePDFReal_inv_mul {μ : } {v : NNReal} {c : } (hc : c 0) (x : ) :
      semicirclePDFReal μ v (c⁻¹ * x) = |c| * semicirclePDFReal (c * μ) (NNReal.mk (c ^ 2) * v) x

      Scaling the input rescales both the mean and variance parameters of the density.

      theorem LeanPool.SemicircleLaw.semicirclePDFReal_mul {μ : } {v : NNReal} {c : } (hc : c 0) (x : ) :
      semicirclePDFReal μ v (c * x) = |c⁻¹| * semicirclePDFReal (c⁻¹ * μ) (NNReal.mk (c ^ 2)⁻¹ * v) x

      Scaling the input rescales both the mean and variance parameters of the density.

      The ℝ≥0∞-valued semicircle density is nonnegative.

      The support of the ℝ≥0∞-valued semicircle density is contained in its support interval.

      theorem LeanPool.SemicircleLaw.semicirclePDF_eq_zero_of_notMem (μ : ) (v : NNReal) {x : } (hx : xSet.Icc (μ - 2 * v) (μ + 2 * v)) :
      semicirclePDF μ v x = 0

      The ℝ≥0∞-valued semicircle density vanishes outside its support interval.

      The semicircle measure has no atoms when the variance is nonzero.

      theorem LeanPool.SemicircleLaw.semicircleReal_apply (μ : ) {v : NNReal} (hv : v 0) (s : Set ) :
      (semicircleReal μ v) s = ∫⁻ (x : ) in s, semicirclePDF μ v x

      The semicircle measure of a set is the set integral of the density when v ≠ 0.

      The semicircle measure of a set as a real integral of the density when v ≠ 0.

      The semicircle measure is absolutely continuous with respect to the Lebesgue measure when the variance is nonzero.

      The Radon-Nikodym derivative of the semicircle measure with respect to the Lebesgue measure equals the pdf almost everywhere when the variance is nonzero.

      theorem LeanPool.SemicircleLaw.integral_semicircleReal_eq_integral_smul {E : Type u_1} [NormedAddCommGroup E] [NormedSpace E] {μ : } {v : NNReal} {f : E} (hv : v 0) :
      (x : ), f x semicircleReal μ v = (x : ), semicirclePDFReal μ v x f x

      Integrating against a non-degenerate semicircle measure is integrating against its density.

      theorem MeasurableEmbedding.semicircleReal_comap_apply {μ : } {v : NNReal} (hv : v 0) {f : } (hf : MeasurableEmbedding f) {f' : } (h_deriv : ∀ (x : ), HasDerivAt f (f' x) x) {s : Set } (hs : MeasurableSet s) :
      theorem MeasurableEquiv.semicircleReal_map_symm_apply {μ : } {v : NNReal} (hv : v 0) (f : ≃ᵐ ) {f' : } (h_deriv : ∀ (x : ), HasDerivAt (⇑f) (f' x) x) {s : Set } (hs : MeasurableSet s) :

      The map of a semicircle distribution by addition of a constant is semicircular.

      The map of a semicircle distribution by addition of a constant is semicircular.

      The map of a semicircle distribution by multiplication by a constant is semicircular.

      The map of a semicircle distribution by multiplication by a constant is semicircular.

      The map of a semicircle distribution by division by a constant is semicircular.

      theorem LeanPool.SemicircleLaw.semicircleReal_add_const {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (y : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => X ω + y) (semicircleReal (μ + y) v) P

      If X has semicircular law with mean μ and variance v, then X + y has semicircular law with mean μ + y and variance v.

      theorem LeanPool.SemicircleLaw.semicircleReal_const_add {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (y : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => y + X ω) (semicircleReal (μ + y) v) P

      If X has semicircular law with mean μ and variance v, then y + X has semicircular law with mean μ + y and variance v.

      theorem LeanPool.SemicircleLaw.semicircleReal_sub_const {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (y : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => X ω - y) (semicircleReal (μ - y) v) P

      If X has semicircular law with mean μ and variance v, then X - y has semicircular law with mean μ - y and variance v.

      theorem LeanPool.SemicircleLaw.semicircleReal_const_mul {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (c : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => c * X ω) (semicircleReal (c * μ) (NNReal.mk (c ^ 2) * v)) P

      If X has semicircular law with mean μ and variance v, then c * X has semicircular law with mean c * μ and variance c ^ 2 * v.

      theorem LeanPool.SemicircleLaw.semicircleReal_mul_const {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (c : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => X ω * c) (semicircleReal (c * μ) (NNReal.mk (c ^ 2) * v)) P

      If X has semicircular law with mean μ and variance v, then X * c has semicircular law with mean c * μ and variance c ^ 2 * v.

      theorem LeanPool.SemicircleLaw.semicircleReal_div_const {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (c : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => X ω / c) (semicircleReal (μ / c) (v / NNReal.mk (c ^ 2) )) P

      If X has semicircular law with mean μ and variance v, then X / c has semicircular law with mean μ / c and variance v / c ^ 2.

      theorem LeanPool.SemicircleLaw.semicircleReal_const_sub {μ : } {v : NNReal} {Ω : Type u_1} { : MeasurableSpace Ω} {P : MeasureTheory.Measure Ω} {X : Ω} (hX : ProbabilityTheory.HasLaw X (semicircleReal μ v) P) (y : ) :
      ProbabilityTheory.HasLaw (fun (ω : Ω) => y - X ω) (semicircleReal (y - μ) v) P

      The identity is almost surely bounded under a semicircle distribution.

      All finite moments of a real semicircle distribution are finite.

      All finite moments of a real semicircle distribution are finite.

      @[simp]
      theorem LeanPool.SemicircleLaw.support_semicirclePDF {μ : } {v : NNReal} (hv : v 0) :
      Function.support (semicirclePDF μ v) = Set.Ioo (μ - 2 * v) (μ + 2 * v)

      The support of the semicircle pdf with mean μ and variance v is the open interval (μ - 2√v, μ + 2√v).

      The real part of the ℝ≥0∞-valued semicircle density coincides with the real-valued density, when the latter is nonnegative.

      The canonical inclusion of ℝ≥0 into ℝ≥0∞ is measurable.

      theorem LeanPool.SemicircleLaw.integral_cos_pow_even (n : ) :
      (x : ) in 0..Real.pi, Real.cos x ^ (2 * n) = Real.pi * kFinset.range n, (2 * k + 1) / (2 * (k + 1))

      The integral of an even power of cosine over [0, π], as a Wallis-type product.

      theorem LeanPool.SemicircleLaw.prod_two_mul_factorial (n : ) :
      xFinset.range n, 2 * (x + 1) = 2 ^ n * n.factorial

      The product ∏_{x < n} 2 * (x + 1) equals 2 ^ n * n!.

      theorem LeanPool.SemicircleLaw.prod_odd_over_even_central_choose (n : ) :
      (∏ xFinset.range n, (2 * x + 1)) / xFinset.range n, 2 * (x + 1) = ((2 * n).choose n) / 2 ^ (2 * n)

      The Wallis product ratio equals the central binomial coefficient divided by 4 ^ n.

      theorem LeanPool.SemicircleLaw.catalan_recur (n : ) :
      (n + 2) * catalan (n + 1) = (4 * n + 2) * catalan n

      The Catalan numbers satisfy the recurrence (n + 2) * C_{n+1} = (4n + 2) * C_n.

      theorem LeanPool.SemicircleLaw.integral_even_pow_mul_sqrt_eq_cos_diff (n : ) :
      (x : ) in -2..2, x ^ (2 * n) * (4 - x ^ 2) = 2 ^ (2 * n + 2) * (( (x : ) in 0..Real.pi, Real.cos x ^ (2 * n)) - (x : ) in 0..Real.pi, Real.cos x ^ (2 * n + 2))

      Reduction of ∫_{-2}^{2} x ^ (2n) √(4 - x ^ 2) to a difference of even cosine-power integrals over [0, π].

      @[simp]

      The mean of a real semicircle distribution semicircleReal μ v is its mean parameter μ.

      theorem LeanPool.SemicircleLaw.integral_scaled_semicircle_eq (v : NNReal) (n : ) (hv : v 0) :
      1 / (2 * Real.pi * v) * (x : ) in -2 * v..2 * v, x ^ (2 * n) * (4 * v - x ^ 2) = v ^ n / (2 * Real.pi) * (x : ) in -2..2, x ^ (2 * n) * (4 - x ^ 2)

      The substitution xx * √v rescales the centered semicircle moment integral to the standard interval [-2, 2].

      theorem LeanPool.SemicircleLaw.wallis_prod_diff_eq_catalan (n : ) :
      2 ^ (2 * n + 1) * (iFinset.range n, (2 * i + 1) / (2 * (i + 1)) - iFinset.range (n + 1), (2 * i + 1) / (2 * (i + 1))) = (catalan n)

      The Wallis product telescopes: 2 ^ (2n+1) times the difference of consecutive Wallis partial products equals the n-th Catalan number.

      theorem LeanPool.SemicircleLaw.integral_centered_pow_semicircleReal (μ : ) (v : NNReal) (n : ) (hv : v 0) :
      (x : ), (x - μ) ^ (2 * n) semicircleReal μ v = 1 / (2 * Real.pi * v) * (x : ) in -2 * v..2 * v, x ^ (2 * n) * (4 * v - x ^ 2)

      The centered 2 * n-th power integral against the semicircle measure, rewritten as a weighted integral of the unnormalized kernel over its centered support interval.

      The 2 * n-th central moment of the semicircle distribution equals v ^ n times the n-th Catalan number.

      The 2 * n-th central moment of the identity equals v ^ n times the n-th Catalan number.

      @[simp]

      The variance of a real semicircle distribution semicircleReal μ v is its variance parameter v.

      @[simp]

      The variance of a real semicircle distribution semicircleReal μ v is its variance parameter v.

      The odd central moments of the semicircle distribution vanish.

      The odd central moments of the identity vanish.