Module mathcomp.analysis.measure_theory.probability_measure
From HB Require Import structures.From mathcomp Require Import boot order algebra.
From mathcomp Require Import boolp classical_sets functions cardinality reals.
From mathcomp Require Import interval_inference ereal topology normedtype.
From mathcomp Require Import measurable_structure measure_function dirac_measure.
Unset SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Theory.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
.
(P : set T -> \bar R) := { sprobability_setT : (P setT <= 1)%E }.
.
:= { of @FiniteMeasure d T R mu & isSubProbability d T R mu }.
.
(R : realType) (P : set T -> \bar R) & isMeasure _ _ _ P :=
{ sprobability_setT : (P setT <= 1)%E }.
.
P & Measure_isSubProbability d T R P.
Let
Proof.
.
.
.
Section mzero_subprobability.
Context ( : measurableType d) ( : realType).
Let
Proof.
.
Measure_isSubProbability.Build _ _ _ (@mzero d T R) mzero_setT.
End mzero_subprobability.
.
(P : set T -> \bar R) := { probability_setT : P setT = 1%E }.
.
{ of @SubProbability d T R P & isProbability d T R P }.
Arguments probability_setT {d T R} s.
.
gen_eqMixin (probability T R).
.
gen_choiceMixin (probability T R).
Section probability_lemmas.
Local Open Scope ereal_scope.
Context ( : measurableType d) ( : realType) ( : probability T R).
Lemma
- mathcomp.analysis.probability_theory.random_variable
- mathcomp.analysis.probability_theory.normal_distribution
- mathcomp.analysis.probability_theory.bernoulli_distribution
- mathcomp.analysis.probability_theory.beta_distribution
Source code
Proof.
Lemma
Proof.
exact: measurableC.
by rewrite fin_num_measure.
Qed.
End probability_lemmas.
.
(R : realType) (P : set T -> \bar R) & isMeasure _ _ _ P :=
{ probability_setT : P setT = 1%E }.
.
P & Measure_isProbability d T R P.
Let
Proof.
.
.
.
Section pdirac.
Context ( : measurableType d) ( : realType).
.
Measure_isProbability.Build _ _ _ (@dirac _ T x R) (diracT R x).
End pdirac.
Section mnormalize.
Local Open Scope ereal_scope.
Context ( : measurableType d) ( : realType).
Variables ( : {measure set T -> \bar R}) ( : probability T R).
Definition
Used by
- mathcomp.analysis.kernel
Source code
let
if (evidence == 0) || (evidence == +oo) then fun => P U
else fun => mu U * (fine evidence)^-1%:E.
Let
Proof.
Let
Proof.
Let
Proof.
case: ifPn => [_|_]; first exact: measure_semi_sigma_additive.
rewrite [X in X @ _ --> _](_ : _ = (fun => \sum_(0 <= < n) mu (F i)) \*
cst (fine (mu setT))^-1%:E).
by apply/funext => n; rewrite -ge0_sume_distrl.
by apply: cvgeZr => //; exact: measure_semi_sigma_additive.
Qed.
.
mnormalize0 mnormalize_ge0 mnormalize_sigma_additive.
Let
Proof.
.
Measure_isProbability.Build _ _ _ mnormalize mnormalize1.
End mnormalize.
Lemma
( : probability T R) : mnormalize P P' = P.
Proof.
.
isPointed.Build (probability T R) (dirac point).
Section dist_sigma_algebra_instance.
Context ( : measurableType d) ( : realType).
Definition
Used by
- mathcomp.analysis.kernel
Source code
[set : probability T R | mu U < r%:E]%E.
Lemma
- mathcomp.analysis.kernel
Source code
Proof.
Lemma
- mathcomp.analysis.kernel
Source code
measurable U -> (1 < r)%R -> mset U r = [set: probability T R].
Proof.
by rewrite /mset/= (le_lt_trans (probability_le1 _ _)).
Qed.
Definition
Used by
- mathcomp.analysis.probability_theory.poisson_distribution
- mathcomp.analysis.probability_theory.bernoulli_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.kernel
Source code
[set mset U r | in `[0%R,1%R] & in measurable].
Definition
sigma_subadditive : forall {T : Type} {R : numFieldType}, (set T -> \bar R) -> Prop sigma_subadditive is not universe polymorphic Arguments sigma_subadditive {T}%_type_scope {R} mu%_function_scope sigma_subadditive is transparent Expands to: Constant mathcomp.analysis.measure_theory.measure_extension.sigma_subadditive Declared in library mathcomp.analysis.measure_theory.measure_extension, line 93, characters 11-28
Used by
- mathcomp.analysis.probability_theory.poisson_distribution
- mathcomp.analysis.probability_theory.bernoulli_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.kernel
Source code
g_sigma_algebraType pset.
End dist_sigma_algebra_instance.