At the same time, because f is invertible the average number of bits that can be encoded is given by the entropy H(q).
the small but positive KL value for arithmetic coding with k = 300 comes from the slight distributional difference when the long tail is truncated.