[probability] add distributionTheory (former normal_rvTheory) #1340
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This is in preparation of proving the Central Limit Theorem (a local student project). Previously (part of #1295) I added the concept of "convergence in distribution" for random variables (
(X ⟶ Y) (in_distribution p)
) but it turns out that the support of random variables taking potential infinite values is hard and not necessary (at this moment). The main difficulty is to prove that a continuous extreal-valued function is Borel-measurable. The related topology support (mostly the continuous map between two topspaces, from HOL-Light) is still missing.So I decide to fallback to only support finite r.v.'s (i.e.
real_random_variable
) just like what I did initially for other convergence concepts. The new definition of "converge_in_dist" only involves "bounded and continuous" real-value functions (:real -> real
), which is easier to handle:Next we have the concepts of "weak convergence" of probability measures: A sequence of probability measures (of type
:num -> extreal measure
) is said to converge to another single one, if for all bounded and continuous (real-valued) functions, its integration w.r.t. probability measures converge to the integration of that single measure, as a converget sequence of extreal numbers:The connection between "convergence in distribution" and "weak convergence" is the following: convergence in distribution of r.v.'s is equivalent to the weak convergence of their distributions:
And there's another form of the same connection theorem but in terms of explicit integrations:
Such a reduction from "convergence in distr." to "weak convergence" is usually the first step of proving Central Limit Theorems (CLTs).
The above theorems (and the definition of "weak convergence") are put into a new theory file
distributionScript.sml
under "examples/probability", which is renamed from "normal_rvScript.sml". I actually also ported a bit more work from HVG's oldnormal_rvTheory
, e.g. the definition of "normal density", another piece of work needed for the proof of CLTs.I plan to port more old code into this new
distributionTheory
.Chun