Skip to content

Commit 12a82eb

Browse files
committed
some intuition about concavity of entropy
1 parent 3f7fd37 commit 12a82eb

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

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

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,8 @@ \subsection{Inequalities}
707707
\end{corollary}
708708

709709

710-
\begin{theorem}
710+
\begin{theorem}[Uniform distribution maximizes entropy]
711711
A \@{random-variable} has the most \@{entropy} when the \@{elements} of its alphabet are all equally likely to occur.
712-
% TODO (path B): re-derive from D(p || u) = log|X| - H(X) >= 0, with u uniform (Cover and Thomas Thm 2.6.4). The current proof below uses Lagrange multipliers.
713712
\end{theorem}
714713

715714
\begin{proof}
@@ -731,7 +730,6 @@ \subsection{Inequalities}
731730

732731
\begin{theorem}
733732
The \@{uncertainty} of $Y$ is never increased by knowledge of $X.$ It will be decreased unless $X$ and $Y$ are independent events, in which case it is not changed.
734-
% TODO (path B): re-derive from I(X;Y) >= 0 (Cover and Thomas Thm 2.6.5). The current proof below uses subadditivity and the chain rule, which reverses the intended dependency.
735733
\end{theorem}
736734

737735
\begin{proof}
@@ -967,6 +965,40 @@ \subsection{Log Sum Inequality and Its Applications}
967965
\end{intuition}
968966

969967
\begin{theorem}[Concavity of Entropy]
968+
$H(p)$ is a \@{concave function} of $p.$
969+
\end{theorem}
970+
\begin{proof}
971+
Let $u$ be the uniform distribution on $|\mathcal{X}|$ outcomes. Then from the definition of @{relative-entropy},
972+
973+
\[ D(P \| u) = H(p, u) - H(p) \iff H(p) = H(p, u) - D(p \| u). \]
974+
975+
Then, from the definition of \@{cross-entropy}
976+
977+
\bal
978+
H(p, u) & = - \sum_{x \in \mathcal{X}} p(x) \log{u(x)} \\
979+
& = - \sum_{x \in \mathcal{X}} p(x) \log{\frac{1}{|\mathcal{X}|}} \\
980+
& = - \sum_{x \in \mathcal{X}} p(x) \left ( \log{1} - \log{|\mathcal{X}|} \right ) \\
981+
& = \sum_{x \in \mathcal{X}} p(x) \log{|\mathcal{X}|} \\
982+
& = \log{|\mathcal{X}|} \\
983+
\eal
984+
985+
So,
986+
987+
\[ H(p) = \log{|\mathcal{X}|} - D(p \| u), \]
988+
989+
and by \@{convexity of relative entropy}, \@{entropy} is a \@{concave function}.
990+
\end{proof}
991+
\begin{intuition}
992+
The intuition is that mixing distributions can never decrease uncertaintity.
993+
994+
\includegraphics[alt={Convexity of Relative Entropy}]{concavity-of-entropy.png}
995+
The image above was generated using GPT-5.6 Sol.
996+
997+
We already proved \@{Uniform distribution maximizes entropy} using Lagrangian multipliers, but the proof above shows it in another way. If $p = u,$ then $D(p \| u) = 0,$ and since $\log{|\mathcal{X}|}$ is constant in $|\mathcal{X}|,$ $H$ is maximized by $u$.
998+
\end{intuition}
999+
1000+
\begin{theorem}[Concavity and Convexity of Mutual Information]
1001+
TODO: Cover \& Thomas Theorem 2.7.4.
9701002
\end{theorem}
9711003

9721004
\subsection{Data-Processing Inequality}
1.34 MB
Loading

0 commit comments

Comments
 (0)