Documentation

CslibFrontier.Probability.ChangeOfMeasure

The change-of-measure inequality #

For probability measures μ and ν with finite Kullback–Leibler divergence and a function f integrable under μ with exp ∘ f integrable under ν,

∫ f ∂μ ≤ KL(μ ‖ ν) + log ∫ exp f ∂ν,

the divergence in nats. This is the easy half of the Donsker–Varadhan variational formula, and the change-of-measure step of PAC-Bayes bounds [McAllester1999] [ShalevShwartzBenDavid2014, Section 31.1, inequality (31.2)]. The proof is Gibbs' inequality for the exponentially tilted measure ν.tilted f, through Mathlib's integral_llr_tilted_right; the source derives it from Jensen's inequality for discrete distributions, and the measure form covers that case.

For nonnegative f, finiteness of ∫ exp f ∂ν already makes f integrable under μ, by the inequality for the truncations min f n and monotone convergence; this applies the inequality to unbounded functions, such as the binary relative entropy in the PAC-Bayes-kl bound.

The divergence of a point mass from a probability measure ν with an atom at a is log (1 / ν {a}). This evaluates the change-of-measure bound at a point mass, which turns a PAC-Bayes bound into an Occam bound.

Main results #

References #

The change-of-measure inequality (Donsker–Varadhan): for probability measures with klDiv μ ν ≠ ∞, ∫ f ∂μ ≤ KL(μ ‖ ν) + log ∫ exp f ∂ν, in nats.

A nonnegative function whose exponential has finite ν-integral is μ-integrable whenever KL(μ ‖ ν) < ∞: by change of measure, its truncations at level n have μ-integrals at most KL(μ ‖ ν) + log ∫ exp f ∂ν.

The divergence of a point mass at an atom of ν is finite.

The divergence of a point mass at an atom a of ν is log (1 / ν {a}), in nats.