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 #
integrable_expMeasure_iff,integral_expMeasure_eq— integrability and integration against the exponential law, transferred to the real density;integrable_pow_expMeasure— every moment is integrable, for0 < r;integral_pow_expMeasure— then-th moment,n ! / r ^ n, for0 < r;integral_id_expMeasure,integral_sq_expMeasure— the mean and the second moment;variance_id_expMeasure— the variance(r ^ 2)⁻¹;integrable_exp_mul_expMeasure_iff— exact exponential integrability thresholdt < r;integrableExpSet_id_expMeasure— exact domain(-∞, r);mgf_id_expMeasure— moment-generating functionr / (r - t);cgf_id_expMeasure— cumulant-generating functionlog (r / (r - t));charFun_expMeasure— characteristic function(r : ℂ) / (r - I * t);measureReal_Ioi_expMeasure,measure_Ioi_expMeasure— tail probabilities;memoryless_expMeasure— the conditional tail is unchanged by elapsed time;map_min_expMeasure— the minimum map sends a product of exponential laws to the exponential law whose rate is the sum of the rates;hasLaw_min_expMeasure_of_indepFun— minimum of independent exponentials;hasLaw_min_iid_expMeasure— minimum ofdi.i.d. exponentials of rateris exponential of rated * r.nnrealExpMeasure— the exponential measure transported toℝ≥0.
References #
- mathlib4#35504 by Joakim Björnander (Apache 2.0): the names and theorem shapes of the mgf, moment and memorylessness results below, and the proof of memorylessness, are adapted from it.
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.
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.
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.
The variance of the exponential law with rate r is (r ^ 2)⁻¹.
The exact exponential-integrability threshold. The integrand exp (t * x) is integrable
against an exponential law with positive rate r exactly when t < r.
The exact exponential-integrability domain of an exponential law with positive rate is
(-∞, r).
The moment-generating function of an exponential law with positive rate, on its finiteness
domain t < r.
The cumulant-generating function of an exponential law with positive rate.
The characteristic function of an exponential law with positive rate.
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.
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.