One Response, Several Unordered Outcomes
A response need not be numerical or binary. A patient’s discharge destination might be home, another care facility, or a rehabilitation facility. These outcomes are different categories, but none is naturally “larger” or “smaller” than another. A probability model for such a response assigns a probability to each possible category.
The central requirement is simple but essential: each category probability must be nonnegative, and the probabilities across all possible categories must add to one. These conditions make the assignments a valid probability distribution for a single response.
The categories must be distinct, mutually exclusive, and exhaustive: exactly one of them occurs for the response being modeled. If a response could belong to more than one listed category at once, or if a possible outcome has been omitted, the categories do not form the stated support without further refinement. The order in which the categories are listed is only a way to index them. It does not imply a ranking.
For example, assigning the numbers 1, 2, and 3 to “home,” “rehabilitation,” and “other facility” can be convenient for data storage. It does not make the outcomes quantitative: subtracting the code for home from the code for rehabilitation has no inherent interpretation. The model’s probabilities attach to the categories, not to arithmetic on their labels.
Checking the Probability Constraints
A proposed list of category probabilities defines a valid categorical model exactly when it satisfies both constraints in the definition. Nonnegativity prevents an impossible negative probability. The sum-to-one condition ensures that the probability of getting one of the possible outcomes is one.
Proof. By definition, a probability mass function has nonnegative values, so \(f(c_k)=p_k\geq 0\) for every category. Its total mass on the support must be one. Since the support consists of the distinct values \(c_1,\ldots,c_K\),
This proves necessity. Conversely, if every \(p_k\) is nonnegative and their sum is one, then \(f\) is nonnegative everywhere, and its total mass is
Thus \(f\) satisfies the defining conditions for a probability mass function. \(\square\)
Worked Example: A Valid Three-Category Model
Suppose a single patient’s discharge destination \(X\) has three possible categories: home, rehabilitation, and another care facility. A proposed model assigns probabilities \(0.62\), \(0.28\), and \(0.10\), respectively. Check that the model is valid, then find the probability of discharge somewhere other than home.
Check nonnegativity. Each probability is at least zero: \(0.62\geq 0\), \(0.28\geq 0\), and \(0.10\geq 0\).
Check the total.
Both constraints hold, so these assignments define a valid categorical model. “Somewhere other than home” is the union of the rehabilitation and other-facility categories. Its probability is \(0.28+0.10=0.38\).
The probability of an event that combines categories is obtained by adding the probabilities of those categories. This follows from the fact that distinct categories cannot occur simultaneously.
Worked Checks: Validity and Interpretation
Worked Example: Finding an Invalid Probability Assignment
A survey classifies one respondent’s preferred mode of transportation as walking, cycling, public transit, or driving. A proposed model assigns probabilities \(0.20\), \(0.25\), \(0.40\), and \(0.25\), in that order. Is this a valid model?
Every individual value is nonnegative. However, their sum is
Because the categories are mutually exclusive and exhaustive, the probability that the response is one of them must be one. A total of \(1.10\) violates that requirement, so the proposed assignment is not a valid categorical model. One could divide each value by \(1.10\) to create a different probability assignment that sums to one, but that would change the proposed probabilities. Renormalizing is not evidence that the original assignment was valid.
Worked Example: Combining Several Categories
A laboratory records one specimen’s result as negative, inconclusive, or positive. The model assigns probabilities \(0.84\), \(0.06\), and \(0.10\), respectively. Find the probability that the result is not inconclusive, and verify the result in two ways.
First, the probabilities are nonnegative and \(0.84+0.06+0.10=1\), so they define a valid categorical model. “Not inconclusive” consists of the negative and positive categories. Adding their probabilities gives
Alternatively, “not inconclusive” is the complement of the inconclusive category. Therefore,
The two calculations agree, as they must.
Indicator Representation of a Categorical Response
A categorical response can also be represented by indicators that record which category occurred. Define \(Z_k=1\) if \(X=c_k\), and \(Z_k=0\) otherwise. For each single response, exactly one of \(Z_1,\ldots,Z_K\) equals one, and all the others equal zero. This is sometimes called a one-hot representation.
The indicators are useful because they express category probabilities as expectations. They also make clear why the categories cannot be treated as independent binary responses: if one indicator is one, all the others must be zero.
Worked Example: Indicator Probabilities and Covariances
Let \(X\) have three unordered categories \(c_1,c_2,c_3\), with probabilities \(0.50\), \(0.30\), and \(0.20\). Verify the constraints and find the expectation vector and covariance matrix of the one-hot indicators.
All probabilities are nonnegative, and \(0.50+0.30+0.20=1.00\), so this is a valid model. From \(E[Z_k]=p_k\), the expectation vector is
The diagonal variances are \(0.50(1-0.50)=0.25\), \(0.30(1-0.30)=0.21\), and \(0.20(1-0.20)=0.16\). The off-diagonal covariances are \(-0.50(0.30)=-0.15\), \(-0.50(0.20)=-0.10\), and \(-0.30(0.20)=-0.06\). Thus
The negative off-diagonal entries reflect mutual exclusivity: observing one category rules out the others for this response.
Common Pitfalls and Why the Constraints Matter
A categorical model is a probability distribution for one response, not a ranking of outcomes and not a collection of unrelated yes-or-no probabilities. Its categories must describe all possible outcomes exactly once. Once that is true, the probability assigned to each category determines the probability of any event formed by grouping categories.
- Using category codes as measurements. Codes such as 1, 2, and 3 are labels unless the problem gives them a meaningful numerical interpretation. The ordering of codes alone does not create an ordering of outcomes.
- Checking only that each value is between zero and one. Even if every proposed value is in that range, the assignments are invalid if they do not sum to one. For example, three probabilities of \(0.4\), \(0.4\), and \(0.4\) are individually within the range but total \(1.2\).
- Forgetting that categories are exclusive. If categories overlap, adding their probabilities can double-count outcomes. Define distinct outcomes first, or use the appropriate probability rule for overlapping events.
- Treating one-hot indicators as independent. Their values are constrained: exactly one is one. For distinct categories their covariance is \(-p_jp_k\), not generally zero.
For two categories, the categorical model reduces to a binary response model: if \(P(X=c_1)=p\), then the other category has probability \(1-p\). With more than two categories, the same logic extends by assigning a probability to every possible category while preserving nonnegativity and a total of one.
Check Your Understanding
Use the probability constraints and the event interpretation to answer the following.
- A response has four categories with probabilities \(0.15\), \(0.25\), \(0.35\), and \(0.25\). Is the assignment valid? Show both checks.
- For probabilities \(0.15\), \(0.25\), \(0.35\), and \(0.25\), what is the probability of the event consisting of the second and fourth categories?
- Why does assigning numerical codes to unordered categories not by itself make the response quantitative?
- For two distinct one-hot indicators \(Z_j\) and \(Z_k\), explain why their covariance is \(-p_jp_k\).
- A list of purported categories leaves out one possible response. Which requirement for a categorical model has failed, and why does that matter for the sum of the listed probabilities?