Preply — Study more efficiently by working with a personal tutor. Get 50% off.Affiliate

Wikipedia

Pinsker's inequality

In information theory, Pinsker's inequality, named after its inventor Mark Semenovich Pinsker, is an inequality that bounds the total variation distance (or statistical distance) in terms of the Kullback–Leibler divergence. The inequality is tight up to constant factors.

Formal statement Pinsker's inequality states that, if P {\displaystyle P} and Q {\displaystyle Q} are two probability distributions on a measurable space ( X , Σ ) {\displaystyle (X,\Sigma )} , then

δ ( P , Q ) ≤ 1 2 D K L ( P ∥ Q ) , {\displaystyle \delta (P,Q)\leq {\sqrt {{\frac {1}{2}}D_{\mathrm {KL} }(P\parallel Q)}},}

where

δ ( P , Q ) = sup { | P ( A ) − Q ( A ) | ∣ A ∈ Σ is a measurable event } {\displaystyle \delta (P,Q)=\sup {\bigl \{}|P(A)-Q(A)|\mid \quad A\in \Sigma {\text{ is a measurable event}}{\bigr \}}}

is the total variation distance (or statistical distance) between P {\displaystyle P} and Q {\displaystyle Q} and

D K L ( P ∥ Q ) = E P ⁡ ( log ⁡ d P d Q ) = ∫ X ( log ⁡ d P d Q ) d P {\displaystyle D_{\mathrm {KL} }(P\parallel Q)=\operatorname {E} _{P}\left(\log {\frac {\mathrm {d} P}{\mathrm {d} Q}}\right)=\int _{X}\left(\log {\frac {\mathrm {d} P}{\mathrm {d} Q}}\right)\,\mathrm {d} P}

is the Kullback–Leibler divergence in nats. When the sample space X {\displaystyle X} is a finite set, the Kullback–Leibler divergence is given by

D K L ( P ∥ Q ) = ∑ i ∈ X ( log ⁡ P ( i ) Q ( i ) ) P ( i ) {\displaystyle D_{\mathrm {KL} }(P\parallel Q)=\sum _{i\in X}\left(\log {\frac {P(i)}{Q(i)}}\right)P(i)\!}

Note that in terms of the total variation norm ‖ P − Q ‖ {\displaystyle \|P-Q\|} of the signed measure P − Q {\displaystyle P-Q} , Pinsker's inequality differs from the one given above by a factor of two:

‖ P − Q ‖ ≤ 2 D K L ( P ∥ Q ) . {\displaystyle \|P-Q\|\leq {\sqrt {2D_{\mathrm {KL} }(P\parallel Q)}}.}

A proof of Pinsker's inequality uses the partition inequality for f-divergences.

Alternative version Note that the expression of Pinsker inequality depends on what basis of logarithm is used in the definition of KL-divergence. D K L {\displaystyle D_{KL}} is defined using ln {\displaystyle \ln } (logarithm in base e {\displaystyle e} ), whereas D {\displaystyle D} is typically defined with log 2 {\displaystyle \log _{2}} (logarithm in base 2). Then,

D ( P ∥ Q ) = D K L ( P ∥ Q ) ln ⁡ 2 . {\displaystyle D(P\parallel Q)={\frac {D_{KL}(P\parallel Q)}{\ln 2}}.}

Given the above comments, there is an alternative statement of Pinsker's inequality in some literature that relates information divergence to variation distance:

D ( P ∥ Q ) = D K L ( P ∥ Q ) ln ⁡ 2 ≥ 1 2 ln ⁡ 2 V 2 ( p , q ) , {\displaystyle D(P\parallel Q)={\frac {D_{KL}(P\parallel Q)}{\ln 2}}\geq {\frac {1}{2\ln 2}}V^{2}(p,q),}

i.e.,

D K L ( P ∥ Q ) 2 ≥ V ( p , q ) 2 , {\displaystyle {\sqrt {\frac {D_{KL}(P\parallel Q)}{2}}}\geq {\frac {V(p,q)}{2}},}

in which

V ( p , q ) = ∑ x ∈ X | p ( x ) − q ( x ) | {\displaystyle V(p,q)=\sum _{x\in {\mathcal {X}}}|p(x)-q(x)|}

is the (non-normalized) variation distance between two probability density functions p {\displaystyle p} and q {\displaystyle q} on the same alphabet X {\displaystyle {\mathcal {X}}} . This form of Pinsker's inequality shows that "convergence in divergence" is a stronger notion than "convergence in variation distance". A simple proof by John Pollard is shown by letting r ( x ) = P ( x ) / Q ( x ) − 1 ≥ − 1 {\displaystyle r(x)=P(x)/Q(x)-1\geq -1} :

