Exams › GATE › Technical
A fair coin is tossed repeatedly until a 'Head' appears for the first time. Let L be the number of tosses to get this first 'Head'. The entropy H(L) in bits is _____.
- 1
- 2
- 3
- 4
Correct answer: 2
Solution
L is geometric: P(L=k)=(1/2)^k for k>=1. H(L) = -sum (1/2)^k log2((1/2)^k) = sum k(1/2)^k = 2 bits.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →