Bundle the measure associated to a PMF as a probability measure.
Equations
- p.toProbabilityMeasure = ⟨p.toMeasure, ⋯⟩
Instances For
A finite measurable space: the type is finite and the measurable structure is discrete. This deliberately does not include a measure.
- fintype : Fintype Ω
- discrete : DiscreteMeasurableSpace Ω
Instances
Helper for bundling already-existing finite measurable-space instances locally.
Equations
- CommunicationComplexity.FiniteMeasureSpace.of Ω = { fintype := inferInstance, discrete := ⋯ }
Instances For
- toMeasureSpace : MeasureTheory.MeasureSpace Ω
- finite : FiniteMeasureSpace Ω
Instances
Helper for bundling already-existing instances locally.
Equations
- CommunicationComplexity.FiniteProbabilitySpace.of Ω = { toMeasureSpace := m, finite := CommunicationComplexity.FiniteMeasureSpace.of Ω, prob := ⋯ }
Instances For
Build a finite probability space from a finite measurable space and a probability measure.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A finite measure on a finite measurable space is determined by its singleton masses.
A probability measure on a finite measurable space is determined by its singleton masses.
On a finite measurable space, the real measure of a preimage event is the sum of the real masses of the fibers that imply the event.
On a finite measurable space, the real measure of a preimage event is the sum of the real masses of the fibers that imply the event.
On a finite measurable space, absolute continuity is equivalent to absolute continuity on singleton masses.
For any probability measure on a finite measurable space, the square of an expectation is bounded by the expectation of the square.
On a finite measurable space, the integral of a function of a finite-valued random variable is the sum over its fibers.
Law of total probability over the fibers of a finite-valued random variable, in real-valued measure form.
Equations
Equations
Equations
Equations
- CommunicationComplexity.instPi Ω = CommunicationComplexity.FiniteProbabilitySpace.of ((i : ι) → Ω i)
On a finite discrete type with the uniform measure on Set.univ,
the real-valued measure of a set is its cardinality divided by the size
of the ambient type.
On a finite discrete type with the uniform measure on Set.univ, the real-valued measure of
a set is the cardinality of the corresponding subtype divided by the size of the ambient type.
You usually won't need this theorem explicitly, because of the instance below.
Instances For
The singleton masses of a finite probability space sum to 1 along
any finite enumeration.
The real-valued measure of a measurable rectangle in a product finite probability space factors as the product of the two measures.
The real-valued measure of a finite disjoint union is the sum of the real-valued measures of its parts.
The real-valued measure of the preimage of a finite set splits as a sum over singleton fibers.
The real-valued measure of a finite set splits as a sum over its singleton parts.
Integrating a function over a coordinate of a finite product space is the same as integrating it over the original finite probability space.
The real-valued measure of a cylinder set in a finite product probability space is the product of the real-valued measures of its coordinate slices.
The real-valued measure of a set is the integral of its indicator.
The real-valued measure of a set is the integral of the corresponding 0/1 function.
The weights of a finite probability space sum to 1.
Each weight in a finite probability space is nonnegative.
Some point in a finite probability space has positive probability mass.
If f(x) ≤ c everywhere under a probability measure, then ∫ f ≤ c.
Markov's inequality for nonnegative functions on a finite probability space.
If f(x) > c everywhere under a probability measure on a nonempty type, then ∫ f > c.