I am wondering how to derive the entropy of a geometric random variable? Or where I can find some proof/derivation? I tried to search online, but seems not much resources is available.
Here is the probability density function of geometric distribution: $(1 - p)^{k-1}\,p$
Here is the entropy of a geometric distribution: $\frac{-(1-p)\log_2 (1-p) - p\log_2 p}{p}$
Where $p$ is the probability for the event to occur during each single experiment.
Thanks a lot.
Assume $ P(X=k) = (1-p)^{k-1}p $, where $ k \in Z^{+} $, then the entropy is
$$ \begin{aligned} Entropy(X) & = \sum_{k=1}^{+\infty} -(1-p)^{k-1}p \cdot \log_{2}{((1-p)^{k-1}p)} \\ & = -p \cdot \log_{2}{(p)} \sum_{k=1}^{+\infty} (1-p)^{k-1} - p \cdot \log_{2}{(1-p)} \sum_{k=1}^{+\infty} (k-1)(1-p)^{k-1} \\ & = - \log_{2}{(p)} - \frac{(1-p)\log_{2}{(1-p)}}{p} \end{aligned} $$