Samiksha Jaiswal (Editor)

Pointwise mutual information

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Pointwise mutual information (PMI), or point mutual information, is a measure of association used in information theory and statistics. In contrast to mutual information (MI) which builds upon PMI, it refers to single events, whereas MI refers to the average of all possible events.

Contents

Definition

The PMI of a pair of outcomes x and y belonging to discrete random variables X and Y quantifies the discrepancy between the probability of their coincidence given their joint distribution and their individual distributions, assuming independence. Mathematically:

pmi ( x ; y ) log p ( x , y ) p ( x ) p ( y ) = log p ( x | y ) p ( x ) = log p ( y | x ) p ( y ) .

The mutual information (MI) of the random variables X and Y is the expected value of the PMI over all possible outcomes (with respect to the joint distribution p ( x , y ) ).

The measure is symmetric ( pmi ( x ; y ) = pmi ( y ; x ) ). It can take positive or negative values, but is zero if X and Y are independent. Note that even though PMI may be negative or positive, its expected outcome over all joint events (MI) is positive. PMI maximizes when X and Y are perfectly associated (i.e. p ( x | y ) or p ( y | x ) = 1 ), yielding the following bounds:

pmi ( x ; y ) min [ log p ( x ) , log p ( y ) ] .

Finally, pmi ( x ; y ) will increase if p ( x | y ) is fixed but p ( x ) decreases.

Here is an example to illustrate:

Using this table we can marginalize to get the following additional table for the individual distributions:

With this example, we can compute four values for p m i ( x ; y ) . Using base-2 logarithms:

(For reference, the mutual information I ( X ; Y ) would then be 0.2141709)

Similarities to mutual information

Pointwise Mutual Information has many of the same relationships as the mutual information. In particular,

pmi ( x ; y ) = h ( x ) + h ( y ) h ( x , y ) = h ( x ) h ( x | y ) = h ( y ) h ( y | x )

Where h ( x ) is the self-information, or log 2 p ( X = x ) .

Normalized pointwise mutual information (npmi)

Pointwise mutual information can be normalized between [-1,+1] resulting in -1 (in the limit) for never occurring together, 0 for independence, and +1 for complete co-occurrence.

npmi ( x ; y ) = pmi ( x ; y ) h ( x , y )

PMI Variants

In addition to the above-mentioned npmi, PMI has many other interesting variants. A comparative study of these variants can be found in

Chain-rule for pmi

Like MI, PMI follows the chain rule, that is,

pmi ( x ; y z ) = pmi ( x ; y ) + pmi ( x ; z | y )

This is easily proven by:

pmi ( x ; y ) + pmi ( x ; z | y ) = log p ( x , y ) p ( x ) p ( y ) + log p ( x , z | y ) p ( x | y ) p ( z | y ) = log [ p ( x , y ) p ( x ) p ( y ) p ( x , z | y ) p ( x | y ) p ( z | y ) ] = log p ( x | y ) p ( y ) p ( x , z | y ) p ( x ) p ( y ) p ( x | y ) p ( z | y ) = log p ( x , y z ) p ( x ) p ( y z ) = pmi ( x ; y z )

Applications

In computational linguistics, PMI has been used for finding collocations and associations between words. For instance, countings of occurrences and co-occurrences of words in a text corpus can be used to approximate the probabilities p ( x ) and p ( x , y ) respectively. The following table shows counts of pairs of words getting the most and the least PMI scores in the first 50 millions of words in Wikipedia (dump of October 2015) filtering by 1,000 or more co-occurrences. The frequency of each count can be obtained by dividing its value by 50,000,952.

Good collocation pairs have high PMI because the probability of co-occurrence is only slightly lower than the probabilities of occurrence of each word. Conversely, a pair of words whose probabilities of occurrence are considerably higher than their probability of co-occurrence gets a small PMI score.

References

Pointwise mutual information Wikipedia


Similar Topics