Mathlib.Probability.Distributions.Exponential
19 declarations. Mathlib docs · Source
Exponential distributions over ℝ
Define the Exponential measure over the reals.
Main definitions
exponentialPDFReal: the functionr x ↦ r * exp (-(r * x)for0 ≤ xor0else, which is the probability density function of an exponential distribution with rater(whenhr : 0 < r).exponentialPDF:ℝ≥0∞-valued pdf,exponentialPDF r = ENNReal.ofReal (exponentialPDFReal r).expMeasure: an exponential measure onℝ, parametrized by its rater.
Main results
cdf_expMeasure_eq: Proof that the CDF of the exponential measure equals the known function given asr x ↦ 1 - exp (- (r * x))for0 ≤ xor0else.
def ProbabilityTheory.exponentialPDFReal E3 #
ℝ → ℝ → ℝ
The pdf of the exponential distribution depending on its rate
def ProbabilityTheory.exponentialPDF E3 #
ℝ → ℝ → ENNReal
The pdf of the exponential distribution, as a function valued in ℝ≥0∞
theorem ProbabilityTheory.exponentialPDF_eq E0 #
∀ (r x : ℝ), ProbabilityTheory.exponentialPDF r x = ENNReal.ofReal (if 0 ≤ x then r * Real.exp (-(r * x)) else 0)
theorem ProbabilityTheory.exponentialPDF_of_neg E1 #
∀ {r x : ℝ}, x < 0 → ProbabilityTheory.exponentialPDF r x = 0
theorem ProbabilityTheory.exponentialPDF_of_nonneg E1 #
∀ {r x : ℝ}, 0 ≤ x → ProbabilityTheory.exponentialPDF r x = ENNReal.ofReal (r * Real.exp (-(r * x)))
theorem ProbabilityTheory.lintegral_exponentialPDF_of_nonpos E1 #
∀ {x r : ℝ}, x ≤ 0 → ∫⁻ (y : ℝ) in Set.Iio x, ProbabilityTheory.exponentialPDF r y = 0
The Lebesgue integral of the exponential pdf over nonpositive reals equals 0
theorem ProbabilityTheory.measurable_exponentialPDFReal E1 #
∀ (r : ℝ), Measurable (ProbabilityTheory.exponentialPDFReal r)
The exponential pdf is measurable.
theorem ProbabilityTheory.stronglyMeasurable_exponentialPDFReal E1 #
∀ (r : ℝ), MeasureTheory.StronglyMeasurable (ProbabilityTheory.exponentialPDFReal r)
theorem ProbabilityTheory.exponentialPDFReal_pos E1 #
∀ {x r : ℝ}, 0 < r → 0 < x → 0 < ProbabilityTheory.exponentialPDFReal r x
The exponential pdf is positive for all positive reals
theorem ProbabilityTheory.exponentialPDFReal_nonneg E1 #
∀ {r : ℝ}, 0 < r → ∀ (x : ℝ), 0 ≤ ProbabilityTheory.exponentialPDFReal r x
The exponential pdf is nonnegative
theorem ProbabilityTheory.lintegral_exponentialPDF_eq_one E0 #
∀ {r : ℝ}, 0 < r → ∫⁻ (x : ℝ), ProbabilityTheory.exponentialPDF r x = 1
The pdf of the exponential distribution integrates to 1
def ProbabilityTheory.expMeasure E3 #
ℝ → MeasureTheory.Measure ℝ
Measure defined by the exponential distribution
theorem ProbabilityTheory.isProbabilityMeasure_expMeasure E1 #
∀ {r : ℝ}, 0 < r → MeasureTheory.IsProbabilityMeasure (ProbabilityTheory.expMeasure r)
theorem ProbabilityTheory.cdf_expMeasure_eq_integral E1 #
∀ {r : ℝ},
0 < r →
∀ (x : ℝ),
↑(ProbabilityTheory.cdf (ProbabilityTheory.expMeasure r)) x =
∫ (x : ℝ) in Set.Iic x, ProbabilityTheory.exponentialPDFReal r x
theorem ProbabilityTheory.cdf_expMeasure_eq_lintegral E1 #
∀ {r : ℝ},
0 < r →
∀ (x : ℝ),
↑(ProbabilityTheory.cdf (ProbabilityTheory.expMeasure r)) x =
(∫⁻ (x : ℝ) in Set.Iic x, ProbabilityTheory.exponentialPDF r x).toReal
theorem ProbabilityTheory.hasDerivAt_neg_exp_mul_exp E1 #
∀ {r x : ℝ}, HasDerivAt (fun a ↦ -Real.exp (-(r * a))) (r * Real.exp (-(r * x))) x
theorem ProbabilityTheory.exp_neg_integrableOn_Ioc E1 #
∀ {b x : ℝ}, 0 < b → MeasureTheory.IntegrableOn (fun x ↦ Real.exp (-(b * x))) (Set.Ioc 0 x) MeasureTheory.volume
A negative exponential function is integrable on intervals in R≥0
theorem ProbabilityTheory.lintegral_exponentialPDF_eq_antiDeriv E1 #
∀ {r : ℝ},
0 < r →
∀ (x : ℝ),
∫⁻ (y : ℝ) in Set.Iic x, ProbabilityTheory.exponentialPDF r y =
ENNReal.ofReal (if 0 ≤ x then 1 - Real.exp (-(r * x)) else 0)
theorem ProbabilityTheory.cdf_expMeasure_eq E3 #
∀ {r : ℝ},
0 < r →
∀ (x : ℝ),
↑(ProbabilityTheory.cdf (ProbabilityTheory.expMeasure r)) x = if 0 ≤ x then 1 - Real.exp (-(r * x)) else 0
The CDF of the exponential distribution equals 1 - exp (-(r * x))