Tutorials › Econometrics (Graduate) › Marginal Effects In Multinomial Choice Models

Multinomial and Ordinal Outcomes · Tutorial 486 of 952

Marginal Effects In Multinomial Choice Models

Calculate and interpret continuous and binary covariate effects on multinomial logit probabilities, including the restriction that their changes sum to zero across alternatives.

Advanced 12 min read

What You'll Learn

  • Differentiate multinomial logit probabilities with respect to a continuous covariate.
  • Interpret a probability derivative in the covariate’s units.
  • Calculate binary-covariate effects as finite changes, not derivatives.
  • Verify that effects across all alternatives sum to zero.
  • Distinguish effects at a covariate profile from average marginal effects.

Why Marginal Effects Matter

A multinomial logit coefficient describes how a covariate changes an alternative’s index relative to the reference alternative. It is not, by itself, the change in that alternative’s probability. Probabilities depend on all the indices at once: when one alternative becomes more likely, probability must be redistributed across the others. Marginal effects express that redistribution directly, in probability units.

This tutorial considers two cases. For a continuous covariate, the marginal effect is a derivative of each choice probability. For a binary covariate, the relevant quantity is a finite change between the predicted probabilities with the covariate set to one and to zero. In either case, effects across all alternatives add to zero because their probabilities add to one.

Model and Notation

Let there be \(J+1\) mutually exclusive alternatives, indexed \(j=0,1,\ldots,J\), with alternative \(0\) as the reference. For an individual with covariate vector \(x\), write the normalized multinomial logit probabilities as

$$ P_j(x)=\frac{\exp(V_j(x))}{\sum_{k=0}^{J}\exp(V_k(x))}, \qquad V_0(x)=0. $$

Here \(V_j(x)\) is the systematic index for alternative \(j\). The normalization sets the reference index to zero; the probabilities are unchanged if the same quantity is subtracted from every alternative’s index. For the derivative formula below, suppose a continuous covariate \(z\) enters each non-reference index linearly, with coefficient \(\beta_{jz}\), and does not enter the reference index. Thus \(\partial V_j/\partial z=\beta_{jz}\) for \(j=1,\ldots,J\), and define \(\beta_{0z}=0\).

Definition: The marginal effect of a continuous covariate \(z\) on alternative \(j\)'s probability is the partial derivative \(\partial P_j(x)/\partial z\), evaluated at a specified covariate profile. It measures the local change in probability per one-unit increase in \(z\), holding the other covariates fixed.

The stated linear-index form is an assumption for the formula: if \(z\) also enters nonlinearly or through interactions, the index derivatives must reflect those terms. The probabilities are differentiable wherever the indices are finite, as they are in the standard multinomial logit model.

Continuous Covariates: Derivative and Interpretation

The derivative for alternative \(j\) depends on its own index slope and a probability-weighted average of the slopes for all alternatives, including the reference. This average is not generally zero, even though the reference coefficient is normalized to zero.

Theorem: For the model above, define \(\bar{\beta}_z(x)=\sum_{k=0}^{J}P_k(x)\beta_{kz}\). Then
$$ \frac{\partial P_j(x)}{\partial z} = P_j(x)\left(\beta_{jz}-\bar{\beta}_z(x)\right), \qquad j=0,1,\ldots,J. $$

A positive slope \(\beta_{jz}\) does not guarantee a positive probability derivative. The derivative is positive only when that alternative’s slope exceeds the probability-weighted average slope. This comparison captures the reallocation of probability across alternatives. The derivative is in probability units per unit of \(z\); multiplying by 100 expresses it in percentage points per unit.

Derivation: Write \(D(x)=\sum_{k=0}^{J}\exp(V_k(x))\), so \(P_j=\exp(V_j)/D\). Differentiating the quotient gives
$$ \begin{aligned} \frac{\partial P_j}{\partial z} &= \frac{\exp(V_j)\beta_{jz}D-\exp(V_j)\frac{\partial D}{\partial z}}{D^2},\\ \frac{\partial D}{\partial z} &=\sum_{k=0}^{J}\exp(V_k)\beta_{kz},\\ \frac{\partial P_j}{\partial z} &=P_j\left(\beta_{jz} -\frac{\sum_{k=0}^{J}\exp(V_k)\beta_{kz}}{D}\right) =P_j\left(\beta_{jz}-\sum_{k=0}^{J}P_k\beta_{kz}\right). \end{aligned} $$

