Category utility
Category utility is a score for how well a set of categories sorts a group of objects. It is high when members of the same category share attribute values and when those values differ from one category to the next. It measures how much knowing an object's category helps you guess the object's other properties.[1][2]
Mark Gluck and James Corter introduced the measure in 1985 to explain why people prefer certain levels of category, such as "bird" rather than "animal" or "robin".[1] In 1987 Douglas Fisher made it the scoring rule of COBWEB, a machine learning program that sorts unlabeled data into a tree of categories.[2] The measure belongs to both cognitive science and machine learning.
Objects, attributes, and categories
Category utility works on objects described by attributes. Each attribute, such as eye color, has a fixed set of possible values, such as green, brown, and blue, and every object has exactly one of them.[1] These are categorical (named rather than numeric) attributes.
A category is described by how often each value turns up among its members. For example, a category of faces might have 40% green eyes, 50% brown eyes, and 10% blue eyes.[1] The measure is built from three kinds of probability:
- , the share of all objects that belong to category .
- , the share of all objects whose attribute has value .
- , the same share counted only among members of .
A set of categories that do not overlap and together hold every object is called a partition (see partition of a set).[2] Category utility can score a single category or a whole partition.
The guessing game
Category utility comes from a guessing game. Someone tries to guess an object's attribute values, first knowing nothing about it and then knowing its category.[1] The score is how many more values they can expect to guess right once they know the category.
The guesser is assumed to use probability matching. That means guessing each value as often as it occurs, so a value seen 70% of the time is guessed 70% of the time.[2] Corter and Gluck point to evidence that people tend to guess this way in probability-learning tasks.[3]
Under probability matching, the guess "value " is made with probability and is right with probability . So the chance of a correct guess on that value is .[3] Adding over all values of all attributes gives the expected number of attribute values guessed correctly.[2]
For example, suppose half of all objects are red and half are blue. The expected number of correct color guesses is . If you are told the object belongs to a category whose members are all red, it rises to .
Category utility of one category
The utility of one category is its gain in expected correct guesses, weighted by how often the category occurs.[1][3]
Here runs over the attributes and over the values of each attribute. The first sum inside the brackets is the expected number of correct guesses when the category is known. The second is the expected number when it is not.
Corter and Gluck give an example with newspapers, in which each feature is either present or absent and only its presence is scored.[3] All tabloids use black ink, and 90% have pictures on the cover. Among all newspapers, 100% use black ink and 60% have cover pictures, and 33% of newspapers are tabloids.
Black ink adds nothing, because knowing a paper is a tabloid does not change the odds of black ink.
The measure depends on three things: how common the category is, how often each feature occurs inside it, and how often each feature occurs in the whole population.[3] Two cases show why all three matter. If most members of a fraternity like rock music but so do most college students, that fact does not make the fraternity a useful category, and if the fraternity has only one or two members, it is not useful either, because is tiny.[3]
Scoring a whole partition
Fisher extended the measure to a partition of categories . He summed the weighted gains of all categories and divided by .[2][4]
The symbols are the same as before, and is the number of categories in the partition. If an attribute's values are spread the same way inside every category as in the whole set, its terms cancel to zero. Such an attribute does not affect the score at all.[2]
Why divide by the number of categories
Fisher wrote that averaging over categories lets partitions of different sizes be compared.[2] Without the division, putting each object in its own category would always reach the highest possible score, so there would be no reason to form larger categories.[5]
In a one-object category every attribute's value is known for certain, so the first sum reaches its largest possible value. The division by is what gives a reason to form categories with more than one member.[5] Witten and colleagues call it "a little hard to justify" and describe it as a rough guard against Overfitting, which here means splitting the data into categories so fine that they capture chance details instead of real groups.[5]
Worked example
Take four objects with two attributes, color and shape: two red circles and two blue squares. Each of the four values (red, blue, circle, square) occurs half the time, so the expected number of correct guesses with no category is .
For the partition that puts the circles in one category and the squares in another:
- Inside the red-circle category, red and circle each have probability 1, so expected correct guesses are . The blue squares give the same.
- Each category's gain is .
- Each category holds half the objects, so the weighted sum is .
- Dividing by gives a category utility of 0.5.
The same steps give the scores of other partitions.
| Partition | Weighted sum of gains | Category utility | |
|---|---|---|---|
| All four in one category | 0 | 1 | 0 |
| Circles apart from squares | 1 | 2 | 0.5 |
| Each category holds one circle and one square | 0 | 2 | 0 |
| Each object alone | 1 | 4 | 0.25 |
The natural split scores highest. Without dividing by , it would tie with putting each object alone.
Similarity within and difference between categories
Fisher showed that category utility rewards two classic goals of clustering: members of a category should be alike, and different categories should be unlike.[2] He described these goals with two probabilities:
- Predictability, : how often category members have the value. High predictability means the value is shared within the category.
- Predictiveness, : how often objects with the value belong to the category. High predictiveness means few objects in other categories share it.
In psychology the first is called category validity and the second cue validity.[1][3] Fisher combined them, weighting each value by how common it is.[2]
By Bayes' rule, . Substituting turns the sum into .[2] So the predictability-predictiveness trade-off equals the first term of category utility, the expected correct guesses when the category is known.
Basic-level categories
Category utility was built to explain basic-level categories. In a hierarchy such as animal, bird, robin, people treat one middle level (here "bird") as the most natural, a finding from Eleanor Rosch and colleagues in 1976.[1] Children learn basic-level names earlier, and people name pictured objects at this level faster than at more general or more specific levels.[1]
The formula suggests why a middle level can win. A very broad category covers nearly everything, so is close to and the gain in brackets is small. A very narrow category predicts its members well, but its weight is small.
Early tests
Gluck and Corter tested the measure against data from Hoffmann and Ziessler (1983). In that study, people learned three artificial hierarchies built so that the fastest level was the top level in one, the middle level in another, and the lowest level in the third.[1]
| Measure | Result in Gluck and Corter's analysis |
|---|---|
| Cue validity | Always chose the highest level |
| Collocation (cue validity times category validity) | Always chose the highest level |
| Category validity | Did not tell the levels apart |
| Category utility of the partition | Predicted the order of reaction times in all three hierarchies |
In an analysis of a similar experiment by Murphy and Smith (1982), category utility was again the only measure that predicted the basic level.[1] In a 1992 paper, Corter and Gluck reported that the measure also predicted the basic level in hierarchies of natural categories.[3]
Dependence on context
Gluck and Corter stressed that the score depends on context. It is computed against a chosen population, so the same category can be more or less useful in different settings.[1] They saw this as fitting evidence that the usefulness of concepts depends heavily on context.[1]
Use in COBWEB
COBWEB is a conceptual clustering program that builds a tree of categories one object at a time. Each node stores counts from which it computes and .[2] As a new object moves down the tree, COBWEB uses category utility at each level to choose among four operators:[2]
- Place the object in the existing category that gives the best partition.
- Create a new category holding only the object.
- Merge the two best categories into one.
- Split a category, replacing it with its children.
Because new categories can be created, the number of categories is not fixed in advance. It follows from the regularity of the data.[2]
The search is hill climbing (always taking the best next step) and keeps only its current tree, with no record of earlier trees to go back to, so it can get stuck in a partition that is only locally best.[2][4] Merging and splitting reduce, but do not remove, its sensitivity to the order in which objects arrive.[2]
Fisher reported category utility scores for the top level of trees built from real data. These were 1.20 for U.S. Senate voting records, 1.50 for soybean disease cases, and 0.50 for thyroid patient cases.[2]
Fisher noted that COBWEB uses an evaluation function consistent with human preferences. He added that it should be seen as a general clustering method, not a model of human thinking.[2]
Numeric attributes
The original measure handles only named values. In 1989 Gennari, Langley, and Fisher described CLASSIT, a variant of COBWEB that stores a normal distribution for each numeric attribute, given by its mean and standard deviation.[6]
For a numeric attribute, the sum of squared probabilities is replaced by the integral of the squared density. For a normal distribution with standard deviation , this integral is .[5]
Here is the standard deviation of attribute inside category , and is its standard deviation over all the data being split.[5][4] A category whose values cluster tightly has a small and so earns a large reward.
A category with only one object has a standard deviation of zero, which makes the formula infinite. The fix is a minimum standard deviation called acuity, which Iba and Langley liken to the "just noticeable difference" in psychology.[5][4]
Named and numeric attributes can be mixed by using the matching term for each attribute.[4]
Links to information theory and statistics
Information version
Gluck and Corter also defined category utility with information theory. They measured the uncertainty of an attribute as its entropy, .[1] For a split into members of and non-members, the utility is the expected drop in uncertainty:
They noted that this equals the information transmitted between category membership and the attribute, which is their mutual information.[1] They found the information version and the guessing version close in form and in how they rank categories. In their tests the main differences were a few ties broken differently.[1]
Link to square-error clustering
Boris Mirkin showed in 2001 that category utility is the sum, over all attributes, of a classic statistical measure of association, divided by the number of categories.[7] For each attribute, the measure is
so that .[7] Goodman and Kruskal introduced in 1954, following a suggestion by W. A. Wallis, as the drop in the share of wrong predictions.[7] It can also be computed from the contingency table of categories against attribute values.[7]
Mirkin then coded each attribute value as a 0 or 1 column and subtracted the column mean. With this coding, the explained variance (the part of the data's total spread accounted for by the differences between category means) is proportional to .[7]
So when the number of categories is fixed, maximizing category utility is the same as minimizing the square error used by k-means and Ward's method. The square error is the sum of squared distances from each object to the mean of its category.[7] When the number of categories is free, as in COBWEB, the two criteria differ.[7]
Mirkin also proposed a version for mixed data that uses the correlation ratio for numeric features.[7]
Limitations
Several parts of the measure rest on choices that are open to question.
- The division by is a rough rule of thumb against overfitting rather than a result of the guessing-game argument.[5]
- The score assumes probability matching. Fisher considered the other main strategy, always guessing the most common value, and judged it less suited to ranking partitions because it ignores all but one value of each attribute.[2]
- For numeric attributes the measure assumes normal distributions and needs an acuity setting. Witten and colleagues report that getting a clean clustering of the iris data took a fair amount of trial and error with acuity.[5]
- Its equivalence to square-error clustering holds only when the number of categories is fixed.[7]
References
- Information, Uncertainty, and the Utility of Categories, M. A. Gluck and J. E. Corter, Proceedings of the Seventh Annual Conference of the Cognitive Science Society, 1985.
- Knowledge Acquisition Via Incremental Conceptual Clustering, D. H. Fisher, Machine Learning 2, Kluwer, 1987.
- Explaining Basic Categories: Feature Predictability and Information, J. E. Corter and M. A. Gluck, Psychological Bulletin 111(2), 1992.
- Unsupervised Learning of Probabilistic Concept Hierarchies, W. Iba and P. Langley, Machine Learning and Its Applications (Springer), 2001.
- Category Utility (excerpts from Witten, Frank, Hall and Pal, Data Mining), ScienceDirect Topics, Elsevier, 2017.
- Models of Incremental Concept Formation, J. H. Gennari, P. Langley and D. Fisher, Artificial Intelligence 40, 1989.
- Reinterpreting the Category Utility Function, B. Mirkin, Machine Learning, Kluwer, 2001.
