Multinomial Logistic Regression

Econometrics
Introduced by
McFadden
Year
1974
Type
Multinomial logistic regression

What does it do?

Multinomial logistic regression is a maximum-likelihood model for a nominal (unordered) outcome with more than two categories.

Following McFadden's 1974 work on qualitative choice, it estimates a coefficient vector for each category except a fixed reference category, whose coefficients are set to zero. Each category's probability is a softmax of linear predictors, so the probabilities across categories sum to one.

The intuition behind the method

Imagine predicting which of several unranked options a person picks, such as bus, car, or bicycle. The model compares every option against one chosen reference option and estimates how each predictor shifts the odds toward a category relative to that baseline. Plugging in a person's predictor values gives a probability for each category, and those probabilities always sum to one.

History

The discrete-choice framework from which multinomial logit derives is associated with Daniel McFadden's 1974 chapter on conditional logit analysis of qualitative choice behaviour. That chapter concerns the conditional logit form, in which attributes of the alternatives drive choice. The multinomial logit with individual characteristics, the form described on this page, is closely related to it, and applied work frequently combines the two forms.

When to use it

Use multinomial logit when the dependent variable is nominal with three or more unordered categories and the aim is to model or predict category membership from one or more predictors. It assumes the categories are genuinely unordered and that the independence of irrelevant alternatives (IIA) property is a reasonable approximation for the choice set. There is no fixed minimum sample size. What matters is the number of observations in each category relative to the number of predictors, since estimates become unstable when some categories are sparse. If the categories have a natural order, such as a rating scale, an ordered logit is usually more appropriate. If the choice set is structured so that IIA is implausible, a model with a less restrictive substitution pattern should be considered.

Limitations and considerations

  • The IIA property follows directly from the softmax form: the ratio of the probabilities of any two categories depends only on their two linear scores, so adding or removing a category leaves that ratio unchanged. This is implausible when some categories are close substitutes. A common diagnostic is the Hausman–McFadden test, which compares estimates from the full set of alternatives with estimates after dropping one alternative. A significant difference casts doubt on IIA, whereas a non-significant result does not prove that IIA holds. Where IIA is rejected or implausible, nested logit, multinomial probit or mixed logit models relax the restriction.
  • Estimates for categories with few observations are unstable, because each category contributes its own coefficient set and the likelihood carries little information about rare outcomes.
  • Because the categories are treated as unordered, any natural ordering in the outcome is ignored, which makes the model less efficient than an ordinal model for ordered outcomes.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Handles a nominal outcome with more than two categories in a single maximum-likelihood model, rather than fitting separate binary comparisons.
  • Gives a coefficient set for each non-reference category, so each predictor's effect is read as a shift in the log of the probability ratio against the reference category, and exponentiating it gives a relative-risk ratio.
  • The softmax form guarantees that the predicted probabilities are non-negative and sum to one across all categories for every observation.

Applications

  • Modelling transport mode choice among several unordered alternatives such as car, bus, or bicycle.
  • Predicting which of several product or brand categories a consumer selects.
  • Classifying observations into one of several nominal outcome groups in health, social, and economic studies.

How it works

How it works

1

For an outcome with K categories, the probability of each category k is a softmax of a linear score x·βₖ, normalised across all categories so the probabilities sum to one. One category is fixed as the reference with its coefficients set to zero, so each βₖ describes the log of the probability ratio of category k against that reference.

Formula
\Pr(y=k\mid x) = \dfrac{\exp(x^{\top}\beta_k)}{\sum_{j=1}^{K}\exp(x^{\top}\beta_j)},\quad \beta_{\text{ref}}=0
2

The coefficient sets β are estimated by maximum likelihood: the values that make the observed category choices most probable are found by maximising the joint log-likelihood across all observations and categories. Exponentiating a coefficient gives the relative-risk ratio for that category against the reference: the multiplicative change in the probability ratio P(Y=k)/P(Y=ref) for a one-unit increase in the predictor, holding the other predictors constant.

Formula
\hat{\beta} = \arg\max_{\beta}\sum_{i=1}^{n}\sum_{k=1}^{K}\mathbb{1}\{y_i=k\}\,\log \Pr(y_i=k\mid x_i)

Common pitfalls

  • Applying it to an ordered outcome, such as a Likert scale, where an ordered logit would use the ordering and usually give a more parsimonious fit.
  • Accepting the IIA assumption without checking whether some categories are close substitutes, which can distort the comparisons between categories.
  • Including many predictors when some categories are sparse, which can produce unstable coefficients and large standard errors.
  • Reading raw coefficients as changes in the probability of the outcome. They are shifts in the log of the probability ratio against the reference category, and the size of a probability change depends on the values of all predictors.

Frequently asked questions

How is multinomial logit different from ordinary logistic regression?

Ordinary logistic regression handles a binary outcome with two categories, while multinomial logistic regression extends the same idea to a nominal outcome with three or more unordered categories by estimating a separate coefficient set for each non-reference category.

What is the independence of irrelevant alternatives (IIA) assumption?

IIA states that the relative odds between any two categories do not depend on the other available categories. It can fail when some categories are close substitutes, in which case the comparisons can be biased and an alternative model may be needed.

What is the reference category and how do I read the coefficients?

One category is fixed as the reference and its coefficients are set to zero. Each remaining coefficient describes the shift in the log of the probability ratio against that reference. Exponentiating it gives the relative-risk ratio: the multiplicative change in the probability of that category relative to the reference for a one-unit increase in the predictor, holding the other predictors constant.

When should I use ordered logit instead?

If the outcome categories have a natural order — such as a Likert scale or a low-medium-high rating — an ordered logit uses that ordering and is usually more efficient than treating the categories as unordered.

Related methods

Sources

  1. McFadden, D. (1974). Conditional Logit Analysis of Qualitative Choice Behavior. In P. Zarembka (Ed.), Frontiers in Econometrics (pp. 105-142). Academic Press.

    ISBN: 978-0127761503
  2. Financial Econometrics (Routledge Advanced Texts in Economics and Finance), p. 220