MathFin
Map / Probability · Laws / MathFin.Probability.Laws.StudentT

The Student-t law

MathFin.Probability.Laws.StudentTMSC 60E05MSC 91G70 source

The standard (unit-scale) Student-t law with ν > 0 degrees of freedom is the law on ℝ with density proportional to the kernel (1 + x²/ν)^(-(ν+1)/2).

Mathlib has no Student-t law at this pin. This file builds it as volume.withDensity of the normalized kernel, studentTPDFReal ν x = k_ν(x) / C_ν with C_ν = ∫ k_ν (studentTNormConst), so that it integrates to one by construction. The kernel is integrable for every ν > 0 by Mathlib's Japanese-bracket bound integrable_rpow_neg_one_add_norm_sq. The constant is then computed, C_ν = √(νπ) Γ(ν/2) / Γ((ν+1)/2), by writing the kernel as a Gamma mixture of Gaussian kernels and exchanging the integrals, so the density is the textbook one.

Main definitions

  • studentTKernel: the unnormalised kernel k_ν(x) = (1 + x²/ν)^(-(ν+1)/2).
  • studentTNormConst: the normalising constant C_ν = ∫ k_ν (equal to √(νπ) Γ(ν/2) / Γ((ν+1)/2) for ν > 0, by studentTNormConst_eq).
  • studentTPDFReal, studentTPDF: the density k_ν / C_ν, real- and ℝ≥0∞-valued.
  • studentTMeasure: the standard Student-t law, volume.withDensity (studentTPDF ν); a probability measure for ν > 0.

Main results

  • isProbabilityMeasure_studentTMeasure: the Student-t law is a probability measure for ν > 0.
  • studentTNormConst_eq, studentTPDFReal_eq: the normalizing constant and the density in closed form, g_ν(x) = Γ((ν+1)/2) / (√(νπ) Γ(ν/2)) · (1 + x²/ν)^(-(ν+1)/2).
  • studentTMeasure_one: at ν = 1 it is Mathlib's standard Cauchy law cauchyMeasure 0 1.
  • integrable_mul_studentTPDFReal: the law has a finite mean for ν > 1.
  • setIntegral_Ioi_mul_studentTPDFReal: the tail first moment ∫_q^∞ t g_ν(t) dt = g_ν(q) (ν + q²)/(ν − 1) for ν > 1, the integral behind the McNeil–Frey–Embrechts expected-shortfall closed form.

References

  • A. J. McNeil, R. Frey and P. Embrechts, Quantitative Risk Management: Concepts, Techniques and Tools [McNeilFreyEmbrechts]

Tags

Student-t distribution, heavy tails, Cauchy distribution, expected shortfall, degrees of freedom, Gamma mixture, MSC 60E05, MSC 91G70

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

qrm-student-t-density · quantitative_risk_management.json · full statement
Student-t Density in Closed Form

The Student-t law studentTMeasure ν (built in MathFin as Lebesgue measure with density k_ν/∫k_ν, k_ν(x) = (1 + x²/ν)^(-(ν+1)/2)) has, for ν > 0, the textbook density g_ν(x) = Γ((ν+1)/2)/(√(νπ)Γ(ν/2))·(1 + x²/ν)^(-(ν+1)/2): the normalizing integral ∫k_ν equals √(νπ)Γ(ν/2)/Γ((ν+1)/2).

qrm-student-t-cauchy · quantitative_risk_management.json · full statement
Student-t Law with One Degree of Freedom Is Cauchy

The Student-t law with ν = 1 degree of freedom equals Mathlib's standard Cauchy law: studentTMeasure 1 = cauchyMeasure 0 1.

Declarations 26

defMathFin.studentTKernelsource
ℝ → ℝ → ℝ

The unnormalized Student-t kernel k_ν(x) = (1 + x²/ν)^(-(ν+1)/2).

theoremMathFin.studentTKernel_possource
∀ {ν : ℝ}, 0 < ν → ∀ (x : ℝ), 0 < studentTKernel ν x
theoremMathFin.continuous_studentTKernelsource
∀ {ν : ℝ}, 0 < ν → Continuous (studentTKernel ν)
theoremMathFin.integrable_studentTKernelsource
∀ {ν : ℝ}, 0 < ν → Integrable (studentTKernel ν) volume

The kernel is integrable for every ν > 0: it is the Japanese bracket (1 + ‖y‖²)^(-r/2) with r = ν + 1 > 1 = dim ℝ, at y = x/√ν.

defMathFin.studentTNormConstsource
ℝ → ℝ

The normalizing constant C_ν = ∫ k_ν; positive for ν > 0 (studentTNormConst_pos). For ν ≤ 0 the value is junk.

theoremMathFin.studentTNormConst_possource
∀ {ν : ℝ}, 0 < ν → 0 < studentTNormConst ν
theoremMathFin.integral_rpow_mul_exp_neg_mul_one_add_sq_divsource
∀ {ν : ℝ}, 0 < ν → ∀ (u : ℝ), ∫ (x : ℝ), u ^ ((ν + 1) / 2 - 1) * Real.exp (-((1 + x ^ 2 / ν) * u)) = u ^ ((ν + 1) / 2 - 1) * Real.exp (-u) * √(Real.pi / (u / ν))

