I know that $H(x) = -\sum(p(x_i)\log(p(x_i))$
And I have found $P(x_i)=1/6\cdot(5/6)^{i-1}$
However I do not know how to calculate this when I put $P(x_i)$ into the formula $H(x)$
I know that $H(x) = -\sum(p(x_i)\log(p(x_i))$
And I have found $P(x_i)=1/6\cdot(5/6)^{i-1}$
However I do not know how to calculate this when I put $P(x_i)$ into the formula $H(x)$
Copyright © 2021 JogjaFile Inc.
Since it is $\le 3$, $P(x_i)=(\frac{1}{2})^i$. Therefore $H(x)=\sum_{i=1}^\infty (\frac{1}{2})^i \, i \ln{2}=2 \ln{2}$.
Note I used $\ln((\frac{1}{2})^i)=i \ln(1/2)$ with $\ln(1/2)=-\ln 2$ and $\sum_{i=1}^\infty i\,(\frac{1}{2})^i=2$.