Classical probability #
The classical formulation of probability states that the probability of an event occurring in a
finite probability space is the ratio of that event to all possible events.
This notion can be expressed with measure theory using
the counting measure. In particular, given the sets s
and t
, we define the probability of t
occurring in s
to be |s|⁻¹ * |s ∩ t|
. With this definition, we recover the probability over
the entire sample space when s = Set.univ
.
Classical probability is often used in combinatorics and we prove some useful lemmas in this file for that purpose.
Main definition #
ProbabilityTheory.uniformOn
: given a sets
,uniformOn s
is the counting measure conditioned ons
. This is a probability measure whens
is finite and nonempty.
Notes #
The original aim of this file is to provide a measure theoretic method of describing the
probability an element of a set s
satisfies some predicate P
. Our current formulation still
allow us to describe this by abusing the definitional equality of sets and predicates by simply
writing uniformOn s P
. We should avoid this however as none of the lemmas are written for
predicates.
Given a set s
, uniformOn s
is the uniform measure on s
, defined as the counting measure
conditioned by s
. One should think of uniformOn s t
as the proportion of s
that is contained
in t
.
This is a probability measure when s
is finite and nonempty and is given by
ProbabilityTheory.uniformOn_isProbabilityMeasure
.
Equations
- ProbabilityTheory.uniformOn s = ProbabilityTheory.cond MeasureTheory.Measure.count s
Instances For
Alias of ProbabilityTheory.uniformOn
.
Given a set s
, uniformOn s
is the uniform measure on s
, defined as the counting measure
conditioned by s
. One should think of uniformOn s t
as the proportion of s
that is contained
in t
.
This is a probability measure when s
is finite and nonempty and is given by
ProbabilityTheory.uniformOn_isProbabilityMeasure
.
Instances For
Alias of ProbabilityTheory.uniformOn_empty_meas
.
Alias of ProbabilityTheory.uniformOn_empty
.
See uniformOn_eq_zero
for a version assuming MeasurableSingletonClass Ω
instead of
MeasurableSet s
.
See uniformOn_eq_zero'
for a version assuming MeasurableSet s
instead of
MeasurableSingletonClass Ω
.
Alias of ProbabilityTheory.uniformOn_univ
.
Alias of ProbabilityTheory.uniformOn_singleton
.
Alias of ProbabilityTheory.uniformOn_inter_self
.
Alias of ProbabilityTheory.uniformOn_self
.
Alias of ProbabilityTheory.uniformOn_eq_one_of
.
Alias of ProbabilityTheory.uniformOn_eq_zero_iff
.
Alias of ProbabilityTheory.uniformOn_of_univ
.
Alias of ProbabilityTheory.uniformOn_inter
.
Alias of ProbabilityTheory.uniformOn_inter'
.
Alias of ProbabilityTheory.uniformOn_union
.
Alias of ProbabilityTheory.uniformOn_compl
.
A version of the law of total probability for counting probabilities.
Alias of ProbabilityTheory.uniformOn_add_compl_eq
.
A version of the law of total probability for counting probabilities.