Documentation

CommunicationComplexity.FiniteProbabilitySpace

Bundle the measure associated to a PMF as a probability measure.

Equations
Instances For

    A finite measurable space: the type is finite and the measurable structure is discrete. This deliberately does not include a measure.

    Instances

      Helper for bundling already-existing finite measurable-space instances locally.

      Equations
      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.

          theorem CommunicationComplexity.FiniteMeasureSpace.measureReal_preimage_eq_sum_fibers {Ω : Type u_1} {α : Type u_2} [MeasurableSpace Ω] [FiniteMeasureSpace Ω] [Fintype α] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsFiniteMeasure μ] (Z : Ωα) (P : αProp) :
          μ.real {ω : Ω | P (Z ω)} = z : α, if P z then μ.real (Z ⁻¹' {z}) else 0

          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.

          theorem CommunicationComplexity.FiniteMeasureSpace.probabilityMeasure_measureReal_preimage_eq_sum_fibers {Ω : Type u_1} {α : Type u_2} [MeasurableSpace Ω] [FiniteMeasureSpace Ω] [Fintype α] (μ : MeasureTheory.ProbabilityMeasure Ω) (Z : Ωα) (P : αProp) :
          (↑μ).real {ω : Ω | P (Z ω)} = z : α, if P z then (↑μ).real (Z ⁻¹' {z}) else 0

          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.

          theorem CommunicationComplexity.FiniteMeasureSpace.integral_comp_eq_sum_measureReal_fibers {Ω : Type u_1} {α : Type u_2} [MeasurableSpace Ω] [FiniteMeasureSpace Ω] [MeasurableSpace α] [DiscreteMeasurableSpace α] [Fintype α] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsFiniteMeasure μ] (Z : Ωα) (f : α) :
          (ω : Ω), f (Z ω) μ = z : α, μ.real (Z ⁻¹' {z}) * f z

          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.

          noncomputable instance CommunicationComplexity.finiteMeasureSpacePi {ι : Type u_1} [Fintype ι] (Ω : ιType u_2) [(i : ι) → MeasurableSpace (Ω i)] [(i : ι) → FiniteMeasureSpace (Ω i)] :
          FiniteMeasureSpace ((i : ι) → Ω i)
          Equations
          noncomputable instance CommunicationComplexity.instPi {ι : Type u_1} [Fintype ι] (Ω : ιType u_2) [(i : ι) → FiniteProbabilitySpace (Ω i)] :
          FiniteProbabilitySpace ((i : ι) → Ω i)
          Equations

          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.

          The singleton masses of a finite probability space sum to 1 along any finite enumeration.

          theorem CommunicationComplexity.FiniteProbabilitySpace.pmf_prod {Ω₁ : Type u_1} {Ω₂ : Type u_2} [FiniteProbabilitySpace Ω₁] [FiniteProbabilitySpace Ω₂] (x : Ω₁) (y : Ω₂) :
          (toPMF (Ω₁ × Ω₂)) (x, y) = (toPMF Ω₁) x * (toPMF Ω₂) y

          The real-valued measure of a measurable rectangle in a product finite probability space factors as the product of the two measures.

          theorem CommunicationComplexity.FiniteProbabilitySpace.measureReal_iUnion_fintype {Ω : Type u_1} {ι : Type u_2} [FiniteProbabilitySpace Ω] [Fintype ι] (A : ιSet Ω) (hdisj : Pairwise fun (i j : ι) => Disjoint (A i) (A j)) :
          MeasureTheory.volume.real (⋃ (i : ι), A i) = i : ι, MeasureTheory.volume.real (A i)

          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.

          theorem CommunicationComplexity.FiniteProbabilitySpace.integral_eq_pmf_sum {Ω : Type u_1} [FiniteProbabilitySpace Ω] (f : Ω) :
          (ω : Ω), f ω = ω : Ω, ((toPMF Ω) ω).toReal * f ω

          On a finite probability space, integrating a real-valued function is a finite weighted sum.

          theorem CommunicationComplexity.FiniteProbabilitySpace.sq_integral_le_integral_sq {Ω : Type u_1} [FiniteProbabilitySpace Ω] (f : Ω) :
          ( (ω : Ω), f ω) ^ 2 (ω : Ω), f ω ^ 2

          On a finite probability space, the square of an expectation is bounded by the expectation of the square.

          theorem CommunicationComplexity.FiniteProbabilitySpace.integral_comp_eval {ι : Type u_1} {Ω : Type u_2} [Fintype ι] [FiniteProbabilitySpace Ω] (i : ι) (f : Ω) :
          (ωs : ιΩ), f (ωs i) = (ω : Ω), f ω

          Integrating a function over a coordinate of a finite product space is the same as integrating it over the original finite probability space.

          theorem CommunicationComplexity.FiniteProbabilitySpace.measureReal_pi_univ {ι : Type u_1} [Fintype ι] {Ω : ιType u_2} [(i : ι) → FiniteProbabilitySpace (Ω i)] (s : (i : ι) → Set (Ω i)) :

          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.

          theorem CommunicationComplexity.FiniteProbabilitySpace.integral_le_of_le {Ω : Type u_1} [FiniteProbabilitySpace Ω] {f : Ω} {c : } (hf : ∀ (ω : Ω), f ω c) :
          (ω : Ω), f ω c

          If f(x) ≤ c everywhere under a probability measure, then ∫ f ≤ c.

          theorem CommunicationComplexity.FiniteProbabilitySpace.measureReal_ge_le_integral_div {Ω : Type u_1} [FiniteProbabilitySpace Ω] {f : Ω} {ε : } (hf_nonneg : ∀ (ω : Ω), 0 f ω) ( : 0 < ε) :
          MeasureTheory.volume.real {ω : Ω | ε f ω} ( (ω : Ω), f ω) / ε

          Markov's inequality for nonnegative functions on a finite probability space.

          theorem CommunicationComplexity.FiniteProbabilitySpace.lt_integral_of_lt {Ω : Type u_1} [FiniteProbabilitySpace Ω] {f : Ω} {c : } (hf : ∀ (ω : Ω), c < f ω) :
          c < (ω : Ω), f ω

          If f(x) > c everywhere under a probability measure on a nonempty type, then ∫ f > c.