Skip to content

Commit cb84040

Browse files
committed
nonnegativity of relative entropy via log sum inequality
1 parent 8748da5 commit cb84040

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

content/applied-math/information-theory/01-discrete-entropy.tex

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,28 @@ \subsection{Log Sum Inequality and Its Applications}
903903

904904
\end{proof}
905905

906+
\begin{theorem}[Nonnegativity of Relative Entropy]
907+
For discrete probability distributions $p$ and $q$ that share a support $\mathcal{X},$
908+
909+
\[ D(p \| q) \geq 0, \]
910+
911+
with equality if and only if $p = q.$
912+
\end{theorem}
913+
\begin{proof}
914+
This restates \@{gibbs-inequality}, which the \@{log-sum-inequality} proves more directly.
915+
TODO: apply the \@{log-sum-inequality} with $a_i = p_i$ and $b_i = q_i.$
916+
917+
\bal
918+
D(p \| q) & = \sum_{x \in \mathcal{X}} p(x) \log{\frac{p(x)}{q(x)}} \\
919+
& \geq \left ( \sum_{x \in \mathcal{X}} p(x) \right ) \log{\left ( \frac{\sum_x p(x)}{\sum_x q(x)} \right )} \\
920+
& = 1 \log{\left ( \frac{1}{1} \right )} \\
921+
& = 0,
922+
\eal
923+
924+
with equality if and only if $\frac{p(x)}{q(x)} = c.$ Both $p$ and $q$ are \@{probability mass functions}, so $c = 1$ (otherwise they wouldn't both sum to 1) and hence we have $D(p||q) = 0$ if and only if $p(x) = q(x)$ for all $x.$
925+
926+
\end{proof}
927+
906928
\begin{theorem}[Convexity of Relative Entropy]
907929
TODO: Cover \& Thomas Theorem 2.7.2.
908930

0 commit comments

Comments
 (0)