The reference term is included in both sums: its index slope is zero, but its probability is not. Summing the derivatives over alternatives confirms the adding-up restriction:

$$ \sum_{j=0}^{J}\frac{\partial P_j}{\partial z} = \sum_{j=0}^{J}P_j\beta_{jz} -\left(\sum_{j=0}^{J}P_j\right)\bar{\beta}_z =\bar{\beta}_z-\bar{\beta}_z=0. $$

Worked Example: A Continuous Covariate at One Profile

Suppose a hypothetical three-alternative model has fitted probabilities \(P_0=0.30\), \(P_1=0.30\), and \(P_2=0.40\) at a particular profile. A continuous covariate \(z\), measured in years, has index slopes \(\beta_{0z}=0\), \(\beta_{1z}=0.10\), and \(\beta_{2z}=-0.05\). Calculate the probability derivatives.

First calculate the probability-weighted average slope:

$$ \bar{\beta}_z =(0.30)(0)+(0.30)(0.10)+(0.40)(-0.05) =0+0.030-0.020 =0.010. $$

Then apply the derivative formula to each alternative:

$$ \begin{aligned} \frac{\partial P_0}{\partial z} &=0.30(0-0.010)=-0.003,\\ \frac{\partial P_1}{\partial z} &=0.30(0.10-0.010)=0.027,\\ \frac{\partial P_2}{\partial z} &=0.40(-0.05-0.010)=-0.024. \end{aligned} $$

The effects add to \(-0.003+0.027-0.024=0\), as they must. At this profile, a one-year local increase in \(z\) is associated with an approximately 0.027 increase in alternative 1’s probability, a 0.003 decrease in alternative 0’s probability, and a 0.024 decrease in alternative 2’s probability. These are local changes, not exact changes for a full one-year increase.

Binary Covariates: Finite Probability Changes

A binary covariate has values zero and one, so the natural effect is a discrete change. Hold the other covariates fixed, calculate all choice probabilities once with the binary covariate set to zero and once with it set to one, and subtract the first set from the second. A derivative is not required, and a coefficient-based linear approximation need not equal this finite change.

Definition: For a binary covariate \(d\), the discrete change in alternative \(j\)'s probability at a given profile of other covariates is \(\Delta P_j=P_j(d=1)-P_j(d=0)\). It is measured in probability units, or in percentage points after multiplying by 100.

Each set of probabilities must be recomputed from the model. The adding-up restriction follows directly:

$$ \sum_{j=0}^{J}\Delta P_j = \sum_{j=0}^{J}P_j(d=1)-\sum_{j=0}^{J}P_j(d=0) =1-1=0. $$

Worked Example: A Binary Covariate and Exact Discrete Changes

Consider a hypothetical three-alternative model with reference alternative \(0\). At fixed values of all other covariates, let the indices be \(V_0=0\), \(V_1=0.2+0.6d\), and \(V_2=-0.4+0.2d\). Calculate the change in each probability when \(d\) changes from zero to one.

When \(d=0\), the indices are \(0\), \(0.2\), and \(-0.4\). The denominator is \(1+\exp(0.2)+\exp(-0.4)=2.89172\), giving

$$ (P_0(0),P_1(0),P_2(0)) \approx(0.3458,\ 0.4224,\ 0.2318). $$

When \(d=1\), the indices are \(0\), \(0.8\), and \(-0.2\). The denominator is \(1+\exp(0.8)+\exp(-0.2)=4.04427\), giving

$$ (P_0(1),P_1(1),P_2(1)) \approx(0.2473,\ 0.5503,\ 0.2024). $$

Calculate each difference from the unrounded probabilities, not by subtracting the displayed rounded values:

$$ \begin{aligned} \Delta P_0 &=\frac{1}{1+\exp(0.8)+\exp(-0.2)} -\frac{1}{1+\exp(0.2)+\exp(-0.4)} \approx -0.0986,\\ \Delta P_1 &=\frac{\exp(0.8)}{1+\exp(0.8)+\exp(-0.2)} -\frac{\exp(0.2)}{1+\exp(0.2)+\exp(-0.4)} \approx 0.1279,\\ \Delta P_2 &=\frac{\exp(-0.2)}{1+\exp(0.8)+\exp(-0.2)} -\frac{\exp(-0.4)}{1+\exp(0.2)+\exp(-0.4)} \approx -0.0294. \end{aligned} $$

