---
title: "Choosing among discrete categories"
author:
  - name: "Fan Wang"
    affiliation: "Department of Economics, University of Houston"
    url: "https://fanwangecon.github.io/"
date: "2026-11-30"
---

**Part of [Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics](https://fanwangecon.github.io/Stam4Econ/).**  
[Main Stam4Econ site](https://fanwangecon.github.io/Stam4Econ/) | [View this section in the book](https://fanwangecon.github.io/Stam4Econ/optimization_discrete/overview.html#choosing-among-discrete-categories) | [Author: Fan Wang](https://fanwangecon.github.io/) | [DOI: 10.5281/zenodo.24696926](https://doi.org/10.5281/zenodo.24696926)  
Date: 2026-11-30 | [HTML](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/optimization_discrete/discrete_optimization_categories.html) | [PDF](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/optimization_discrete/discrete_optimization_categories.pdf) | [QMD](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/optimization_discrete/discrete_optimization_categories.qmd)

## Choosing among discrete categories

### Multinomial logit

Multinomial logit is a model used to predict the probabilities of different outcomes in a situation where there are multiple discrete choices. It is particularly useful when the choices are mutually exclusive and exhaustive.

Suppose we have 3 alternatives:$A$, $B$, and $C$. The utility for each alternative can be expressed as:

$$
U_A = \beta_{A0} + \beta_{A1} X_1 + \beta_{A2} X_2 + \ldots + \beta_{An} X_n + \epsilon_A
$$

$$
U_B = \beta_{B0} + \beta_{B1} X_1 + \beta_{B2} X_2 + \ldots + \beta_{Bn} X_n + \epsilon_B
$$

$$
U_C = \beta_{C0} + \beta_{C1} X_1 + \beta_{C2} X_2 + \ldots + \beta_{Cn} X_n + \epsilon_C
$$

where $U_A$, $U_B$, and $U_C$ are utilities for alternatives $A$, $B$, and $C$; $X_1,\ldots,X_n$ are observed characteristics; and the $\beta$ terms are parameters. The $\epsilon_j$ terms are unobserved utility components.

Write the systematic (observed) part of utility as $V_j = \beta_{j0} + \beta_{j1} X_1 + \ldots + \beta_{jn} X_n$, so that $U_j = V_j + \epsilon_j$ for $j \in \{A,B,C\}$.

We can not pin down utility itself, but can look at the difference in utilities, comparing the utility of A versus B and A versus C, we have, differencing their respective utility functions:

$$
U_A - U_B = (V_A - V_B) + (\epsilon_A - \epsilon_B)
$$

$$
U_A - U_C = (V_A - V_C) + (\epsilon_A - \epsilon_C)
$$

Assume that the error terms are independent and identically distributed Type I extreme-value (Gumbel) variables, with their scale normalized to one. Then the closed-form choice probabilities depend on the systematic utilities $V_j$ only:

$$
P(A \text{ chosen}) = \frac{e^{V_A}}{e^{V_A} + e^{V_B} + e^{V_C}}
$$

$$
P(A \text{ chosen}) = \frac{e^{\beta_{A0} + \beta_{A1} X_1 + \beta_{A2} X_2 + \ldots + \beta_{An} X_n}}{\sum_{j \in \{A, B, C\}} e^{\beta_{j0} + \beta_{j1} X_1 + \beta_{j2} X_2 + \ldots + \beta_{jn} X_n}}
$$

Equivalently, using differences in systematic utilities:

$$
P(A \text{ chosen}) = \frac{e^{V_A - V_B}}{1 + e^{V_A - V_B} + e^{V_C - V_B}}
$$

The differences in systematic utility are linear in the coefficient differences:

$$
V_j-V_k=(\beta_{j0}-\beta_{k0})+\sum_{m=1}^{n}(\beta_{jm}-\beta_{km})X_m.
$$

Only utility differences are identified; one alternative's coefficients are commonly normalized to zero. Given the model-implied choice probabilities, the log ratio for categories $A$ and $B$ is linear in the coefficient differences:

$$
\log\left(\frac{P(A \text{ chosen})}{P(B \text{ chosen})}\right) = (\beta_{A0} - \beta_{B0}) + (\beta_{A1} - \beta_{B1}) X_1 + (\beta_{A2} - \beta_{B2}) X_2 + \ldots + (\beta_{An} - \beta_{Bn}) X_n
$$

The left-hand-side is the log odds ratio. Although this equation is linear in the $\beta$ differences, individual discrete choices are not estimated by ordinary least squares on 0/1 outcomes. Instead, estimate the $\beta$ parameters by maximum likelihood for the multinomial logit model (a discrete-choice MLE routine).
