Tutorials › Generalized Linear Models › Category Probabilities by Differencing Cumulative Probabilities

Cumulative Link Models · Tutorial 532 of 981

Category Probabilities by Differencing Cumulative Probabilities

Learn to recover each category’s probability from adjacent cumulative probabilities and apply the rule in three-category cumulative-link examples.

Intermediate 9 min read

What You'll Learn

  • Define cumulative and category probabilities for an ordered response.
  • Derive the first, middle, and last category probabilities by differencing.
  • Reconstruct cumulative probabilities by summing category probabilities.
  • Translate cumulative-logit probabilities into three-category probabilities.
  • Check endpoint calculations, arithmetic, and the conditions for valid probabilities.

From Cumulative Probabilities to Category Probabilities

In an ordinal response, the categories have a meaningful order, but a cumulative probability does not give the probability of one category. It gives the probability of being at or below a cutpoint. To obtain the probability of an individual category, take the difference between the cumulative probability at its upper boundary and the cumulative probability immediately before it.

This subtraction is especially important in a cumulative link model: the model specifies cumulative probabilities, while interpretation often requires the probability of each response category. The first and last categories need boundary conventions, because there is no category below the first or above the last.

Definition: Let \(Y\) take one of the ordered values \(1,2,\ldots,K\), where \(K\geq 2\). For a fixed covariate value \(x\), define the cumulative probabilities \(q_j(x)=P(Y\leq j\mid x)\), for \(j=1,\ldots,K-1\). Set \(q_0(x)=0\) and \(q_K(x)=1\). The category probability for category \(j\) is \(p_j(x)=P(Y=j\mid x)\). Then \(p_j(x)=q_j(x)-q_{j-1}(x)\), for \(j=1,\ldots,K\).

The boundary definitions make the formula apply uniformly to all categories. In particular, the first category has probability \(p_1(x)=q_1(x)\), since \(q_0(x)=0\). The last has probability \(p_K(x)=1-q_{K-1}(x)\), since \(q_K(x)=1\). For a middle category \(j\), its probability is \(q_j(x)-q_{j-1}(x)\).

Why Adjacent Differences Give Category Probabilities

The derivation follows directly from the events involved. The event \(\{Y\leq j-1\}\) is contained in \(\{Y\leq j\}\). The part of \(\{Y\leq j\}\) that is not in \(\{Y\leq j-1\}\) is exactly \(\{Y=j\}\). Thus, subtracting the probability of the smaller event from that of the larger one leaves the probability of category \(j\).

Result: For every \(j=1,\ldots,K\), \(P(Y=j\mid x)=P(Y\leq j\mid x)-P(Y\leq j-1\mid x)\), using \(P(Y\leq 0\mid x)=0\) and \(P(Y\leq K\mid x)=1\).

Proof. For \(1\leq j\leq K\), the events \(\{Y=j\}\) and \(\{Y\leq j-1\}\) are disjoint, and their union is \(\{Y\leq j\}\). Conditional on \(x\), finite additivity of probability therefore gives

$$ P(Y\leq j\mid x) = P(Y=j\mid x)+P(Y\leq j-1\mid x). $$

Rearranging gives the stated difference. For \(j=1\), the event \(\{Y\leq 0\}\) is empty, so its probability is \(q_0(x)=0\). For \(j=K\), \(\{Y\leq K\}\) contains every possible value of \(Y\), so its probability is \(q_K(x)=1\). These cases give the first- and last-category formulas as well. \(\square\)

The reverse calculation is also useful: adding the category probabilities up to category \(j\) recovers the cumulative probability at \(j\). This gives a direct check that differencing and cumulative summation are inverse operations.

Result: For \(j=1,\ldots,K\), \(\sum_{r=1}^{j}p_r(x)=q_j(x)\). In particular, \(\sum_{r=1}^{K}p_r(x)=1\).

Proof. Substitute \(p_r(x)=q_r(x)-q_{r-1}(x)\) into the sum:

$$ \sum_{r=1}^{j}p_r(x) = \sum_{r=1}^{j}\{q_r(x)-q_{r-1}(x)\} = \{q_1(x)-q_0(x)\}+\cdots+\{q_j(x)-q_{j-1}(x)\} = q_j(x)-q_0(x) = q_j(x). $$

Every intermediate cumulative probability appears once with a positive sign and once with a negative sign, so those terms cancel. Taking \(j=K\) and using \(q_K(x)=1\) proves that the category probabilities sum to one. \(\square\)

Worked Three-Category Calculations

With three ordered categories, the boundary and middle-category calculations can be written out explicitly:

$$ p_1(x)=q_1(x),\qquad p_2(x)=q_2(x)-q_1(x),\qquad p_3(x)=1-q_2(x). $$

The first cumulative probability is already the probability of category 1. The second cumulative probability combines categories 1 and 2, so subtracting the first leaves category 2. The probability left after category 2 is the probability of category 3.

Worked Example: Three Categories From Two Cumulative Probabilities

At a fixed covariate value, suppose \(P(Y\leq 1\mid x)=0.25\) and \(P(Y\leq 2\mid x)=0.70\), with categories 1, 2, and 3 ordered from lowest to highest. Find all three category probabilities.

For the first category, \(p_1(x)=q_1(x)=0.25\).

For the middle category, subtract the cumulative probability through category 1 from the cumulative probability through category 2: \(p_2(x)=q_2(x)-q_1(x)=0.70-0.25=0.45\).

For the last category, use the complement of the cumulative probability through category 2: \(p_3(x)=1-q_2(x)=1-0.70=0.30\).

