I am getting $H(1/8,7/8) = 0.16$ while the solution says $H(1/8,7/8) = 0.544$ bits

108 Views Asked by At

Example and solution

Looking at the table in the picture above,

$$ H(1/8 , 7/8) = -\sum_x p(x) \log(p(x)) = - \left[ (1/8) \log(1/8) + (7/8) \log (7/8) \right] = 0.16 $$

What am i doing wrong? I can't figure it out. Thanks