In probability theory and information theory, the variation of information or shared information distance is a measure of the distance between two clusterings (partitions of elements). It is closely related to mutual information; indeed, it is a simple linear expression involving the mutual information. Unlike the mutual information, however, the variation of information is a true metric, in that it obeys the triangle inequality.[1][2][3]
Definition
[edit]Suppose we have two partitions π {\displaystyle X}
and π {\displaystyle Y}
of a set π {\displaystyle A}
, namely π {\displaystyle X=\{X_{1},X_{2},\ldots ,X_{k}\}}
and π {\displaystyle Y=\{Y_{1},Y_{2},\ldots ,Y_{l}\}}
.
Let:
- π {\displaystyle n=\sum _{i}|X_{i}|=\sum _{j}|Y_{j}|=|A|}
- π {\displaystyle p_{i}=|X_{i}|/n}
and π {\displaystyle q_{j}=|Y_{j}|/n} - π {\displaystyle r_{ij}=|X_{i}\cap Y_{j}|/n}
Then the variation of information between the two partitions is:
This is equivalent to the shared information distance between the random variables i and j with respect to the uniform probability measure on π {\displaystyle A}
defined by π {\displaystyle \mu (B):=|B|/n}
for π {\displaystyle B\subseteq A}
.
Explicit information content
[edit]We can rewrite this definition in terms that explicitly highlight the information content of this metric.
The set of all partitions of a set form a compact lattice where the partial order induces two operations, the meet π {\displaystyle \wedge }
and the join π {\displaystyle \vee }
, where the maximum π {\displaystyle {\overline {\mathrm {1} }}}
is the partition with only one block, i.e., all elements grouped together, and the minimum is π {\displaystyle {\overline {\mathrm {0} }}}
, the partition consisting of all elements as singletons. The meet of two partitions π {\displaystyle X}
and π {\displaystyle Y}
is easy to understand as that partition formed by all pair intersections of one block of, π {\displaystyle X_{i}}
, of π {\displaystyle X}
and one, π {\displaystyle Y_{i}}
, of π {\displaystyle Y}
. It then follows that π {\displaystyle X\wedge Y\subseteq X}
and π {\displaystyle X\wedge Y\subseteq Y}
.
Let's define the entropy of a partition π {\displaystyle X}
as
where π {\displaystyle p_{i}=|X_{i}|/n}
. Clearly, π {\displaystyle H({\overline {\mathrm {1} }})=0}
and π {\displaystyle H({\overline {\mathrm {0} }})=\log \,n}
. The entropy of a partition is a monotonous function on the lattice of partitions in the sense that π {\displaystyle X\subseteq Y\Rightarrow H(X)\geq H(Y)}
.
Then the VI distance between π {\displaystyle X}
and π {\displaystyle Y}
is given by
The difference π {\displaystyle d(X,Y)\equiv |H\left(X\right)-H\left(Y\right)|}
is a pseudo-metric as π {\displaystyle d(X,Y)=0}
doesn't necessarily imply that π {\displaystyle X=Y}
. From the definition of π {\displaystyle {\overline {\mathrm {1} }}}
, it is π {\displaystyle \mathrm {VI} (X,\mathrm {1} )\,=\,H\left(X\right)}
.
If in the Hasse diagram we draw an edge from every partition to the maximum π {\displaystyle {\overline {\mathrm {1} }}}
and assign it a weight equal to the VI distance between the given partition and π {\displaystyle {\overline {\mathrm {1} }}}
, we can interpret the VI distance as basically an average of differences of edge weights to the maximum
For π {\displaystyle H(X)}
as defined above, it holds that the joint information of two partitions coincides with the entropy of the meet
and we also have that π {\displaystyle d(X,X\wedge Y)\,=\,H(X\wedge Y|X)}
coincides with the conditional entropy of the meet (intersection) π {\displaystyle X\wedge Y}
relative to π {\displaystyle X}
.
Identities
[edit]The variation of information satisfies
where π {\displaystyle H(X)}
is the entropy of π {\displaystyle X}
, and π {\displaystyle I(X,Y)}
is mutual information between π {\displaystyle X}
and π {\displaystyle Y}
with respect to the uniform probability measure on π {\displaystyle A}
. This can be rewritten as
where π {\displaystyle H(X,Y)}
is the joint entropy of π {\displaystyle X}
and π {\displaystyle Y}
, or
where π {\displaystyle H(X|Y)}
and π {\displaystyle H(Y|X)}
are the respective conditional entropies.
The variation of information can also be bounded, either in terms of the number of elements:
Or with respect to a maximum number of clusters, π {\displaystyle K^{*}}
:
Triangle inequality
[edit]To verify the triangle inequality π {\displaystyle \mathrm {VI} (X;Z)\leq \mathrm {VI} (X;Y)+\mathrm {VI} (Y;Z)}
, expand using the identity π {\displaystyle \mathrm {VI} (X;Y)=H(X|Y)+H(Y|X)}
. It suffices to prove π {\displaystyle H(X|Z)\leq H(X|Y)+H(Y|Z)}
The right side has a lower bound
π {\displaystyle H(X|Y)+H(Y|Z)\geq H(X|Y,Z)+H(Y|Z)=H(X,Y|Z)}
which is no less than the left side.
References
[edit]- ^ Arabie, P.; Boorman, S. A. (1973). "Multidimensional scaling of measures of distance between partitions". Journal of Mathematical Psychology. 10 (2): 148β203. doi:10.1016/0022-2496(73)90012-6.
- ^ W.H. Zurek, Nature, vol 341, p119 (1989); W.H. Zurek, Physics Review A, vol 40, p. 4731 (1989)
- ^ MeilΔ, Marina (2003). "Comparing Clusterings by the Variation of Information". In Bernhard SchΓΆlkopf; Manfred K. Warmuth (eds.). Learning Theory and Kernel Machines. 16th Annual Conference on Computational Learning Theory and 7th Kernel Workshop. Lecture Notes in Computer Science, vol. 2777. Springer. pp. 173β187. doi:10.1007/978-3-540-45167-9_14. ISBN 978-3-540-40720-1. S2CID 4341039.
Further reading
[edit]- Meila, M. (2007). "Comparing clusteringsβan information based distance". Journal of Multivariate Analysis. 98 (5): 873β895. doi:10.1016/j.jmva.2006.11.013.
- Kingsford, Carl (2009). "Information Theory Notes" (PDF). Retrieved 22 September 2009.
- Kraskov, Alexander; Harald StΓΆgbauer; Ralph G. Andrzejak; Peter Grassberger (2003). "Hierarchical Clustering Based on Mutual Information". arXiv:q-bio/0311039.
External links
[edit]- Partanalyzer includes a C++ implementation of VI and other metrics and indices for analyzing partitions and clusterings
- C++ implementation with MATLAB mex files
