InformationTheory

InformationTheory.Probability.Mixture

source

Mixing two measures at a clamped weight #

A probability measure is smoothed toward a second one by taking their convex combination. Clamping the weight to [0, 1] makes the combination a probability measure for every real weight, so the instance is available before any side condition on the weight is discharged, and the mixture may be formed and reasoned about for an unconstrained parameter. On a singleton the mixture is the convex combination of the two masses, so it is positive as soon as the weight is and the second measure charges that point, and it depends continuously on the weight.

Main definitions #

  • mixWeight ε — the weight ε clamped to [0, 1].
  • mixLaw p μ₀ ε — the convex combination of p and μ₀ at the clamped weight ε.

Main statements #

  • mixLaw_real_apply — the singleton mass of the mixture is the convex combination of the two singleton masses.
  • mixLaw_real_pos — at a positive weight the mixture charges every point the second measure charges.
  • mixLaw_real_continuous — a singleton mass of the mixture depends continuously on the weight.

Implementation notes #

The module sits at the bottom of the import DAG — it depends only on Mathlib — so any file forming such a mixture can import it without pulling in information-theoretic material.

The clamped weight #

noncomputable def

InformationTheory.mixWeight

source
(ε : ) :

The weight ε clamped to [0, 1], so that a convex combination taken at it is a probability measure for every real ε while the weight agrees with ε on [0, 1].

Equations
Instances For
    Used by
      theorem

      InformationTheory.mixWeight_nonneg

      source
      (ε : ) :
      Used by
        theorem

        InformationTheory.mixWeight_le_one

        source
        (ε : ) :
        Used by
          theorem

          InformationTheory.mixWeight_zero

          source
          :
          Used by
            theorem

            InformationTheory.mixWeight_pos

            source
            {ε : } ( : 0 < ε) :
            Used by
              theorem

              InformationTheory.mixWeight_continuous

              source
              Used by

                The mixture #

                noncomputable def

                InformationTheory.mixLaw

                source

                The convex combination mixLaw p μ₀ ε = (1 - mixWeight ε) • p + mixWeight ε • μ₀ of two measures at the clamped weight ε. For 0 < ε and a μ₀ charging every point, so does the mixture; at ε = 0 it is p.

                Equations
                Instances For
                  Used by
                    instance

                    InformationTheory.mixLaw.instIsProbabilityMeasure

                    source
                    Used by
                      theorem

                      InformationTheory.mixLaw_zero

                      source
                      {X : Type u_1} [MeasurableSpace X] (p μ₀ : MeasureTheory.Measure X) :
                      mixLaw p μ₀ 0 = p
                      Used by
                        theorem

                        InformationTheory.mixLaw_real_apply

                        source
                        {X : Type u_1} [MeasurableSpace X] (p μ₀ : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure p] [MeasureTheory.IsProbabilityMeasure μ₀] (ε : ) (a : X) :
                        (mixLaw p μ₀ ε).real {a} = (1 - mixWeight ε) * p.real {a} + mixWeight ε * μ₀.real {a}
                        Used by
                          theorem

                          InformationTheory.mixLaw_real_pos

                          source
                          {X : Type u_1} [MeasurableSpace X] (p μ₀ : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure p] [MeasureTheory.IsProbabilityMeasure μ₀] (hμ₀ : ∀ (a : X), 0 < μ₀.real {a}) {ε : } ( : 0 < ε) (a : X) :
                          0 < (mixLaw p μ₀ ε).real {a}
                          Used by
                            theorem

                            InformationTheory.mixLaw_real_continuous

                            source
                            Used by