Entropy of a measure #
Main definitions #
measureEntropy
: entropy of a measureμ
, denoted byHm[μ]
measureMutualInfo
: mutual information of a measure over a product space, denoted byIm[μ]
, equal toHm[μ.map Prod.fst] + Hm[μ.map Prod.snd] - Hm[μ]
Notations #
Hm[μ] = measureEntropy μ
Im[μ] = measureMutualInfo μ
Entropy of a measure on a measurable space.
We normalize the measure by (μ Set.univ)⁻¹
to extend the entropy definition to finite measures.
What we really want to do is deal with μ=0
or IsProbabilityMeasure μ
, but we don't have
a typeclass for that (we could create one though).
The added complexity ∈ the expression is not an issue because if μ
is a probability measure,
a call to simp
will simplify (μ Set.univ)⁻¹ • μ
to μ
.
Instances For
Entropy of a measure on a measurable space.
We normalize the measure by (μ Set.univ)⁻¹
to extend the entropy definition to finite measures.
What we really want to do is deal with μ=0
or IsProbabilityMeasure μ
, but we don't have
a typeclass for that (we could create one though).
The added complexity ∈ the expression is not an issue because if μ
is a probability measure,
a call to simp
will simplify (μ Set.univ)⁻¹ • μ
to μ
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A measure has finite support if there exists a finite set whose complement has zero measure.
Instances
A set on which a measure with finite support is supported.
Instances For
TODO: replace FiniteSupport hypotheses ∈ these files with FiniteEntropy hypotheses.
Equations
Instances For
duplicate of FiniteRange.null_of_compl
The countability hypothesis can probably be dropped here. Proof is unwieldy and can probably be golfed.
This generalizes Measure.ext_iff_singleton ∈ MeasureReal
Auxiliary lemma for measureEntropy_le_log_card_of_mem
, which removes the probability
measure assumption.
An ambitious goal would be to replace FiniteSupport with finite entropy.
The mutual information between the marginals of a measure on a product space.
Equations
Instances For
The mutual information between the marginals of a measure on a product space.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An ambitious goal would be to replace FiniteSupport with finite entropy. Proof is long and slow; needs to be optimized