InformationTheory.Shannon.KLDivContinuous
KL divergence in vector form and its continuity #
klDivSumForm_ofVec p q := ∑ a, p a * (log (p a) - log (q a)) and its continuity in p
under the Pi topology on α → ℝ (finite α).
Main definitions #
klDivSumForm_ofVec— KL divergence takingα → ℝinputs.
Main statements #
klDivSumForm_ofVec_continuous— continuous inpwhenq a > 0for alla.klDivIndex_eq_ofVec—klDivIndex c n Q = klDivSumForm_ofVec (c/n) (Q.real ∘ singleton).
InformationTheory.Shannon.klDivSumForm_ofVec
sourceKL divergence in finite-alphabet vector form taking α → ℝ inputs:
klDivSumForm_ofVec p q := ∑ a, p a * (log (p a) - log (q a)).
This variant is designed for continuity arguments in the Pi topology on α → ℝ,
complementing the Measure α-based klDiv.
Equations
Instances For
Used by
InformationTheory.Shannon.klDivSumForm_ofVec_continuous
source{α : Type u_1}
[Fintype α]
(q : α → ℝ)
(_hq_pos : ∀ (a : α), 0 < q a)
:
Continuous fun (p : α → ℝ) => klDivSumForm_ofVec p q
p ↦ klDivSumForm_ofVec p q is continuous when q a > 0 for all a.