Uncertainty coefficient


In statistics, the uncertainty coefficient, also called proficiency, entropy coefficient or Theil's U, is a measure of nominal association. It was first introduced by Henri Theil and is based on the concept of information entropy.

Definition

Suppose we have samples of two discrete random variables, X and Y. By constructing the joint distribution,, from which we can calculate the conditional distributions, and, and calculating the various entropies, we can determine the degree of association between the two variables.
The entropy of a single distribution is given as:
while the conditional entropy is given as:
The uncertainty coefficient or proficiency is defined as:
and tells us: given Y, what fraction of the bits of X can we predict? In this case we can think of X as containing the total information, and of Y as allowing one to predict part of such information.
The above expression makes clear that the uncertainty coefficient is a normalised mutual information I. In particular, the uncertainty coefficient ranges in as I < H and both I and H are positive or null.
Note that the value of U is independent of the base of the log since all logarithms are proportional.
The uncertainty coefficient is useful for measuring the validity of a statistical classification algorithm and has the advantage over simpler accuracy measures such as precision and recall in that it is not affected by the relative fractions of the different classes, i.e., P
It also has the unique property that it won't penalize an algorithm for predicting the wrong classes, so long as it does so consistently. This is useful in evaluating clustering algorithms since cluster labels typically have no particular ordering.

Variations

The uncertainty coefficient is not symmetric with respect to the roles of X and Y. The roles can be reversed and a symmetrical measure thus defined as a weighted average between the two:
Although normally applied to discrete variables, the uncertainty coefficient can be extended to continuous variables using density estimation.