Documentation

TauCeti.Probability.Distributions.StudentT.Basic

Student's t distribution #

Student's t law with ν degrees of freedom is the symmetric law on the line with density proportional to (1 + x ^ 2 / ν) ^ (-(ν + 1) / 2). This file defines it, proves that it is a probability measure for 0 < ν, identifies it as a MeasureTheory.HasPDF law with that density, records its reflection symmetry, and identifies the one degree of freedom member of the family with the standard Cauchy law. Polynomial and exponential moment results live in TauCeti/Probability/Distributions/StudentT/Moments.lean.

Boundary. The number of degrees of freedom must be positive for the density to normalize, so both studentTPDFReal and studentTMeasure are defined to vanish for ν ≤ 0 (studentTMeasure_of_nonpos); every formula describing the probability law carries 0 < ν as a hypothesis.

Main definitions #

Main results #

Implementation #

The whole analytic content is the normalization. Scaling by √ν with MeasureTheory.integral_comp_mul_left reduces the total mass of (1 + x ^ 2 / ν) ^ (-(ν + 1) / 2) to that of the Cauchy-type kernel (1 + x ^ 2) ^ (-(ν + 1) / 2), which is TauCeti.integral_one_add_sq_rpow: the value Β(1 / 2, ν / 2) of Euler's second beta integral. Writing that value as a quotient of Gamma values cancels the normalizing constant exactly. The moment modules reuse the same normalization and symmetry facts.

References #

The density #

noncomputable def TauCeti.Probability.studentTPDFReal (ν x : ) :

The density of Student's t law with ν degrees of freedom, as a real-valued function.

For ν ≤ 0 there is no such law and the density is 0.

Equations
Instances For
    noncomputable def TauCeti.Probability.studentTPDF (ν x : ) :

    The density of Student's t law, as a function valued in ℝ≥0∞.

    Equations
    Instances For
      @[simp]
      theorem TauCeti.Probability.studentTPDFReal_of_nonpos {ν : } ( : ν 0) (x : ) :

      Outside the valid parameter range the density vanishes.

      @[simp]
      theorem TauCeti.Probability.studentTPDFReal_of_pos {ν : } ( : 0 < ν) (x : ) :
      studentTPDFReal ν x = Real.Gamma ((ν + 1) / 2) / ((ν * Real.pi) * Real.Gamma (ν / 2)) * (1 + x ^ 2 / ν) ^ (-((ν + 1) / 2))

      For a positive number of degrees of freedom the density is the Student t formula.

      @[simp]
      theorem TauCeti.Probability.studentTPDF_of_pos {ν : } ( : 0 < ν) (x : ) :
      studentTPDF ν x = ENNReal.ofReal (Real.Gamma ((ν + 1) / 2) / ((ν * Real.pi) * Real.Gamma (ν / 2)) * (1 + x ^ 2 / ν) ^ (-((ν + 1) / 2)))

      For a positive number of degrees of freedom the ℝ≥0∞-valued density is the Student t formula.

      @[simp]
      theorem TauCeti.Probability.studentTPDF_of_nonpos {ν : } ( : ν 0) (x : ) :
      studentTPDF ν x = 0

      Outside the valid parameter range the ℝ≥0∞-valued density vanishes.

      theorem TauCeti.Probability.studentT_const_pos {ν : } ( : 0 < ν) :
      0 < Real.Gamma ((ν + 1) / 2) / ((ν * Real.pi) * Real.Gamma (ν / 2))

      The normalizing constant of Student's t law is positive.

      theorem TauCeti.Probability.studentTPDFReal_pos {ν : } ( : 0 < ν) (x : ) :

      For a positive number of degrees of freedom the density is strictly positive everywhere: the Student t law has no vanishing tail.

      The Student t density is nonnegative at every parameter, valid or not.

      @[simp]

      The two Student t densities agree under ENNReal.toReal; the density is never infinite.

      The ℝ≥0∞-valued Student t density is finite.

      @[simp]

      The Student t density is even in the sample point.

      @[simp]

      The ℝ≥0∞-valued Student t density is even in the sample point.

      The real-valued Student t density is measurable.

      The ℝ≥0∞-valued Student t density is measurable.

      The measure and its total mass #

      Student's t probability measure with ν degrees of freedom.

      For ν ≤ 0 this is the zero measure, not a probability measure; see studentTMeasure_of_nonpos.

      This is presented as Lebesgue measure with density studentTPDF ν; use studentTMeasure_def when a proof needs the withDensity representation.

      Equations
      Instances For

        The defining withDensity presentation of Student's t measure.

        @[simp]

        Outside the valid parameter range Student's t law is the zero measure.

        The Student t density is integrable on the whole line for every parameter.

        theorem TauCeti.Probability.integral_studentTPDFReal {ν : } ( : 0 < ν) :
        (x : ), studentTPDFReal ν x = 1

        The Student t density integrates to 1.

        The ℝ≥0∞-valued Student t density has total mass 1.

        For a positive number of degrees of freedom Student's t law is a probability measure.

        Absolute continuity #

        A random variable with a Student t law has a density.

        The Radon–Nikodym derivative of a Student t law against Lebesgue measure is studentTPDF.

        Student's t measure is absolutely continuous with respect to Lebesgue measure.

        A Student t law presented through its real-valued density.

        The real mass of a measurable set under a Student t law is the integral of its real-valued density.

        Symmetry #

        Student's t law is invariant under reflection in the origin: its density is even and Lebesgue measure is reflection invariant.

        One degree of freedom #

        With one degree of freedom the Student t density is the standard Cauchy density.

        Student's t law with one degree of freedom is the standard Cauchy law.

        Parameter measurability #

        The Student t density is jointly measurable in the degrees of freedom and the sample point.

        The Student t family is measurable in its degrees of freedom.