Supriya Ghosh (Editor)

Quantities of information

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Quantities of information

The mathematical theory of information is based on probability theory and statistics, and measures information with several quantities of information. The choice of logarithmic base in the following formulae determines the unit of information entropy that is used. The most common unit of information is the bit, based on the binary logarithm. Other units include the nat, based on the natural logarithm, and the hartley, based on the base 10 or common logarithm.

Contents

In what follows, an expression of the form p log p is considered by convention to be equal to zero whenever p is zero. This is justified because lim p 0 + p log p = 0 for any logarithmic base.

Self-information

Shannon derived a measure of information content called the self-information or "surprisal" of a message m:

I ( m ) = log ( 1 p ( m ) ) = log ( p ( m ) )

where p ( m ) = P r ( M = m ) is the probability that message m is chosen from all possible choices in the message space M . The base of the logarithm only affects a scaling factor and, consequently, the units in which the measured information content is expressed. If the logarithm is base 2, the measure of information is expressed in units of bits.

Information is transferred from a source to a recipient only if the recipient of the information did not already have the information to begin with. Messages that convey information that is certain to happen and already known by the recipient contain no real information. Infrequently occurring messages contain more information than more frequently occurring messages. This fact is reflected in the above equation - a certain message, i.e. of probability 1, has an information measure of zero. In addition, a compound message of two (or more) unrelated (or mutually independent) messages would have a quantity of information that is the sum of the measures of information of each message individually. That fact is also reflected in the above equation, supporting the validity of its derivation.

An example: The weather forecast broadcast is: "Tonight's forecast: Dark. Continued darkness until widely scattered light in the morning." This message contains almost no information. However, a forecast of a snowstorm would certainly contain information since such does not happen every evening. There would be an even greater amount of information in an accurate forecast of snow for a warm location, such as Miami. The amount of information in a forecast of snow for a location where it never snows (impossible event) is the highest (infinity).

Entropy

The entropy of a discrete message space M is a measure of the amount of uncertainty one has about which message will be chosen. It is defined as the average self-information of a message m from that message space:

H ( M ) = E { I ( M ) } = m M p ( m ) I ( m ) = m M p ( m ) log p ( m ) .

where

E { } denotes the expected value operation.

An important property of entropy is that it is maximized when all the messages in the message space are equiprobable (e.g. p ( m ) = 1 / M ). In this case H ( M ) = log | M | . .

Sometimes the function H is expressed in terms of the probabilities of the distribution:

H ( p 1 , p 2 , , p k ) = i = 1 k p i log p i , where each p i 0 and i = 1 k p i = 1.

An important special case of this is the binary entropy function:

H b ( p ) = H ( p , 1 p ) = p log p ( 1 p ) log ( 1 p ) .

Joint entropy

The joint entropy of two discrete random variables X and Y is defined as the entropy of the joint distribution of X and Y :

H ( X , Y ) = E X , Y [ log p ( x , y ) ] = x , y p ( x , y ) log p ( x , y )

If X and Y are independent, then the joint entropy is simply the sum of their individual entropies.

(Note: The joint entropy should not be confused with the cross entropy, despite similar notations.)

Conditional entropy (equivocation)

Given a particular value of a random variable Y , the conditional entropy of X given Y = y is defined as:

H ( X | y ) = E X | Y [ log p ( x | y ) ] = x X p ( x | y ) log p ( x | y )

where p ( x | y ) = p ( x , y ) p ( y ) is the conditional probability of x given y .

The conditional entropy of X given Y , also called the equivocation of X about Y is then given by:

H ( X | Y ) = E Y { H ( X | y ) } = y Y p ( y ) x X p ( x | y ) log p ( x | y ) = x , y p ( x , y ) log p ( y ) p ( x , y ) .

A basic property of the conditional entropy is that:

H ( X | Y ) = H ( X , Y ) H ( Y ) .

References

Quantities of information Wikipedia