The result is \((p_1,p_2,p_3)=(0.25,0.45,0.30)\). The probabilities sum to \(0.25+0.45+0.30=1.00\), and their cumulative sums recover \(0.25\) and \(0.25+0.45=0.70\).

Differencing a Cumulative-Logit Model

In a cumulative-logit model with shared slopes, a common parameterization is \(\operatorname{logit}\{q_j(x)\}=\alpha_j-x^\mathsf{T}\beta\) for \(j=1,\ldots,K-1\). Here \(\alpha_j\) is the cutpoint for cumulative category \(j\), and the same slope vector \(\beta\) appears at every cutpoint. The corresponding cumulative probability is \(q_j(x)=\operatorname{expit}(\alpha_j-x^\mathsf{T}\beta)\), where \(\operatorname{expit}(u)=1/(1+\exp(-u))\).

The category probabilities follow by differencing these cumulative probabilities—not by applying the inverse-logit separately and treating each result as a category probability. For three categories, the model gives \(p_1=q_1\), \(p_2=q_2-q_1\), and \(p_3=1-q_2\). The shared slope specifies how the cumulative logits depend on \(x\); the subtraction converts the resulting cumulative probabilities into category probabilities.

Worked Example: A Three-Category Cumulative-Logit Model

Consider the cumulative-logit model \(\operatorname{logit}\{q_j(x)\}=\alpha_j-\beta x\), with \(\beta=\log 2\), \(\alpha_1=-\log 4\), and \(\alpha_2=\log(3/2)\). Find the category probabilities at \(x=1\).

First calculate the two cumulative logits. At the first cutpoint, \(\alpha_1-\beta x=-\log 4-\log 2=-\log 8\). Its odds are \(1/8\), so \(q_1(1)=(1/8)/(1+1/8)=1/9\).

At the second cutpoint, \(\alpha_2-\beta x=\log(3/2)-\log 2=\log(3/4)\). Its odds are \(3/4\), so \(q_2(1)=(3/4)/(1+3/4)=3/7\).

Now difference the cumulative probabilities. The first-category probability is \(p_1(1)=q_1(1)=1/9=7/63\). The middle-category probability is \(p_2(1)=q_2(1)-q_1(1)=3/7-1/9=27/63-7/63=20/63\). The last-category probability is \(p_3(1)=1-q_2(1)=1-3/7=4/7=36/63\).

Thus \((p_1(1),p_2(1),p_3(1))=(7/63,20/63,36/63)\). The total is \((7+20+36)/63=1\), and the cumulative probabilities are \(7/63=1/9\) and \((7+20)/63=27/63=3/7\), as required.

Worked Example: Four Categories and Both Endpoints

Suppose a four-category response has cumulative probabilities \(q_1=0.10\), \(q_2=0.35\), and \(q_3=0.80\) at a particular covariate value. Calculate the category probabilities.

The first probability is \(p_1=q_1=0.10\). The second is \(p_2=q_2-q_1=0.35-0.10=0.25\). The third is \(p_3=q_3-q_2=0.80-0.35=0.45\). The last is \(p_4=1-q_3=1-0.80=0.20\).

The category probabilities are \((0.10,0.25,0.45,0.20)\), which sum to \(1.00\). Their successive cumulative sums are \(0.10\), \(0.10+0.25=0.35\), and \(0.10+0.25+0.45=0.80\), recovering the supplied cumulative probabilities.

Checks and a Common Mistake

Differencing is simple arithmetic, but it is easy to confuse what the cumulative model supplies with what the category probabilities represent. A cumulative probability includes all categories up to a cutpoint; a category probability isolates one outcome. The subtraction must therefore use adjacent cutpoints, while the first and last categories use the boundary values zero and one.

  • First category: use \(q_1\), not \(q_1-q_0\) with an unspecified lower boundary; by definition \(q_0=0\).
  • Middle category: subtract the cumulative probability at the previous cutpoint, \(q_{j-1}\), from \(q_j\).
  • Last category: subtract \(q_{K-1}\) from one, not from zero.
  • Check: category probabilities should add to one, and their successive sums should reproduce the cumulative probabilities.

A common mistake is to read \(q_2=0.70\) in a three-category example as the probability of category 2. That is incorrect: \(q_2=P(Y\leq2\mid x)\) includes both categories 1 and 2. The correction is \(p_2=q_2-q_1\). Similarly, in a cumulative-logit model, the inverse-logit of a cutpoint gives a cumulative probability; it gives the category probability directly only for the first category.

For differences to represent valid category probabilities, the supplied cumulative probabilities must form a nondecreasing sequence from \(q_0=0\) to \(q_K=1\). Then each adjacent difference is nonnegative, and the telescoping calculation shows the differences sum to one. The central practical rule is therefore: identify the cumulative probabilities at the two boundaries of the category, subtract the lower cumulative probability from the upper one, and use zero or one at the endpoints.

Check Your Understanding

Use the definitions and differencing rule to answer the following.

  1. For a three-category response, suppose \(q_1=0.18\) and \(q_2=0.62\). Find the three category probabilities and verify that they sum to one.
  2. For \(K=5\), write the formula for the probability of category 4 in terms of cumulative probabilities.
  3. Explain why the cumulative probability \(q_2\) is not, in general, the probability of category 2.
  4. If \(q_1=0.20\), \(q_2=0.50\), and \(q_3=0.85\) for a four-category response, calculate \(p_1,p_2,p_3,p_4\).
  5. Describe how to check that a set of category probabilities correctly reproduces a supplied set of cumulative probabilities.
Clinical Biostats