Adjusted mutual information explained

In probability theory and information theory, adjusted mutual information, a variation of mutual information may be used for comparing clusterings.[1] It corrects the effect of agreement solely due to chance between clusterings, similar to the way the adjusted rand index corrects the Rand index. It is closely related to variation of information:[2] when a similar adjustment is made to the VI index, it becomes equivalent to the AMI. The adjusted measure however is no longer metrical.

Mutual information of two partitions

Given a set S of N elements

S=\{s1,s2,\ldotssN\}

, consider two partitions of S, namely

U=\{U1,U2,\ldots,UR\}

with R clusters, and

V=\{V1,V2,\ldots,VC\}

with C clusters. It is presumed here that the partitions are so-called hard clusters; the partitions are pairwise disjoint:

Ui\capUj=\varnothing=Vi\capVj

for all

i\nej

, and complete:
RU
\cup
i=\cup
C
j=1

Vj=S

The mutual information of cluster overlap between U and V can be summarized in the form of an RxC contingency table

M=[nij

i=1\ldotsR
]
j=1\ldotsC
, where

nij

denotes the number of objects that are common to clusters

Ui

and

Vj

. That is,

nij=\left|Ui\capVj\right|

Suppose an object is picked at random from S; the probability that the object falls into cluster

Ui

is:
P
U(i)=|Ui|
N
The entropy associated with the partitioning U is:
R
H(U)=-\sum
i=1

PU(i)logPU(i)

H(U) is non-negative and takes the value 0 only when there is no uncertainty determining an object's cluster membership, i.e., when there is only one cluster. Similarly, the entropy of the clustering V can be calculated as:
C
H(V)=-\sum
j=1

PV(j)logPV(j)

where

PV(j)={|Vj|}/{N}

. The mutual information (MI) between two partitions:
R
MI(U,V)=\sum
i=1
C
\sum
j=1

PUV(i,j)log

PUV(i,j)
PU(i)PV(j)
where

PUV(i,j)

denotes the probability that a point belongs to both the cluster

Ui

in U and cluster

Vj

in V:

PUV(i,j)=

|Ui\capVj|
N
MI is a non-negative quantity upper bounded by the entropies H(U) and H(V). It quantifies the information shared by the two clusterings and thus can be employed as a clustering similarity measure.

Adjustment for chance

Like the Rand index, the baseline value of mutual information between two random clusterings does not take on a constant value, and tends to be larger when the two partitions have a larger number of clusters (with a fixed number of set elements N).By adopting a hypergeometric model of randomness, it can be shown that the expected mutual information between two random clusterings is:

\begin{align}E\{MI(U,V)\}=

R
& \sum
i=1
C
\sum
j=1
min(ai,bj)
\sum
n=(ai+b
+
j-N)
ij
nij
N

log\left(

Nnij
aibj

\right) x \\ &

ai!bj!(N-ai)!(N-bj)!
N!nij!(ai-nij)!(bj-nij)!(N-ai-bj+nij)!

\\ \end{align}

where

(ai+b

+
j-N)
denotes

max(0,ai+bj-N)

. The variables

ai

and

bj

are partial sums of the contingency table; that is,

ai=\sum

Cn
ij
and

bj=\sum

Rn
ij

The adjusted measure[1] for the mutual information may then be defined to be:

AMI(U,V)=

MI(U,V)-E\{MI(U,V)\
} .

The AMI takes a value of 1 when the two partitions are identical and 0 when the MI between two partitions equals the value expected due to chance alone.

References

  1. Book: Vinh . N. X. . Epps . J. . Bailey . J. . 10.1145/1553374.1553511 . Information theoretic measures for clusterings comparison . Proceedings of the 26th Annual International Conference on Machine Learning - ICML '09 . 1 . 2009 . 9781605585161 .
  2. Meila . M. . Comparing clusterings—an information based distance . 10.1016/j.jmva.2006.11.013 . Journal of Multivariate Analysis . 98 . 5 . 873–895 . 2007 . free .

External links