Given a simple image of size 10 × 10, whose histogram is depicted by symbols…
2014
Given a simple image of size 10 × 10, whose histogram is depicted by symbols p1, p2, p3, p4 having probability of occurrence a, b, c, and d respectively. The first-order estimate of the image entropy is maximum when:
- A.
\(a = 0, b = 0, c = 0, d = 1\) - B.
\(a=\frac{1}{2}, b=\frac{1}{2}, c=0, d=0\) - C.
\(a=\frac{1}{3}, b=\frac{1}{3}, c=\frac{1}{3}, d=0\) - D.
\(a=\frac{1}{4}, b=\frac{1}{4}, c=\frac{1}{4}, d=\frac{1}{4}\)
Attempted by 140 students.
Show answer & explanation
Correct answer: D
Concept: For a discrete probability distribution over n mutually exclusive outcomes with probabilities p1, p2, …, pn satisfying Σpi = 1, the first-order (Shannon) entropy H = −Σ pi log pi is a strictly concave function of the pi. By Jensen's inequality (equivalently, via a Lagrange multiplier on the constraint Σpi = 1), H attains its unique maximum precisely when every outcome is equally likely, i.e. pi = 1/n for every i, giving Hmax = log n.
Application: Here there are four symbols (n = 4) with probabilities a, b, c, d, so the working is:
Maximize H (any log base gives the same maximizer, since changing base only rescales H by a positive constant) subject to a + b + c + d = 1 by forming the Lagrangian L = −Σ p ln p + λ(Σp − 1).
Differentiate with respect to each probability p (p being a, b, c, or d): ∂L/∂p = −(ln p + 1) + λ = 0, so ln p is identical for every symbol — every p must be equal.
With four symbols, the common value is p = 1/4, so a = b = c = d = 1/4.
The maximum entropy value is H = −4·(1/4)·log2(1/4) = log24 = 2 bits.
Cross-check: Computing the entropy for all four candidate distributions independently confirms the theoretical result:
Distribution (a, b, c, d) | Entropy H |
|---|---|
0, 0, 0, 1 | 0 bits |
1/2, 1/2, 0, 0 | 1 bit |
1/3, 1/3, 1/3, 0 | log₂ 3 ≈ 1.585 bits |
1/4, 1/4, 1/4, 1/4 | log₂ 4 = 2 bits (largest) |
Therefore, the first-order estimate of image entropy is maximum when a = b = c = d = 1/4.