InformationTheory.Probability.Mixture
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 ofpandμ₀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 #
InformationTheory.mixWeight
sourceThe 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
- InformationTheory.mixWeight ε = min 1 (max 0 ε)
Instances For
Used by
InformationTheory.mixWeight_nonneg
sourceUsed by
InformationTheory.mixWeight_le_one
sourceUsed by
InformationTheory.mixWeight_zero
sourceUsed by
InformationTheory.mixWeight_pos
sourceUsed by
InformationTheory.mixWeight_continuous
sourceUsed by
The mixture #
InformationTheory.mixLaw
sourceThe 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
- InformationTheory.mixLaw p μ₀ ε = ENNReal.ofReal (1 - InformationTheory.mixWeight ε) • p + ENNReal.ofReal (InformationTheory.mixWeight ε) • μ₀