Information Theory and Coding Basics
A source emits the symbols A, B, C and D independently with probabilities 1/2, 1/4, 1/8 and 1/8. Which of the following is the entropy (average amount of information per symbol) of this source?
- A1.75 bits
- B2 bits
- C2.25 bits
Show answer and explanation
Answer: A. 1.75 bits
Entropy is the average of the amount of information −log₂ p of each symbol weighted by its probability: H = Σ(−p log₂ p). The symbols carry 1, 2, 3 and 3 bits of information, so H = 1/2 × 1 + 1/4 × 2 + 1/8 × 3 + 1/8 × 3 = 0.5 + 0.5 + 0.375 + 0.375 = 1.75 bits. If the four symbols were equally likely it would be 2 bits, but a skewed distribution lowers it accordingly.
- A. Correct. H = 0.5 + 0.5 + 0.375 + 0.375 = 1.75 bits.
- B. 2 bits is log₂ 4, the value (the maximum) when the four symbols are equally likely.
- C. 2.25 bits is the plain average of the amounts of information 1, 2, 3 and 3, without weighting them by probability.
Continue: 9 more Information Theory and Coding Basics questions