The inner Gaussian integral: integrating the mixture integrand over x gives u^(s−1) e^(−u) √(π/(u/ν)).

theoremMathFin.rpow_mul_exp_mul_sqrt_pi_div_eqsource
∀ {ν u : ℝ}, 0 < u → u ^ ((ν + 1) / 2 - 1) * Real.exp (-u) * √(Real.pi / (u / ν)) = √(ν * Real.pi) * (Real.exp (-u) * u ^ (ν / 2 - 1))

The outer integrand, rearranged: for u > 0, u^(s−1) e^(−u) √(π/(u/ν)) = √(νπ) · e^(−u) u^(ν/2−1), the Gamma integrand at ν/2.

theoremMathFin.studentTNormConst_eqsource
∀ {ν : ℝ}, 0 < ν → studentTNormConst ν = √(ν * Real.pi) * Real.Gamma (ν / 2) / Real.Gamma ((ν + 1) / 2)

The Student-t normalizing constant: C_ν = √(νπ) Γ(ν/2) / Γ((ν+1)/2) (equivalently √ν · B(1/2, ν/2)). Proved by writing the kernel as a Gamma mixture of Gaussian kernels and exchanging the two integrals (Fubini, integrability via integrable_prod_iff').

defMathFin.studentTPDFRealsource
ℝ → ℝ → ℝ

The standard Student-t density g_ν(x) = k_ν(x) / C_ν; a probability density for ν > 0 (integral_studentTPDFReal). For ν ≤ 0 the value is junk.

defMathFin.studentTPDFsource
ℝ → ℝ → ENNReal

The Student-t density as an ℝ≥0∞-valued function.

theoremMathFin.studentTPDFReal_possource
∀ {ν : ℝ}, 0 < ν → ∀ (x : ℝ), 0 < studentTPDFReal ν x
theoremMathFin.studentTPDFReal_eqsource
∀ {ν : ℝ}, 0 < ν → ∀ (x : ℝ), studentTPDFReal ν x = Real.Gamma ((ν + 1) / 2) / (√(ν * Real.pi) * Real.Gamma (ν / 2)) * (1 + x ^ 2 / ν) ^ (-(ν + 1) / 2)

The textbook Student-t density: g_ν(x) = Γ((ν+1)/2) / (√(νπ) Γ(ν/2)) · (1 + x²/ν)^(-(ν+1)/2).

theoremMathFin.integrable_studentTPDFRealsource
∀ {ν : ℝ}, 0 < ν → Integrable (studentTPDFReal ν) volume
theoremMathFin.integral_studentTPDFRealsource
∀ {ν : ℝ}, 0 < ν → ∫ (x : ℝ), studentTPDFReal ν x = 1
theoremMathFin.lintegral_studentTPDFsource
∀ {ν : ℝ}, 0 < ν → ∫⁻ (x : ℝ), studentTPDF ν x = 1
defMathFin.studentTMeasuresource
ℝ → Measure ℝ

The standard Student-t law with ν degrees of freedom; a probability measure for ν > 0 (isProbabilityMeasure_studentTMeasure). For ν ≤ 0 the value is junk.

theoremMathFin.isProbabilityMeasure_studentTMeasuresource
∀ {ν : ℝ}, 0 < ν → IsProbabilityMeasure (studentTMeasure ν)
theoremMathFin.measurable_studentTPDFRealsource
∀ (ν : ℝ), Measurable (studentTPDFReal ν)
theoremMathFin.measurable_studentTPDFsource
∀ (ν : ℝ), Measurable (studentTPDF ν)
theoremMathFin.nullSingletonClass_studentTMeasure @[instance]source
∀ (ν : ℝ), NullSingletonClass (studentTMeasure ν)

The Student-t law has a density, so it charges no single point.

theoremMathFin.studentTKernel_onesource
∀ (x : ℝ), studentTKernel 1 x = (1 + x ^ 2)⁻¹
theoremMathFin.studentTNormConst_onesource
studentTNormConst 1 = Real.pi
theoremMathFin.studentTMeasure_onesource
studentTMeasure 1 = cauchyMeasure 0 1

At one degree of freedom the Student-t law is the standard Cauchy law, Mathlib's cauchyMeasure 0 1.

theoremMathFin.integrable_mul_studentTPDFRealsource
∀ {ν : ℝ}, 1 < ν → Integrable (fun x => x * studentTPDFReal ν x) volume

For ν > 1 the law has a finite mean: |x| g_ν(x) ≤ (√ν / C_ν) (1 + x²/ν)^(-ν/2), a Japanese bracket with r = ν > 1.

theoremMathFin.setIntegral_Ioi_mul_studentTPDFRealsource
∀ {ν : ℝ}, 1 < ν → ∀ (q : ℝ), ∫ (t : ℝ) in Set.Ioi q, t * studentTPDFReal ν t = studentTPDFReal ν q * ((ν + q ^ 2) / (ν - 1))

The tail first moment of the Student-t law: for ν > 1, ∫_q^∞ t g_ν(t) dt = g_ν(q) (ν + q²)/(ν − 1). The antiderivative of t g_ν(t) is −(ν/(ν−1)) C_ν⁻¹ (1 + t²/ν)^((1−ν)/2), which vanishes at +∞ because ν > 1.