I'm diverging a bit today. My friend Beli showed me this proof and I understood Shannon's entropy from the ground up for the first time and wanted to share.
Shannon’s entropy is usually presented as a formula,
but the real question is why this expression is forced on us. The answer comes from thinking carefully about uncertainty and how it behaves when decisions are broken into stages.
Consider a situation with equally likely outcomes. The uncertainty associated with this situation depends only on . Call this quantity . If we make a sequence of independent choices, uncertainty should add. That gives the functional equation
The only solutions of this form are logarithms, so for equally likely outcomes we must have
for some constant , which sets the choice of units.
Now consider a general probability distribution . To connect this case to the equal-probability case, approximate each probability by a rational number. Write
where the integers sum to .
Imagine a two-stage decision process. In the first stage, we choose one of the groups, where group has probability . In the second stage, once group
is chosen, we choose uniformly among its equally likely outcomes.
Viewed as a single process, this is equivalent to choosing uniformly among outcomes. The total uncertainty is therefore
Viewed in two stages, the total uncertainty is the uncertainty of the first choice plus the expected uncertainty of the second choice. The first stage contributes . The second stage contributes
Consistency requires these two descriptions to agree, so
Rearranging gives
Substitute . Then
and so
Since the probabilities sum to one, this becomes
Substituting back,
This is Shannon’s entropy formula.
What matters is not the algebra but the structure of the argument. Uncertainty must be additive across independent choices. It must reduce to a logarithm in the equally likely case. And it must behave consistently when a decision is broken into stages. These requirements leave no freedom. The entropy formula is not chosen. It is forced.
.jpeg)
.jpeg)

No comments:
Post a Comment