- Introduced by
- Daniel McFadden; Ben-Akiva & Lerman
- Year
- 1985
- Type
- Discrete choice regression model
- Family
- Discrete choice
What does it do?
The Nested Logit model is a discrete choice framework that groups mutually exclusive alternatives into nests.
It allows unobserved utilities to be correlated within each nest while keeping them independent across nests. It is derived from McFadden's Generalized Extreme Value (GEV) theory, and Ben-Akiva and Lerman present it in book form. It extends the Multinomial Logit by relaxing the Independence of Irrelevant Alternatives (IIA) assumption across predefined groups of similar alternatives, while IIA continues to hold among alternatives within each group.
The intuition behind the method
Imagine choosing a mode of transport: first you decide between private and public transport, then within public transport you pick between bus, metro, or train. The Nested Logit mirrors this two-stage mental process. Alternatives inside the same nest (e.g., bus and metro) are treated as closer substitutes than alternatives across nests, so adding a new bus route takes ridership mostly from other buses, not from private cars.
History
Daniel McFadden's Generalized Extreme Value framework is the theoretical basis from which the Nested Logit is derived. Ben-Akiva and Lerman's book presents the model's formulation and its application to travel demand.
When to use it
Choose Nested Logit when decision-makers pick one alternative from a discrete set that can be grouped into clusters whose members share unobserved factors. In that case the independence assumption of standard Multinomial Logit is implausible within the clusters. The nesting should be justified by theory about the choice process, such as a two-stage decision, rather than selected to improve fit. Do not use it when the nesting is unknown or cannot be justified, because the results depend on the imposed tree structure. If the correlation pattern is more complex than a set of nests, consider Mixed Logit or Probit models instead. Very small nests or deep hierarchies can be hard to estimate.
Limitations and considerations
- The nesting structure must be specified in advance by the analyst; a misspecified nest structure biases parameters and elasticities.
- Consistency with utility maximization requires lambda_m in (0, 1]. Estimates outside this range signal misspecification and should not be interpreted as valid.
- IIA holds within each nest: for two alternatives in the same nest, the ratio of their choice probabilities does not depend on the other alternatives. Across nests this proportionality is not preserved, but substitution patterns are still fixed by the nesting, which may be unrealistic when alternatives in different nests share unobserved attributes.
- Estimation becomes harder as the number of nests and levels grows; deep hierarchies with limited data can be difficult to identify.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Relaxes IIA across nests, so alternatives in the same nest draw more heavily on one another than on alternatives in other nests.
- Derived from GEV theory and random utility maximization, so the two-level probabilities form a coherent choice model rather than an ad hoc decomposition.
- Each lambda_m is an estimated parameter that summarizes within-nest similarity and shapes cross-elasticities, so it can be inspected after estimation.
- Reduces to the standard multinomial logit when all lambda_m equal 1, so the richer model contains the simpler one as a special case.
Applications
- Transport mode choice: modeling travelers' choices among car, bus, metro and rail, with motorized and non-motorized modes in separate nests where the grouping is theoretically justified.
- Residential location choice: households select a neighborhood type first and then a dwelling within that type.
- Telecommunications: consumers select a service tier first and then a plan or provider within that tier.
- Vehicle purchase decisions: buyers select a vehicle segment first and then a specific model within the segment.
- Labor market participation: full-time and part-time work can form one nested branch alongside non-employment.
How it works
How it works
The analyst divides the full choice set C into M nests that do not overlap and together cover all alternatives. Alternatives expected to share unobserved factors, and therefore correlated error terms, are placed in the same nest, so the grouping must be justified on theoretical grounds. For example, all motorized two-wheelers could form one nest and all rail modes another.
Formula
\text{Partition } C = \bigcup_{m=1}^{M} B_m, \quad B_m \cap B_k = \emptyset \text{ for } m \neq kFor each nest m, the inclusive value I_m is the log of the sum of exponentiated within-nest utilities, each divided by the nest's dissimilarity parameter lambda_m. It condenses the attractiveness of the whole nest into one scalar that enters the upper-level choice. Its size depends on lambda_m, which controls how strongly alternatives within the nest substitute for one another.
Formula
I_m = \ln \sum_{j \in B_m} \exp\!\left(\frac{V_j}{\lambda_m}\right)Given that nest m is chosen, the probability of alternative j is a standard logit over the alternatives in B_m only, with utilities scaled by lambda_m. Values of lambda_m near 1 leave the within-nest choice close to ordinary logit. Values near 0 make the alternatives in the nest close to perfect substitutes.
Formula
P(j \mid m) = \frac{\exp(V_j / \lambda_m)}{\sum_{k \in B_m} \exp(V_k / \lambda_m)}The upper-level probability of nest m is a logit over the nest-level utilities W_m plus lambda_m times the inclusive value I_m, normalized across nests. The unconditional probability of alternative j is P(j|m) multiplied by P(m). This two-level structure follows from the GEV formulation. Under the usual GEV parameterization, the scale of the upper level is normalized (conventionally set to one), and this normalization is what allows the lambda_m to be identified.
Formula
P(m) = \frac{\exp(W_m + \lambda_m I_m)}{\sum_{l=1}^{M} \exp(W_l + \lambda_l I_l)}Common pitfalls
- Choosing nests by statistical fit alone, rather than by a theoretical rationale, can produce lambda estimates that are hard to interpret and forecasts that are unreliable.
- Normalizing scale incorrectly across levels, for instance by conflating the upper-level and lower-level scale parameters, produces inconsistent estimates.
- Reporting a model whose lambda estimates fall outside (0, 1] as if it were valid, without first examining the nest structure.
- Reading cross-elasticities as if substitution were proportional across all alternatives when lambda values well below 1 indicate strong within-nest substitution; within-nest cross-elasticities are then much larger than those across nests.
Frequently asked questions
How does Nested Logit differ from Multinomial Logit?
Multinomial Logit assumes all alternatives have independent and identically distributed errors (IIA holds globally), implying proportional substitution across all pairs. Nested Logit allows correlated errors within nests, so adding an alternative draws disproportionately from other alternatives in the same nest rather than equally from all alternatives, yielding more realistic cross-elasticity patterns.
What does the inclusive value parameter lambda_m represent?
Lambda_m is the dissimilarity or scale parameter for nest m. Under utility maximization it lies in (0, 1]: a value near 1 means the alternatives in the nest are barely correlated, close to standard logit, while a value near 0 means they are near-perfect substitutes.
Can Nested Logit have more than two levels?
Yes. A three-level (or deeper) nested structure is theoretically permissible within the GEV framework. Each additional level introduces its own dissimilarity parameters and inclusive values. However, identification becomes challenging quickly, and deep hierarchies require large samples and strong theoretical justification for each branching level.
Related methods
Sources
Ben-Akiva, M., & Lerman, S. R. (1985). Discrete Choice Analysis: Theory and Application to Travel Demand. MIT Press.
ISBN: 978-0-262-02217-0Applied Choice Analysis, 2nd Edition, p. 322
Econometric Analysis, 8th Edition, discussion of HEV and nested logit IIA (Tables 18.7-18.8), p. ? (page not recorded in library)