D K L ( P ∥ Q ) = E Q [ ( 1 + r ( x ) ) log ⁡ ( 1 + r ( x ) ) − r ( x ) ] ≥ 1 2 E Q [ r ( x ) 2 1 + r ( x ) / 3 ] ≥ 1 2 E Q [ | r ( x ) | ] 2 E Q [ 1 + r ( x ) / 3 ] (from Titu's lemma) = 1 2 E Q [ | r ( x ) | ] 2 (As E Q [ 1 + r ( x ) / 3 ] = 1 ) = 1 2 V ( p , q ) 2 . {\displaystyle {\begin{aligned}D_{KL}(P\parallel Q)&=E_{Q}[(1+r(x))\log(1+r(x))-r(x)]\\&\geq {\frac {1}{2}}E_{Q}\left[{\frac {r(x)^{2}}{1+r(x)/3}}\right]\\&\geq {\frac {1}{2}}{\frac {E_{Q}[|r(x)|]^{2}}{E_{Q}[1+r(x)/3]}}&{\text{(from Titu's lemma)}}\\&={\frac {1}{2}}E_{Q}[|r(x)|]^{2}&{\text{(As }}E_{Q}[1+r(x)/3]=1{\text{ )}}\\&={\frac {1}{2}}V(p,q)^{2}.\end{aligned}}}

Here Titu's lemma is also known as Sedrakyan's inequality. Note that the lower bound from Pinsker's inequality is vacuous for any distributions where D K L ( P ∥ Q ) > 2 {\displaystyle D_{\mathrm {KL} }(P\parallel Q)>2} , since the total variation distance is at most 1 {\displaystyle 1} . For such distributions, an alternative bound can be used, due to Bretagnolle and Huber (see, also, Tsybakov):

δ ( P , Q ) ≤ 1 − e − D K L ( P ∥ Q ) . {\displaystyle \delta (P,Q)\leq {\sqrt {1-e^{-D_{\mathrm {KL} }(P\parallel Q)}}}.}

History Pinsker first proved the inequality with a greater constant. The inequality in the above form was proved independently by Kullback, Csiszár, and Kemperman.

Inverse problem A precise inverse of the inequality cannot hold: for every ε > 0 {\displaystyle \varepsilon >0} , there are distributions P ε , Q {\displaystyle P_{\varepsilon },Q} with δ ( P ε , Q ) ≤ ε {\displaystyle \delta (P_{\varepsilon },Q)\leq \varepsilon } but D K L ( P ε ∥ Q ) = ∞ {\displaystyle D_{\mathrm {KL} }(P_{\varepsilon }\parallel Q)=\infty } . An easy example is given by the two-point space { 0 , 1 } {\displaystyle \{0,1\}} with Q ( 0 ) = 0 , Q ( 1 ) = 1 {\displaystyle Q(0)=0,Q(1)=1} and P ε ( 0 ) = ε , P ε ( 1 ) = 1 − ε {\displaystyle P_{\varepsilon }(0)=\varepsilon ,P_{\varepsilon }(1)=1-\varepsilon } . However, an inverse inequality holds on finite spaces X {\displaystyle X} with a constant depending on Q {\displaystyle Q} . More specifically, it can be shown that with the definition α Q := min x ∈ X : Q ( x ) > 0 Q ( x ) {\displaystyle \alpha _{Q}:=\min _{x\in X:Q(x)>0}Q(x)} we have for any measure P {\displaystyle P} which is absolutely continuous to Q {\displaystyle Q}

1 2 D K L ( P ∥ Q ) ≤ 1 α Q δ ( P , Q ) 2 . {\displaystyle {\frac {1}{2}}D_{\mathrm {KL} }(P\parallel Q)\leq {\frac {1}{\alpha _{Q}}}\delta (P,Q)^{2}.}

As a consequence, if Q {\displaystyle Q} has full support (i.e. Q ( x ) > 0 {\displaystyle Q(x)>0} for all x ∈ X {\displaystyle x\in X} ), then

δ ( P , Q ) 2 ≤ 1 2 D K L ( P ∥ Q ) ≤ 1 α Q δ ( P , Q ) 2 . {\displaystyle \delta (P,Q)^{2}\leq {\frac {1}{2}}D_{\mathrm {KL} }(P\parallel Q)\leq {\frac {1}{\alpha _{Q}}}\delta (P,Q)^{2}.}

Proof of Pinsker’s inequality Lemma 1.1 (Pinsker’s inequality) Let P {\displaystyle P} and Q {\displaystyle Q} be two distributions defined on the universe U {\displaystyle U} . Then, D ( P | | Q ) ≥ 1 2 ln ⁡ 2 ⋅ | | P − Q | | 1 2 . {\displaystyle D(P||Q)\geq {\frac {1}{2\ln 2}}\cdot ||P-Q||_{1}^{2}.}

Proof: A special case:

