Entropy of a Fair Bit

Calculate the Shannon entropy of a fair bit and compare it with the entropy of a source that always returns the same value.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two equal outcomes
  2. Compare a fixed source
  3. Evaluate two contributions to the entropy formula
  4. State whether successive draws are independent

For positive outcome probabilities \(p_j\), entropy is \(H=-\sum_j p_j\log_2 p_j\), measured in bits.

Trace two equal outcomes

With two outcomes of probability one half, each contributes one bit of information when observed. Their entropy is one bit. See expected values for how those contributions average.

Compare a fixed source

If one outcome occurs with probability one, its information is zero because there is no uncertainty in that model. Entropy and expected code length relate this to coding.[1][2]

Evaluate two contributions to the entropy formula

A fair binary symbol has two outcomes of probability \(1/2\). Each contributes \(-\tfrac12\log_2(\tfrac12)=\tfrac12\) bit, giving Shannon entropy one bit per draw. A deterministic bit has entropy zero. See information of a rare symbol.

Fair probabilities .5,.5 → entropy 1 bit
Deterministic probabilities 1,0 → entropy 0 bits
The contribution at probability zero uses the limiting value zero

State whether successive draws are independent

For a repeated identical bit drawn once and copied many times, each position can still have a fair marginal. The whole repeated block has only one bit of uncertainty under that model.

References

  1. Claude E. Shannon, A Mathematical Theory of Communication ↩
  2. David J. C. MacKay, Information Theory, Inference, and Learning Algorithms ↩