Documentation

CslibFrontier.Probability.Entropy.Pi

Entropy of independent products #

The entropy of an independent product Cslib.Probability.PMF.pi p of finite distributions is the sum of the entropies of its coordinates (Cslib.Probability.PMF.entropy_pi) Cover and Thomas, Section 2.6. For two factors this is Cslib.Probability.PMF.entropy_prod.

Main results #

References #

theorem Cslib.Probability.PMF.entropy_pi {ι : Type u_1} [Fintype ι] {α : ι → Type u_2} [∀ (i : ι), Finite (α i)] (p : (i : ι) → PMF (α i)) :
entropy (pi p) = ∑ i : ι, entropy (p i)

Independent coordinates add their entropies: H(X₁, …, Xₙ) = ∑ᵢ H(Xᵢ).