Documentation

TauCeti.Probability.Distributions.Cauchy.Basic

Elementary theory of the Cauchy law #

This file develops the elementary transform theory of Mathlib's Cauchy law. For nonzero scale γ the cumulative distribution function at x is

1 / 2 + arctan ((x - x₀) / γ) / π,

and for every scale, including the degenerate one, the characteristic function is

t ↦ exp (t x₀ i - γ |t|).

The nondegenerate law has no first absolute moment, and its exponential integrand is integrable only at rate zero. These statements record the sharp heavy-tail behavior that distinguishes the Cauchy family from the light-tailed distributions developed alongside it.

At scale zero Mathlib defines cauchyMeasure x₀ 0 to be the Dirac mass at x₀. The file records the corresponding cumulative distribution function, mean, variance, exponential-integrability domain, moment-generating function, and cumulant-generating function. Keeping the singular case separate prevents the density calculation for positive scale from being applied where the law is not absolutely continuous; the characteristic function, by contrast, is a single formula covering both cases.

The characteristic function is obtained from the Fourier inversion theorem applied to TauCeti.fourier_exp_neg_mul_abs: the Fourier transform of the two-sided exponential of rate 2 π γ is the centred Cauchy density of scale γ, so inverting it pairs that density against exp (i t x) and returns the two-sided exponential again. The exponent in the resulting formula is linear in x₀ and γ, so products of characteristic functions add the locations and scales. Hence convolving Cauchy laws adds their parameters, and scaling a sum of n independent copies by 1 / n restores the original parameters. Thus the sample mean of independent Cauchy variables with a common location and scale has exactly the parent law.

Main results #

References #

Provenance #

The centred-density quadratic decay estimate is adapted from the Cauchy-lattice Poisson development in the [AIQ-Kitware DKPS formalization] (https://github.com/AIQ-Kitware/aiq-dkps-formalization), Apache-2.0; Jon Crall and GPT 5.6 High.

The centred Cauchy density is O(|x|⁻²) at infinity, including zero scale.

The Cauchy density is smooth, including at zero scale, where it vanishes identically.

theorem TauCeti.Probability.hasDerivAt_arctan_div_pi (x₀ : ℝ) (γ : NNReal) (y : ℝ) :
HasDerivAt (fun (z : ℝ) => Real.arctan ((z - x₀) / ↑γ) / Real.pi) (ProbabilityTheory.cauchyPDFReal x₀ γ y) y

The scaled arctangent has the Cauchy density as its derivative.

theorem TauCeti.Probability.integral_Iic_cauchyPDFReal (x₀ : ℝ) {γ : NNReal} (hγ : γ ≠ 0) (x : ℝ) :
∫ (y : ℝ) in Set.Iic x, ProbabilityTheory.cauchyPDFReal x₀ γ y = 1 / 2 + Real.arctan ((x - x₀) / ↑γ) / Real.pi

The integral of a nondegenerate Cauchy density over a left half-line is given by the scaled arctangent.

@[simp]
theorem TauCeti.Probability.cdf_cauchyMeasure_of_scale_ne_zero (x₀ : ℝ) {γ : NNReal} (hγ : γ ≠ 0) (x : ℝ) :

The cumulative distribution function of a nondegenerate Cauchy law.

The cumulative distribution function at zero scale. Mathlib totalizes the Cauchy family by setting cauchyMeasure x₀ 0 = Measure.dirac x₀.

The mean of the zero-scale Cauchy law is its location.

The moment-generating function of the zero-scale Cauchy law.

The cumulant-generating function of the zero-scale Cauchy law.

Integrability transfer at nonzero scale. A function is integrable against a nondegenerate Cauchy law exactly when its density-weighted version is Lebesgue integrable.

theorem TauCeti.Probability.integral_cauchyMeasure_eq {γ : NNReal} {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (x₀ : ℝ) (hγ : γ ≠ 0) (g : ℝ → E) :

Integral transfer at nonzero scale. An integral against a nondegenerate Cauchy law is the density-weighted Lebesgue integral.

A nondegenerate Cauchy law has no first absolute moment.

The exponential of a nonzero multiple of the identity is not integrable under a nondegenerate Cauchy law.

@[simp]

The exponential integrand of a Cauchy law is integrable exactly when the scale or rate is zero.

@[simp]

The exponential-integrability domain of a nondegenerate Cauchy law is the singleton {0}.

@[simp]

Translating a Cauchy distribution changes its location parameter by the same amount.

The Fourier transform of the two-sided exponential of rate 2 π γ is the Cauchy density of scale γ centred at the origin. This is TauCeti.fourier_exp_neg_mul_abs at the rate that makes the Lorentzian a probability density.

The oscillatory integral of the centred Cauchy density. Pairing the Cauchy density of scale γ against exp (i t x) returns the two-sided exponential exp (-(γ * |t|)).

@[simp]

The characteristic function of the Cauchy distribution. For location x₀ and scale γ it is t ↦ exp (t x₀ i - γ |t|). The formula is uniform in the scale: at γ = 0 Mathlib's cauchyMeasure x₀ 0 is the Dirac mass at x₀, whose characteristic function is t ↦ exp (t x₀ i).

The Cauchy family is closed under convolution. Convolving two Cauchy laws adds their locations and their scales, including the zero-scale Dirac laws.

theorem ProbabilityTheory.iIndepFun.hasLaw_average_cauchyMeasure {Ω : Type u_1} {ι : Type u_2} [MeasurableSpace Ω] [Fintype ι] [Nonempty ι] {P : MeasureTheory.Measure Ω} {x₀ : ℝ} {γ : NNReal} {X : ι → Ω → ℝ} (hindep : iIndepFun X P) (hlaw : ∀ (i : ι), HasLaw (X i) (cauchyMeasure x₀ γ) P) :
HasLaw (fun (ω : Ω) => (↑(Fintype.card ι))⁻¹ * ∑ i : ι, X i ω) (cauchyMeasure x₀ γ) P

The Cauchy family is stable under averaging. The sample mean of a nonempty finite family of independent Cauchy variables with common location x₀ and scale γ has exactly the same law.

theorem ProbabilityTheory.IndepFun.hasLaw_add_cauchyMeasure {Ω : Type u_1} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {X Y : Ω → ℝ} {x₁ x₂ : ℝ} {γ₁ γ₂ : NNReal} (hXY : IndepFun X Y P) (hX : HasLaw X (cauchyMeasure x₁ γ₁) P) (hY : HasLaw Y (cauchyMeasure x₂ γ₂) P) :
HasLaw (X + Y) (cauchyMeasure (x₁ + x₂) (γ₁ + γ₂)) P

The sum of independent Cauchy variables is Cauchy, with the locations and the scales added.