The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V20. Probability

Mathlib.Probability.Distributions.Cauchy

19 declarations. Mathlib docs · Source

Cauchy Distribution over ℝ

Define the Cauchy distribution with location parameter x₀ and scale parameter γ.

Note that we use "location" and "scale" to refer to these parameters in theorem names.

Main definition

  • cauchyPDFReal: the function x₀ γ x ↦ π⁻¹ * γ * ((x - x₀) ^ 2 + γ ^ 2)⁻¹, which is the probability density function of a Cauchy distribution with location parameter x₀ and scale parameter γ (when γ ≠ 0).
  • cauchyPDF: ℝ≥0∞-valued pdf, cauchyPDF μ v x = ENNReal.ofReal (cauchyPDFReal μ v x).
  • cauchyMeasure: a Cauchy measure on ℝ, parametrized by a location parameter x₀ : ℝ and a scale parameter γ : ℝ≥0. If γ = 0, this is dirac x₀, otherwise it is defined as the measure with density cauchyPDF x₀ γ with respect to the Lebesgue measure.

def ProbabilityTheory.cauchyPDFReal E3 #

ℝ → NNReal → ℝ → ℝ

The pdf of the cauchy distribution depending on its location x₀ and scale γ parameters.

theorem ProbabilityTheory.cauchyPDFReal_scale_zero E0 #

∀ (x₀ : ℝ), ProbabilityTheory.cauchyPDFReal x₀ 0 = 0

theorem ProbabilityTheory.cauchyPDFReal_def E0 #

∀ (x₀ : ℝ) (γ : NNReal) (x : ℝ), ProbabilityTheory.cauchyPDFReal x₀ γ x = Real.pi⁻¹ * ↑γ * ((x - x₀) ^ 2 + ↑γ ^ 2)⁻¹

theorem ProbabilityTheory.cauchyPDFReal_def' E1 #

∀ (x₀ : ℝ) (γ : NNReal) (x : ℝ), ProbabilityTheory.cauchyPDFReal x₀ γ x = Real.pi⁻¹ * ↑γ⁻¹ * (1 + ((x - x₀) / ↑γ) ^ 2)⁻¹

def ProbabilityTheory.cauchyPDF E3 #

ℝ → NNReal → ℝ → ENNReal

The pdf of the gamma distribution, as a function valued in ℝ≥0∞.

theorem ProbabilityTheory.cauchyPDF_scale_zero E0 #

∀ (x₀ : ℝ), ProbabilityTheory.cauchyPDF x₀ 0 = 0

theorem ProbabilityTheory.cauchyPDF_def E0 #

∀ (x₀ : ℝ) (γ : NNReal) (x : ℝ),
  ProbabilityTheory.cauchyPDF x₀ γ x = ENNReal.ofReal (ProbabilityTheory.cauchyPDFReal x₀ γ x)

theorem ProbabilityTheory.measurable_cauchyPDFReal E1 #

∀ (x₀ : ℝ) (γ : NNReal), Measurable (ProbabilityTheory.cauchyPDFReal x₀ γ)

theorem ProbabilityTheory.stronglyMeasurable_cauchyPDFReal E1 #

∀ (x₀ : ℝ) (γ : NNReal), MeasureTheory.StronglyMeasurable (ProbabilityTheory.cauchyPDFReal x₀ γ)

theorem ProbabilityTheory.measurable_cauchyPDF E1 #

∀ (x₀ : ℝ) (γ : NNReal), Measurable (ProbabilityTheory.cauchyPDF x₀ γ)

theorem ProbabilityTheory.stronglyMeasurable_cauchyPDF E1 #

∀ (x₀ : ℝ) (γ : NNReal), MeasureTheory.StronglyMeasurable (ProbabilityTheory.cauchyPDF x₀ γ)

theorem ProbabilityTheory.cauchyPDF_pos E1 #

∀ (x₀ : ℝ) {γ : NNReal}, γ ≠ 0 → ∀ (x : ℝ), 0 < ProbabilityTheory.cauchyPDFReal x₀ γ x

cauchyPDFReal is positive for γ > 0.

theorem ProbabilityTheory.integral_cauchyPDFReal_eq_one E1 #

∀ (x₀ : ℝ) {γ : NNReal}, γ ≠ 0 → ∫ (x : ℝ), ProbabilityTheory.cauchyPDFReal x₀ γ x = 1

theorem ProbabilityTheory.integrable_cauchyPDFReal E1 #

∀ (x₀ : ℝ) {γ : NNReal}, MeasureTheory.Integrable (ProbabilityTheory.cauchyPDFReal x₀ γ) MeasureTheory.volume

theorem ProbabilityTheory.lintegral_cauchyPDF_eq_one E0 #

∀ (x₀ : ℝ) {γ : NNReal}, γ ≠ 0 → ∫⁻ (x : ℝ), ProbabilityTheory.cauchyPDF x₀ γ x = 1

The pdf of the cauchy distribution integrates to 1.

def ProbabilityTheory.cauchyMeasure E3 #

ℝ → NNReal → MeasureTheory.Measure ℝ

A Cauchy distribution on ℝ with location parameter x₀ and scale parameter γ.

theorem ProbabilityTheory.cauchyMeasure_of_scale_ne_zero E1 #

∀ (x₀ : ℝ) {γ : NNReal},
  γ ≠ 0 → ProbabilityTheory.cauchyMeasure x₀ γ = MeasureTheory.volume.withDensity (ProbabilityTheory.cauchyPDF x₀ γ)

theorem ProbabilityTheory.cauchyMeasure_zero_scale E0 #

∀ (x₀ : ℝ), ProbabilityTheory.cauchyMeasure x₀ 0 = MeasureTheory.Measure.dirac x₀

instance ProbabilityTheory.instIsProbabilityMeasure_cauchyMeasure E0 #

∀ (x₀ : ℝ) (γ : NNReal), MeasureTheory.IsProbabilityMeasure (ProbabilityTheory.cauchyMeasure x₀ γ)