Identically distributed random variables #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
Two random variables defined on two (possibly different) probability spaces but taking value in the same space are identically distributed if their distributions (i.e., the image probability measures on the target space) coincide. We define this concept and establish its basic properties in this file.
Main definitions and results #
ident_distrib f g μ ν
registers that the image ofμ
underf
coincides with the image ofν
underg
(and thatf
andg
are almost everywhere measurable, as otherwise the image measures don't make sense). The measures can be kept implicit as inident_distrib f g
if the spaces are registered as measure spaces.ident_distrib.comp
: being identically distributed is stable under composition with measurable maps.
There are two main kind of lemmas, under the assumption that f
and g
are identically
distributed: lemmas saying that two quantities computed for f
and g
are the same, and lemmas
saying that if f
has some property then g
also has it. The first kind is registered as
ident_distrib.foo_eq
, the second one as ident_distrib.foo_snd
(in the latter case, to deduce
a property of f
from one of g
, use h.symm.foo_snd
where h : ident_distrib f g μ ν
). For
instance:
-
ident_distrib.measure_mem_eq
: iff
andg
are identically distributed, then the probabilities that they belong to a given measurable set are the same. -
ident_distrib.integral_eq
: iff
andg
are identically distributed, then their integrals are the same. -
ident_distrib.variance_eq
: iff
andg
are identically distributed, then their variances are the same. -
ident_distrib.ae_strongly_measurable_snd
: iff
andg
are identically distributed andf
is almost everywhere strongly measurable, then so isg
. -
ident_distrib.mem_ℒp_snd
: iff
andg
are identically distributed andf
belongs toℒp
, then so doesg
.
We also register several dot notation shortcuts for convenience.
For instance, if h : ident_distrib f g μ ν
, then h.sq
states that f^2
and g^2
are
identically distributed, and h.norm
states that ‖f‖
and ‖g‖
are identically distributed, and
so on.
- ae_measurable_fst : ae_measurable f μ
- ae_measurable_snd : ae_measurable g ν
- map_eq : measure_theory.measure.map f μ = measure_theory.measure.map g ν
Two functions defined on two (possibly different) measure spaces are identically distributed if their image measures coincide. This only makes sense when the functions are ae measurable (as otherwise the image measures are not defined), so we require this as well in the definition.
In a second countable topology, the first function in an identically distributed pair is a.e.
strongly measurable. So is the second function, but use h.symm.ae_strongly_measurable_fst
as
h.ae_strongly_measurable_snd
has a different meaning.
If f
and g
are identically distributed and f
is a.e. strongly measurable, so is g
.
This lemma is superceded by mem_ℒp.uniform_integrable_of_ident_distrib
which only require
ae_strongly_measurable
.
A sequence of identically distributed Lᵖ functions is p-uniformly integrable.