EconStatsCraft › Multinomial logit

Multinomial logit

For a categorical outcome with three or more options that have no natural order - occupation, travel mode, brand. Reports one equation per category against a base, relative risk ratios, and the average marginal effect on each probability.

What it needs

The intuition

When the outcome is a choice among unordered alternatives - bus, car, train - there is no latent scale to cut up, because there is no sense in which train is "more" than bus. Multinomial logit instead gives each alternative its own utility index and lets the probabilities be the softmax of them. One alternative must be the reference, because only differences in utility are identified: adding a constant to every alternative changes nothing anyone chooses.

When to use it

The outcome is categorical with three or more values and ranking them would be meaningless. If they can be ranked, an ordered model is more parsimonious and more powerful.

Where the estimator comes from

With J alternatives and a base category J, P(y_i=j\mid x)=\frac{\exp(x_i'\beta_j)}{1+\sum_{k=1}^{J-1}\exp(x_i'\beta_k)},\qquad \beta_J\equiv0. The normalisation \beta_J=0 is what makes the model identified rather than an arbitrary choice of convenience. Taking logs of the ratio of any two probabilities gives \ln\frac{P_j}{P_k}=x'(\beta_j-\beta_k), which depends on j and k ALONE - no other alternative appears. That is independence of irrelevant alternatives, and it is a consequence of the functional form rather than an extra assumption bolted on.

The model

P(y=j\mid \mathbf{x})=\frac{\exp(\mathbf{x}^{\prime}\boldsymbol{\beta}_{j})}{1+\sum_{k=2}^{J}\exp(\mathbf{x}^{\prime}\boldsymbol{\beta}_{k})},\qquad \boldsymbol{\beta}_{1}=\mathbf{0}

What it assumes

Statistical properties

How to read the output

A worked reading

Occupation for 900 people - Clerical (371), Manual (228) and Professional (301) - with Clerical as the base, so every coefficient is read against it. The model is jointly significant (LR χ² = 175.33 on the intercept-only model, p < 0.0001) but explains a modest share of the variation: McFadden's pseudo-R² is 0.0902, which for a three-way choice is ordinary and is NOT comparable to an R² from a regression. Now consider what independence of irrelevant alternatives asserts here: the odds of Manual against Professional are fixed by their own coefficients, regardless of whether Clerical is available at all. If Clerical and Manual are close substitutes while Professional is quite different - which is exactly what these three categories look like - that is false. No amount of data will reveal it from inside the model, because the restriction lives in the functional form rather than in the estimates, and this is the reason the nested and mixed logits exist.

Symptom → diagnosis → what to do

If you see thisIt meansDo this
Coefficients flipping when the base changesCorrect and expectedReport marginal effects, which do not
Hausman-McFadden statistic negativeA small-sample artefactUninformative, not a pass
Two alternatives that are near-substitutesIIA will fail on exactly this pairUse nested logit with them in one nest
One alternative chosen by very fewIts coefficients are barely identifiedConsider merging it
Perfect prediction for a categorySeparationA regressor determines the outcome; drop it or use a penalty
Marginal effect sign opposing the coefficientNormal, via the denominatorNot an error

Common mistakes

Where to read this properly

See also

Ordered logit, when the alternatives do have an order. Conjoint analysis, which is this model applied to a designed experiment.

Related Regression

Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Ordered logit / probit · Quantile regression · Poisson / Negative binomial

All analyses

Charts

Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini

Maps

World map · Bivariate map · Flow map · India - state map · India - district map

Explore

Descriptive statistics · Summary by group · Two-way table · Classical statistical tests

Regression

Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial

Time series - one series

Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy

Time series - several series

Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test

Panel data

Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests

Multivariate statistics

Principal components (PCA) · Factor analysis · Cluster analysis

Marketing research

Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis

Causal

Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition

Finance & risk

Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)

Actuarial

Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting

Tests & breaks

Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability

Machine learning

Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting

Open the workspace →

Starting engine…

EconStatsCraft rigorous, plain-spoken econometrics

Econometrics that explains itself.

Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.

Load a dataset to see it here.