Using full precision, the three changes sum to zero; their displayed rounding gives \(-0.0001\). For this hypothetical profile, changing \(d\) from zero to one reduces alternative 0’s probability by about 9.86 percentage points, increases alternative 1’s by about 12.79 points, and reduces alternative 2’s by about 2.94 points. This is a model-based comparison at fixed values of the other covariates, not a causal claim.

Effects Across Profiles and Average Marginal Effects

A derivative generally varies with the covariate profile because both the probabilities and the probability-weighted average slope vary. Thus, reporting a derivative at one profile answers a different question from reporting an average marginal effect across a sample. For a sample of \(n\) profiles, the average marginal effect for alternative \(j\) is the arithmetic mean of the individual derivatives:

$$ AME_j=\frac{1}{n}\sum_{i=1}^{n} \left.\frac{\partial P_{ij}}{\partial z}\right|_{x=x_i}. $$

Since the effects add to zero at every profile, their sample averages also add to zero. Binary-covariate discrete changes can be averaged in the same way, by calculating the change for each profile and then taking the sample mean.

Worked Example: Averaging Derivatives Across Two Profiles

Suppose the same hypothetical coefficient slopes are \((\beta_{0z},\beta_{1z},\beta_{2z})=(0,0.40,-0.10)\) for two profiles. The fitted probabilities are \((0.20,0.50,0.30)\) at profile A and \((0.40,0.20,0.40)\) at profile B. Find each profile’s derivatives and the average marginal effects.

At A, the weighted slope is

$$ \bar{\beta}_{z,A}=(0.20)(0)+(0.50)(0.40)+(0.30)(-0.10) =0.20-0.03=0.17. $$

The derivatives at A are \(0.20(0-0.17)=-0.034\), \(0.50(0.40-0.17)=0.115\), and \(0.30(-0.10-0.17)=-0.081\). They sum to zero.

At B, the weighted slope is

$$ \bar{\beta}_{z,B}=(0.40)(0)+(0.20)(0.40)+(0.40)(-0.10) =0.08-0.04=0.04. $$

The derivatives at B are \(0.40(0-0.04)=-0.016\), \(0.20(0.40-0.04)=0.072\), and \(0.40(-0.10-0.04)=-0.056\). These also sum to zero. Averaging each alternative’s two derivatives gives

$$ AME_0=\frac{-0.034-0.016}{2}=-0.025,\qquad AME_1=\frac{0.115+0.072}{2}=0.0935,\qquad AME_2=\frac{-0.081-0.056}{2}=-0.0685. $$

The average effects sum to \(-0.025+0.0935-0.0685=0\). For a one-unit increase in \(z\), the average local change is therefore 9.35 percentage points for alternative 1, offset by decreases of 2.50 and 6.85 percentage points for alternatives 0 and 2.

Common Pitfalls and Practical Checks

  • Reading a coefficient as a probability effect. A coefficient is an index slope relative to the reference, not a constant change in probability. Calculate the derivative or discrete change from the probabilities.
  • Using a derivative for a binary regressor. The standard interpretation is the finite difference between the predictions at zero and one, with other covariates fixed.
  • Ignoring other alternatives. The derivative for one category reflects the full probability-weighted slope across all categories. Compute the complete set of effects and check that they add to zero.
  • Subtracting rounded predictions. Rounding each probability before subtraction can shift the reported discrete change. Calculate from unrounded predictions, then round the final result.
  • Omitting the evaluation profile. Marginal effects depend on covariate values. State whether an effect is evaluated at a particular profile or averaged across profiles, and retain the covariate’s units.

These calculations turn index parameters into probability-scale summaries suited to questions about predicted choice shares. The adding-up restriction is a useful arithmetic check, but it does not establish that the model is correctly specified or that a covariate has a causal effect.

Check Your Understanding

Use the definitions and results above to answer the following questions.

  1. For three alternatives, \(P=(0.25,0.45,0.30)\) and slopes for a continuous covariate are \((0,0.20,-0.10)\). Calculate the weighted average slope and all three probability derivatives.
  2. Why can a positive index slope produce a negative probability derivative for that alternative?
  3. For a binary covariate, what two predictions must be compared to obtain the discrete change in an alternative’s probability?
  4. Explain why derivatives across alternatives sum to zero, and why finite discrete changes do too.
  5. What is the distinction between a derivative evaluated at one profile and an average marginal effect?
Clinical Biostats