Documentation

TauCeti.Probability.Distributions.Exponential.Basic

Elementary theory of the exponential distribution #

This file completes the elementary moment, transform, and tail API for Mathlib's exponential measure, parametrized by its rate. For a positive rate r, it evaluates all moments, identifies the exact exponential-moment domain, computes the moment- and cumulant-generating functions and the characteristic function, and deduces the mean and variance. It also establishes the memoryless property and computes the law of the minimum of independent exponentials.

Moments come from one formula. integral_pow_expMeasure computes every moment, ∫ x ^ n ∂(expMeasure r) = n ! / r ^ n, and the mean and second moment are its n = 1 and n = 2 specializations.

The exponential law is the shape-one Gamma law. Mathlib defines expMeasure r as gammaMeasure 1 r, so the moments, the exponential-integrability domain, and the transforms are the a = 1 cases of the Gamma results in TauCeti.Probability.Distributions.Gamma.Basic and TauCeti.Probability.Distributions.Gamma.CharFun, rewritten into their exponential closed forms.

Main results #

References #

expMeasure r is the Lebesgue measure weighted by its exponential density.

The measure expMeasure r is concentrated on the positive reals, for every r. For 0 < r this says an exponential random variable is almost surely positive; for r ≤ 0 the measure is zero and the statement holds trivially.

Integrability transfer. A function is integrable against an exponential law with positive rate exactly when its density-weighted version is Lebesgue integrable.

Integral transfer. An integral against an exponential law with positive rate is the density-weighted Lebesgue integral.

@[simp]

Every moment of the exponential law is integrable. This is not implied by the moment formula below: Lean's integral is defined for non-integrable functions too, so an integral equality alone says nothing about finiteness.

@[simp]

The moments of the exponential law. ∫ x ^ n ∂(expMeasure r) = n ! / r ^ n, for every n.

No nondegeneracy hypothesis on n is needed: at n = 0 both sides are 1. The mean and the second moment below are the n = 1 and n = 2 cases.

@[simp]

The mean of the exponential law with rate r is r⁻¹.

The second moment of the exponential law with rate r is 2 / r ^ 2.

@[simp]

The variance of the exponential law with rate r is (r ^ 2)⁻¹.

@[simp]

The exact exponential-integrability threshold. The integrand exp (t * x) is integrable against an exponential law with positive rate r exactly when t < r.

@[simp]

The exact exponential-integrability domain of an exponential law with positive rate is (-∞, r).

@[simp]

The moment-generating function of an exponential law with positive rate, on its finiteness domain t < r.

@[simp]

The cumulant-generating function of an exponential law with positive rate.

@[simp]

The characteristic function of an exponential law with positive rate.

@[simp]

The real-valued tail probability of a positive-rate exponential law.

@[simp]

The tail probability of a positive-rate exponential law.

The memoryless property of a positive-rate exponential law, stated with conditional probability: after surviving for time s, the chance of surviving a further time t is the original tail probability at t.

The minimum of independent exponential laws is exponential. Mapping the product of positive-rate exponential laws under the pointwise minimum gives the exponential law whose rate is the sum of the input rates.

The minimum of two independent random variables with exponential laws has an exponential law whose rate is the sum of their rates.

theorem TauCeti.Probability.hasLaw_min_iid_expMeasure {r : ℝ} {Ω : Type u_1} {ι : Type u_2} {mΩ : MeasurableSpace Ω} [Fintype ι] [Nonempty ι] {P : MeasureTheory.Measure Ω} {X : ι → Ω → ℝ} (hr : 0 < r) (hindep : ProbabilityTheory.iIndepFun X P) (hlaw : ∀ (i : ι), ProbabilityTheory.HasLaw (X i) (ProbabilityTheory.expMeasure r) P) :
ProbabilityTheory.HasLaw (fun (ω : Ω) => Finset.univ.inf' ⋯ fun (i : ι) => X i ω) (ProbabilityTheory.expMeasure (↑(Fintype.card ι) * r)) P

The minimum of d independent exponential variables of a common positive rate r is exponential of rate d * r. This is the d-fold form of TauCeti.Probability.hasLaw_min_expMeasure_of_indepFun, which allows two different rates.

The exponential measure of rate r on ℝ≥0, obtained by transporting the usual exponential law on ℝ along Real.toNNReal.

For r > 0 this transport loses no information because the exponential law is supported on the nonnegative half-line.

Equations
Instances For

    The exponential measure on ℝ≥0 is the pushforward of Mathlib's exponential measure along Real.toNNReal.

    At unit rate, nnrealExpMeasure is the measure with density e⁻ˣ on the nonnegative real half-line, transported to ℝ≥0. The displayed if makes the zero density on negative reals explicit before the transport.

    The positive-rate exponential measure on ℝ≥0 is a probability measure.