Gibbs' inequality

from Wikipedia, the free encyclopedia

In information theory , the Gibbs inequality (according to JW Gibbs ) is a statement about the entropy of a discrete probability distribution . It is used to obtain a lower limit for the mean code word length of optimal prefix codes and a lower limit for the mean transit time of comparison-based sorting methods .

Gibbs' inequality

Let and be discrete probability distributions, i.e. H. for everyone and . Then:

Equality occurs if and only for everyone .

proof

The inequality applies to all , with equality only occurring in the case .


If you put in for in particular , you get .


If you multiply the inequality by and add up over all , you get

.


After is, it follows

.


If the two terms are brought to the opposite side, then is

.


Instead of the natural logarithm, any other base of logarithms can just as well be used, as applies.

You only need to divide the inequality by the positive number .


In information theory, it makes sense to choose as a basis .

Inferences

The following applies to entropy

,

with equality if and only for all .


If are discrete random variables then is

,

with equality if and only if and are stochastically independent .


Some useful applications arise in connection with the force inequality . To do this, let a complete binary tree with the leaf depths and a probability distribution assigned to the leaves be given. Then by means of :

The mean leaf depth is therefore limited from below by the entropy of the associated probability distribution.

It is then clear that the mean code word length of an optimal prefix code is limited from below by the entropy of the associated probability distribution of the symbols. Equality occurs here precisely when applies to all , where the code word length denotes the -th code word.

In the case of comparison-based sorting methods of elements under the assumption of uniform distribution, the lower limit results from considering the mean leaf depth of the binary decision tree . The average-case runtime of a comparison-based sorting method behaves asymptotically like .

literature

  • U. Schöning: Algorithmics . Spectrum Academic Publishing House, Heidelberg 2001.
  • E. Becker, W. Bürger: Continuum Mechanics. An introduction to the basics and simple applications, BG Teubner Verlag, Stuttgart 1975.
  • Hermann Rohling: Introduction to information and coding theory . BG Teubner Verlag, Stuttgart 1995, ISBN 3-519-06174-0 .

Web links