The independent and identically distributed hypothesis factors the joint probability mass function:Symbols outside the support of a probability distribution never occur, almost surely. On its finite positive probability support, is bounded, so the strong law of large numbers applies:This is the asymptotic equipartition property with the sign appropriate to a logarithm of a probability mass.
For a fixed estimated probability mass function , the estimated joint probability mass function is . If whenever , the strong law of large numbers gives the mismatched asymptotic equipartition property:Here is cross-entropy, and the last equality is cross-entropy equals entropy plus relative entropy. The Kullback-Leibler divergence measures the extra average logarithmic loss from the estimated law.
If for some with , let . The probability that none of the first observations belongs to this set is . Almost surely such a symbol eventually occurs, after which forever. Thus the limit is , consistent with infinite cross-entropy and infinite Kullback-Leibler divergence.
For every , the defining typical set constraint impliesLet . Summing the lower probability mass bound over givesThereforeThe sample mean constraint can only shrink the typical set, so this cardinality upper bound holds for every positive integer .
For fixed , the asymptotic equipartition property gives . The strong law of large numbers applied to , which are bounded because their numerical alphabet is finite, gives . The union bound therefore yieldsSince , eventually . Each word in has probability mass at most , soRearranging provesfor sufficiently large . The key is that the factor is a fixed number below one, however small is. This is an instance of typical sets with an additional high-probability constraint.
First, the binary translation of a quaternary prefix code is still a prefix code: every translated codeword length is even, and a binary prefix relation would split into complete two-bit blocks, giving a prefix relation between the original quaternary codewords. Binary Huffman coding is optimal among binary prefix codes, soFor the other direction, let and round these binary codeword lengths to quaternary lengths . The Kraft inequality givesThe quaternary converse of the Kraft inequality supplies a quaternary prefix code with lengths . Optimality of the quaternary Huffman code then impliesThus binary translation of an optimal quaternary code costs at most one extra bit per source symbol:The quaternary Huffman code uses the usual adjustment of adding zero-weight dummy leaves when needed. If the alphabet has one symbol, both optimal codes may use the empty codeword, giving the trivial endpoint.
Articles by others on the same topic
There are currently no matching articles.