Compression of random binary data

Ian Kelly ian.g.kelly at gmail.com
Fri Oct 27 14:53:32 EDT 2017


On Thu, Oct 26, 2017 at 8:48 PM,  <danceswithnumbers at gmail.com> wrote:
> Shouldn't that be?
>
> py> 16 * (-7/16 * math.log2(7/16) - 6/16 * math.log2(6/16)) =

No, that's failing to account for 3/16 of the probability space.



More information about the Python-list mailing list