H(p)=āip(i)ā logā”(1p(i))\mathrm{H}(\mathrm{p})=\sum_{i} p(i) \cdot \log \left(\frac{1}{p(i)}\right)H(p)=āiāp(i)ā log(p(i)1ā)