Probability measures #
This file defines the type of probability measures on a given measurable space. When the underlying
space has a topology and the measurable space structure (sigma algebra) is finer than the Borel
sigma algebra, then the type of probability measures is equipped with the topology of convergence
in distribution (weak convergence of measures). The topology of convergence in distribution is the
coarsest topology w.r.t. which for every bounded continuous ℝ≥0
-valued random variable X
, the
expected value of X
depends continuously on the choice of probability measure. This is a special
case of the topology of weak convergence of finite measures.
Main definitions #
The main definitions are
- the type
MeasureTheory.ProbabilityMeasure Ω
with the topology of convergence in distribution (a.k.a. convergence in law, weak convergence of measures); MeasureTheory.ProbabilityMeasure.toFiniteMeasure
: Interpret a probability measure as a finite measure;MeasureTheory.FiniteMeasure.normalize
: Normalize a finite measure to a probability measure (returns junk for the zero measure).MeasureTheory.ProbabilityMeasure.map
: The push-forwardf* μ
of a probability measureμ
onΩ
along a measurable functionf : Ω → Ω'
.
Main results #
MeasureTheory.ProbabilityMeasure.tendsto_iff_forall_integral_tendsto
: Convergence of probability measures is characterized by the convergence of expected values of all bounded continuous random variables. This shows that the chosen definition of topology coincides with the common textbook definition of convergence in distribution, i.e., weak convergence of measures. A similar characterization by the convergence of expected values (in theMeasureTheory.lintegral
sense) of all bounded continuous nonnegative random variables isMeasureTheory.ProbabilityMeasure.tendsto_iff_forall_lintegral_tendsto
.MeasureTheory.FiniteMeasure.tendsto_normalize_iff_tendsto
: The convergence of finite measures to a nonzero limit is characterized by the convergence of the probability-normalized versions and of the total masses.MeasureTheory.ProbabilityMeasure.continuous_map
: For a continuous functionf : Ω → Ω'
, the push-forward of probability measuresf* : ProbabilityMeasure Ω → ProbabilityMeasure Ω'
is continuous.MeasureTheory.ProbabilityMeasure.t2Space
: The topology of convergence in distribution is Hausdorff on Borel spaces where indicators of closed sets have continuous decreasing approximating sequences (in particular on any pseudo-metrizable spaces).
TODO:
- Probability measures form a convex space.
Implementation notes #
The topology of convergence in distribution on MeasureTheory.ProbabilityMeasure Ω
is inherited
weak convergence of finite measures via the mapping
MeasureTheory.ProbabilityMeasure.toFiniteMeasure
.
Like MeasureTheory.FiniteMeasure Ω
, the implementation of MeasureTheory.ProbabilityMeasure Ω
is directly as a subtype of MeasureTheory.Measure Ω
, and the coercion to a function is the
composition ENNReal.toNNReal
and the coercion to function of MeasureTheory.Measure Ω
.
References #
- [Billingsley, Convergence of probability measures][billingsley1999]
Tags #
convergence in distribution, convergence in law, weak convergence of measures, probability measure
Probability measures #
In this section we define the type of probability measures on a measurable space Ω
, denoted by
MeasureTheory.ProbabilityMeasure Ω
.
If Ω
is moreover a topological space and the sigma algebra on Ω
is finer than the Borel sigma
algebra (i.e. [OpensMeasurableSpace Ω]
), then MeasureTheory.ProbabilityMeasure Ω
is
equipped with the topology of weak convergence of measures. Since every probability measure is a
finite measure, this is implemented as the induced topology from the mapping
MeasureTheory.ProbabilityMeasure.toFiniteMeasure
.
Probability measures are defined as the subtype of measures that have the property of being probability measures (i.e., their total mass is one).
Equations
Instances For
Equations
- MeasureTheory.ProbabilityMeasure.instInhabited = { default := ⟨MeasureTheory.Measure.dirac default, ⋯⟩ }
Coercion from MeasureTheory.ProbabilityMeasure Ω
to MeasureTheory.Measure Ω
.
Equations
- MeasureTheory.ProbabilityMeasure.toMeasure = Subtype.val
Instances For
A probability measure can be interpreted as a measure.
Equations
- MeasureTheory.ProbabilityMeasure.instCoeMeasure = { coe := MeasureTheory.ProbabilityMeasure.toMeasure }
Equations
- ⋯ = ⋯
Equations
- MeasureTheory.ProbabilityMeasure.instFunLike = { coe := fun (μ : MeasureTheory.ProbabilityMeasure Ω) (s : Set Ω) => (↑μ s).toNNReal, coe_injective' := ⋯ }
A probability measure can be interpreted as a finite measure.
Equations
- μ.toFiniteMeasure = ⟨↑μ, ⋯⟩
Instances For
The topology of weak convergence on MeasureTheory.ProbabilityMeasure Ω
. This is inherited
(induced) from the topology of weak convergence of finite measures via the inclusion
MeasureTheory.ProbabilityMeasure.toFiniteMeasure
.
Equations
- MeasureTheory.ProbabilityMeasure.instTopologicalSpace = TopologicalSpace.induced MeasureTheory.ProbabilityMeasure.toFiniteMeasure inferInstance
Probability measures yield elements of the WeakDual
of bounded continuous nonnegative
functions via MeasureTheory.FiniteMeasure.testAgainstNN
, i.e., integration.
Equations
Instances For
A characterization of weak convergence of probability measures by the condition that the integrals of every continuous bounded nonnegative function converge to the integral of the function against the limit measure.
The characterization of weak convergence of probability measures by the usual (defining) condition that the integrals of every continuous bounded function converge to the integral of the function against the limit measure.
On topological spaces where indicators of closed sets have decreasing approximating sequences of
continuous functions (HasOuterApproxClosed
), the topology of convergence in distribution of Borel
probability measures is Hausdorff (T2Space
).
Equations
- ⋯ = ⋯
Normalization of finite measures to probability measures #
This section is about normalizing finite measures to probability measures.
The weak convergence of finite measures to nonzero limit measures is characterized by the convergence of the total mass and the convergence of the normalized probability measures.
Normalize a finite measure so that it becomes a probability measure, i.e., divide by the total mass.
Equations
- μ.normalize = if zero : μ.mass = 0 then ⟨MeasureTheory.Measure.dirac inst.some, ⋯⟩ else ⟨↑(μ.mass⁻¹ • μ), ⋯⟩
Instances For
Averaging with respect to a finite measure is the same as integrating against
MeasureTheory.FiniteMeasure.normalize
.
If the normalized versions of finite measures converge weakly and their total masses also converge, then the finite measures themselves converge weakly.
If finite measures themselves converge weakly to a nonzero limit measure, then their normalized versions also converge weakly.
The weak convergence of finite measures to a nonzero limit can be characterized by the weak convergence of both their normalized versions (probability measures) and their total masses.
The push-forward of a probability measure by a measurable function.
Equations
- ν.map f_aemble = ⟨MeasureTheory.Measure.map f ↑ν, ⋯⟩
Instances For
Note that this is an equality of elements of ℝ≥0∞
. See also
MeasureTheory.ProbabilityMeasure.map_apply
for the corresponding equality as elements of ℝ≥0
.
If f : X → Y
is continuous and Y
is equipped with the Borel sigma algebra, then
convergence (in distribution) of ProbabilityMeasure
s on X
implies convergence (in
distribution) of the push-forwards of these measures by f
.
If f : X → Y
is continuous and Y
is equipped with the Borel sigma algebra, then
the push-forward of probability measures f* : ProbabilityMeasure X → ProbabilityMeasure Y
is continuous (in the topologies of convergence in distribution).