P = { 1 , w.p. p 0 , w.p. 1 − p {\displaystyle P={\begin{cases}1,&{\text{w.p. }}p\\0,&{\text{w.p. }}1-p\end{cases}}}

and,

Q = { 1 , w.p. q 0 , w.p. 1 − q {\displaystyle Q={\begin{cases}1,&{\text{w.p. }}q\\0,&{\text{w.p. }}1-q\end{cases}}}

We assume p ≥ q {\displaystyle p\geq q} (other case is similar), and let

f ( p , q ) = p log ⁡ p q + ( 1 − p ) log ⁡ 1 − p 1 − q − 1 2 ln ⁡ 2 ( 2 ( p − q ) ) 2 . {\displaystyle f(p,q)=p\log {\frac {p}{q}}+(1-p)\log {\frac {1-p}{1-q}}-{\frac {1}{2\ln 2}}(2(p-q))^{2}.}

Since

∂ f ∂ q = − p − q ln ⁡ 2 ( 1 q ( 1 − q ) − 4 ) ≤ 0 , {\displaystyle {\frac {\partial f}{\partial q}}=-{\frac {p-q}{\ln 2}}\left({\frac {1}{q(1-q)}}-4\right)\leq 0,}

and f = 0 {\displaystyle f=0} when q = p {\displaystyle q=p} , we conclude that f ( p , q ) ≥ 0 {\displaystyle f(p,q)\geq 0} where q ≤ p . {\displaystyle q\leq p.} Thus we have that D ( P | | Q ) ≥ 1 2 ln ⁡ 2 | | P − Q | | 1 2 {\displaystyle D(P||Q)\geq {\tfrac {1}{2\ln 2}}||P-Q||_{1}^{2}} for this special case. General case: Let P {\displaystyle P} and Q {\displaystyle Q} be distributions on U . {\displaystyle U.} Let A ⊂ U {\displaystyle A\subset U} be

A = { x | p ( x ) ≥ q ( x ) } . {\displaystyle A=\{x|p(x)\geq q(x)\}.}

and P A {\displaystyle P_{A}} and Q A {\displaystyle Q_{A}} be

P A = { 1 , w.p. ∑ x ∈ A p ( x ) 0 , w.p. ∑ x ∉ A p ( x ) {\displaystyle P_{A}={\begin{cases}1,&{\text{w.p. }}\sum \limits _{x\in A}p(x)\\0,&{\text{w.p. }}\sum \limits _{x\not \in A}p(x)\end{cases}}}

Q A = { 1 , w.p. ∑ x ∈ A q ( x ) 0 , w.p. ∑ x ∉ A q ( x ) {\displaystyle Q_{A}={\begin{cases}1,&{\text{w.p. }}\sum \limits _{x\in A}q(x)\\0,&{\text{w.p. }}\sum \limits _{x\not \in A}q(x)\end{cases}}}

Then,

| | P − Q | | 1 = ∑ x | p ( x ) − q ( x ) | = ∑ x ∈ A ( p ( x ) − q ( x ) ) + ∑ x ∉ A ( q ( x ) − p ( x ) ) = | ∑ x ∈ A p ( x ) − ∑ x ∈ A q ( x ) | + | ∑ x ∉ A p ( x ) − ∑ x ∉ A q ( x ) | | | P − Q | | 1 = | | P A − Q A | | 1 (1) {\displaystyle {\begin{aligned}||P-Q||_{1}&=\sum \limits _{x}|p(x)-q(x)|\\&=\sum \limits _{x\in A}(p(x)-q(x))+\sum \limits _{x\notin A}(q(x)-p(x))\\&=\left|\sum \limits _{x\in A}p(x)-\sum \limits _{x\in A}q(x)\right|+\left|\sum \limits _{x\notin A}p(x)-\sum \limits _{x\notin A}q(x)\right|\\||P-Q||_{1}&=||P_{A}-Q_{A}||_{1}&{\text{(1)}}\end{aligned}}}

Define a random variable Z {\displaystyle Z} as Z = { 1 , if x ∈ A 0 , if x ∉ A . {\displaystyle Z={\begin{cases}1,&{\text{if }}x\in A\\0,&{\text{if }}x\notin A\end{cases}}.} We have that D ( P | | Q ) = D ( P ( Z ) | | Q ( Z ) ) + D ( P | | Q | Z ) . {\displaystyle D(P||Q)=D(P(Z)||Q(Z))+D(P||Q|Z).} Since D ( P ( Z ) | | Q ( Z ) ) = D ( P A | | Q A ) {\displaystyle D(P(Z)||Q(Z))=D(P_{A}||Q_{A})} and D ( P | | Q | Z ) ≥ 0 , {\displaystyle D(P||Q|Z)\geq 0,} we have

D ( P | | Q ) ≥ D ( P A | Q A ) ≥ 1 2 ln ⁡ 2 ⋅ | | P A − Q A | | 1 2 (use the special case) = 1 2 ln ⁡ 2 ⋅ | | P − Q | | 1 2 (use equation 1) {\displaystyle {\begin{aligned}D(P||Q)&\geq D(P_{A}|\ Q_{A})\\&\geq {\frac {1}{2\ln 2}}\cdot ||P_{A}-Q_{A}|{|_{1}}^{2}&{\text{(use the special case)}}\\&={\frac {1}{2\ln 2}}\cdot ||P-Q|{|_{1}}^{2}&{\text{(use equation 1)}}\end{aligned}}}

See also Bretagnolle–Huber inequality

References

Further reading Thomas M. Cover and Joy A. Thomas: Elements of Information Theory, 2nd edition, Willey-Interscience, 2006 Nicolo Cesa-Bianchi and Gábor Lugosi: Prediction, Learning, and Games, Cambridge University Press, 2006

Tags

  • Information theory
  • Probabilistic inequalities