ArticleslgStudy

computer science

Category utility

Category utility is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Category utility rather than just read about it. In short: Category utility is a measure of "category goodness" defined in Gluck & Corter (1985) and Corter & Gluck (1992). It attempts to maximize both the probability that two objects in the same category have attribute values in common, and the probability that objects from different categories have different attribute values.

Key takeaways

  • Category utility belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Category utility to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Category utility from memory before moving on to harder problems.

Reference excerpt

Category utility is a measure of "category goodness" defined in Gluck & Corter (1985) and Corter & Gluck (1992). It attempts to maximize both the probability that two objects in the same category have attribute values in common, and the probability that objects from different categories have different attribute values. It was intended to supersede more limited measures of category goodness such as "cue validity" and "collocation index". It provides a normative information-theoretic measure of the predictive advantage gained by the observer who possesses knowledge of the given category structure (i.e., the class labels of instances) over the observer who does not possess knowledge of the category structure. In this sense the motivation for the category utility measure is similar to the information gain metric used in decision tree learning. In certain presentations, it is also formally equivalent to the mutual information, as discussed below. A review of category utility in its probabilistic incarnation, with applications to machine learning, is provided in Witten and Frank's 2005 book.

Probability-theoretic definition of category utility The probability-theoretic definition of category utility given in Fisher (1987) and Witten and Frank (2005) is as follows:

CU(C,F)=1p∑cj∈Cp(cj)[∑fi∈F∑k=1mp(fik|cj)2−∑fi∈F∑k=1mp(fik)2] where F={fi}, i=1…n is a size-n set of m -ary features, and C={cj} j=1…p is a set of p categories. The term p(fik) designates the marginal probability that feature fi takes on value k , and the term p(fik|cj) designates the category-conditional probability that feature fi takes on value k given that the object in question belongs to category cj . The motivation and development of this expression for category utility, and the role of the multiplicand 1p as a crude overfitting control, is given in the above sources. Loosely, the term p(cj)∑fi∈F∑k=1mp(fik|cj)2 is the expected number of attribute values that can be correctly guessed by an observer using a probability-matching strategy together with knowledge of the category labels, while p(cj)∑fi∈F∑k=1mp(fik)2 is the expected number of attribute values that can be correctly guessed by an observer the same strategy but without any knowledge of the category labels. Their difference therefore reflects the relative advantage accruing to the observer by having knowledge of the category structure.

Information-theoretic definition of category utility The information-theoretic definition of category utility for a set of entities with size-n binary feature set F={fi}, i=1…n, and a binary category C={c,c¯} is given in Gluck & Corter (1985) as follows:

CU(C,F)=[p(c)∑i=1np(fi|c)log⁡p(fi|c)+p(c¯)∑i=1np(fi|c¯)log⁡p(fi|c¯)]−∑i=1np(fi)log⁡p(fi) where p(c) is the prior probability of an entity belonging to the positive category c (in the absence of any feature information), p(fi|c) is the conditional probability of an entity having feature fi given that the entity belongs to category c , p(fi|c¯) is likewise the conditional probability of an entity having feature fi given that the entity belongs to category c¯, and p(fi) is the prior probability of an entity possessing feature fi (in the absence of any category information). The intuition behind the above expression is as follows: The term p(c)∑i=1np(fi|c)log⁡p(fi|c) represents the cost (in bits) of optimally encoding (or transmitting) feature information when it is known that the objects to be described belong to category c . Similarly, the term p(c¯)∑i=1np(fi|c¯)log⁡p(fi|c¯) represents the cost (in bits) of optimally encoding (or transmitting) feature information when it is known that the objects to be described belong to category c¯. The sum of these two terms in the brackets is therefore the weighted average of these two costs. The final term, ∑i=1np(fi)log⁡p(fi), represents the cost (in bits) of optimally encoding (or transmitting) feature information when no category information is available. The value of the category utility will, in the above formulation, be non-negative.

Category utility and mutual information Gluck and Corter (1985) and Corter and Gluck (1992) mention that the category utility is equivalent to the mutual information. Here is a simple demonstration of the nature of this equivalence. Assume a set of entities each having the same n features, i.e., feature set F={fi}, i=1…n, with each feature variable having cardinality m. That is, each feature has the capacity to adopt any of m distinct values (which need not be ordered; all variables can be nominal); for the special case m=2 these features would be considered binary, but more generally, for any m, the features are simply m-ary. For the purposes of this demonstration, without loss of generality, feature set F can be replaced with a single aggregate variable Fa that has cardinality mn, and adopts a unique value vi, i=1…mn corresponding to each feature combination in the Cartesian product ⊗F. (Ordinality does not matter, because the mutual information is not sensitive to ordinality.) In what follows, a term such as p(Fa=vi) or simply p(vi) refers to the probability with which Fa adopts the particular value vi. (Using the aggregate feature variable Fa replaces multiple summations, and simplifies the presentation to follow.) For this demonstration, also assume a single category variable C, which has cardinality p. This is equivalent to a classification system in which there are p non-intersecting categories. In the special case of p=2 there are the two-category case discussed above. From the definition of mutual information for discrete variables, the mutual information I(Fa;C) between the aggregate feature variable Fa and the category variable C is given by:

I(Fa;C)=∑vi∈Fa∑cj∈Cp(vi,cj)log⁡p(vi,cj)p(vi)p(cj) where p(vi) is the prior probability of feature variable Fa adopting value vi, p(cj) is the marginal probability of category variable C adopting value cj, and p(vi,cj) is the joint probability of variables Fa and C simultaneously adopting those respective values. In terms of the conditional probabilities this can be re-written (or defined) as

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Category utility

Start with the simplest possible case. Write down what Category utility claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Category utility before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Category utility ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Category utility

In research
Category utility appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Category utility in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Category utility is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cognitive science, Machine learning, so understanding it makes those chapters shorter.
In everyday life
Look for Category utility outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Category utility” →

How to study Category utility in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Category utility means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Category utility out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Category utility in simple terms?

Category utility is a measure of "category goodness" defined in Gluck & Corter (1985) and Corter & Gluck (1992). It attempts to maximize both the probability that two objects in the same category have attribute values in common, and the probability that objects from different categories have differ…

Why does Category utility matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Category utility?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Category utility.

Tags

  • Cognitive science
  • Machine learning

Keep exploring