Mutual information and conditional mutual information #
For a joint law of two finite random variables, the mutual information
I(A; B) = H(A) + H(B) - H(A, B) (mutualInfo) measures how much one reveals about the other, in
bits. For a joint law of three, listed with the conditioning variable first, the conditional
mutual information I(A; B | C) = H(C, A) + H(C, B) - H(C, A, B) - H(C) (condMutualInfo)
measures the same given C Cover and Thomas, Sections 2.4 and 2.5. Both are
nonnegative: the first is subadditivity of entropy, the second says conditioning on more
cannot increase entropy.
Random variables are usually functions of an outcome drawn from ν : PMF Ω, and the lemmas take
the form mutualInfo (ν.map fun ω => (A ω, B ω)). In this form:
- Re-encoding a variable injectively on the support of
νchanges nothing (entropy_map_eq_of_comp,mutualInfo_map_congr,condMutualInfo_map_congr). - The chain rule splits
I((C, A); B) = I(C; B) + I(A; B | C)(mutualInfo_map_prodMk_eq_add). Revealing an observationB = k ∘ TsplitsI(A; T | C) = I(A; B | C) + E_b I(A; T | C, B = b)(condMutualInfo_map_eq_add_sum,mutualInfo_map_eq_add_sum); conditioning onB = bisconditionalSnd. I(A; T | C)vanishes whenTis determined byC(condMutualInfo_map_eq_zero_of_determined) and when the joint law of(C, A, B)factors asf (c, a) * g (c, b)(condMutualInfo_eq_zero_of_apply_eq_mul). Independent components carry no mutual information (mutualInfo_bind_map_prodMk).
Main definitions #
Cslib.Probability.PMF.mutualInfo: mutual information of a joint law.Cslib.Probability.PMF.condMutualInfo: conditional mutual information, conditioning variable first.
Main results #
Cslib.Probability.PMF.mutualInfo_nonneg,Cslib.Probability.PMF.condMutualInfo_nonneg,Cslib.Probability.PMF.mutualInfo_le_entropy_map_snd,Cslib.Probability.PMF.condMutualInfo_le_conditionalEntropy_fst,Cslib.Probability.PMF.condMutualInfo_le_conditionalEntropy_snd: basic bounds.Cslib.Probability.PMF.mutualInfo_map_prodMk_eq_add,Cslib.Probability.PMF.condMutualInfo_map_eq_add_sum,Cslib.Probability.PMF.mutualInfo_map_eq_add_sum: chain rules.Cslib.Probability.PMF.condMutualInfo_map_le_mutualInfo:I(A; B | C) ≤ I((C, A); B).Cslib.Probability.PMF.condMutualInfo_eq_zero_of_apply_eq_mul,Cslib.Probability.PMF.condMutualInfo_map_eq_zero_of_determined,Cslib.Probability.PMF.mutualInfo_bind_map_prodMk: vanishing criteria;Cslib.Probability.PMF.mutualInfo_eq_zero_iff:I(A; B) = 0exactly for independent pairs.Cslib.Probability.PMF.conditionalSnd_map_prodMk_apply,Cslib.Probability.PMF.eq_of_mem_support_conditionalSnd_map: conditioning on an observation.
Implementation notes #
The entropy chain rule entropy_map_prodMk_eq_add_sum and the conditioning lemmas
map_fst_map_prodMk, conditionalSnd_map_prodMk_apply and
eq_of_mem_support_conditionalSnd_map do not mention mutual information. They live here because
the chain rules are their only clients so far; they could move to Probability.Entropy and
Probability.Conditioning when other modules need them.
References #
- T. M. Cover, J. A. Thomas, Elements of Information Theory, Sections 2.4 (mutual information) and 2.5 (chain rules, conditional mutual information).
Entropy does not see an injective re-encoding G = e ∘ F that holds on the support.
I(A; B | C) = 0 when the joint law of (C, A, B) factors as f (c, a) * g (c, b): given
C, the variables A and B are independent.
If T is determined by C on the support, it carries no information about A given C.
Injective re-encoding of the last variable on the support does not change conditional mutual information.
Injective re-encoding of the second variable on the support does not change mutual information.
Chain rule for I(A; T) through an observation B = k ∘ T:
I(A; T) = I(A; B) + E_b I(A; T | B = b).
Chain rule through an observation B = k ∘ T:
I(A; T | C) = I(A; B | C) + E_b I(A; T | C, B = b).
Conditioning on an observation #
Conditioning on f = c keeps only outcomes with f ω = c.
Conditioning on f = c restricts to f ω = c and renormalizes.