# 嵌套logit模型

嵌套logit模型是一种离散选择模型，它将备选项分组为嵌套子集（称为“巢”），使得同一组内未观测到的效用成分可以相关；该模型用于放松多项logit（MNL）模型的无关方案独立性（IIA）假设。<sup>[1](https://fpcordeiro.github.io/choicer/articles/nl.html)</sup> MNL模型限定：当引入或改变其他备选项时，任意一对备选项之间的相对选择概率保持不变，这可能错误地反映替代行为；嵌套logit是一种计算上可行的推广，允许特定的备选项对（如公交车和火车）对服务变化表现出更高的敏感性。<sup>[2](https://onlinepubs.trb.org/Onlinepubs/trr/1993/1413/1413-011.pdf)</sup> 每个巢增加一个额外参数，保持无需模拟的闭式似然函数，并被广泛视为超越MNL的首选步骤。<sup>[1](https://fpcordeiro.github.io/choicer/articles/nl.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 估计内容 | 分组到巢中的备选项之间的选择概率，巢内未观测效用存在相关性<sup>[1](https://fpcordeiro.github.io/choicer/articles/nl.html)</sup> |
| 关键参数 | 每个巢一个相异（对数-和）参数 \( \lambda_{k} \)，为满足随机效用一致性限制在 \( 0 < \lambda_{k} \leq 1 \)<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup> |
| \( \lambda_{k} = 1 \) | 巢内相关性为零；模型退化为MNL<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup> |
| 估计方法 | 对闭式GEV似然函数进行全信息最大似然估计；在一般条件下具有一致性和有效性<sup>[4](https://eml.berkeley.edu/choice2/ch4.pdf)</sup> |
| 计算成本 | 计算量比多项probit模型少一个数量级，通常与MNL分析相当<sup>[5](https://sheffi.mit.edu/sites/sheffi.mit.edu/files/2017-04/Estimating%20Choice%20Probabilities%20Among%20Nested%20Alternatives_0.pdf)</sup> |
| 主要应用 | 城际和城市交通方式选择，政策变化前后的市场份额模拟<sup>[2](https://onlinepubs.trb.org/Onlinepubs/trr/1993/1413/1413-011.pdf)</sup> |

## 工作原理

该模型属于随机效用框架：每个备选项的效用包含可观测部分和不可观测部分，嵌套logit是一种可加随机效用模型。<sup>[6](https://www.cambridge.org/core/journals/econometric-theory/article/abs/on-the-representation-of-the-nested-logit-model/1F58D3969827691BDCA55C167691EA5E)</sup> 备选项被分配到各个巢中，每个巢 \( k \) 有一个相异参数 \( \lambda_{k} \)，也称为对数-和参数或嵌套系数，它是该巢内备选项未观测效用成分之间相关性的函数，表征它们的可替代性。<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup> 对数-和系数 \( \lambda_{1}, \dots, \lambda_{K} \) 衡量巢内效用不可观测部分之间的独立程度，在标准归一化下，\( 1 - \lambda_{k}^{2} \) 是巢 \( k \) 中备选项随机效用之间相关性的度量。<sup>[7](https://link.springer.com/article/10.1007/s11573-025-01241-y)</sup>

参数的解释：\( \lambda_{k} = 1 \) 意味着巢内相关性为零，模型退化为MNL；\( 0 < \lambda_{k} < 1 \) 表示巢内正相关，这是典型情况；对数-和非常小（约0.01）意味着巢内备选项之间几乎完全相关（约0.9999）。<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s11116-026-10808-9)</sup> 为与随机效用最大化保持一致，\( \lambda_{k} \) 必须介于0和1之间；大于1或小于0的值与理论推导不一致，可作为拒绝该模型的依据。<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup><sup> • </sup><sup>[7](https://link.springer.com/article/10.1007/s11573-025-01241-y)</sup> 在多层级树结构中，每一层的对数-和参数被限制在零与上一层参数之间，以确保误差方差为正。<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup>

IIA在巢*内部*仍然成立：对于同一巢中的两个备选项，它们的选择概率之比与其他备选项无关。<sup>[7](https://link.springer.com/article/10.1007/s11573-025-01241-y)</sup> 放松是在巢之间通过包含值实现的，包含值概括了每个巢的信息：\( I_{ik} = \log \sum_{j \in B_{k} \cap C_{i}} \exp\!\left( \frac{V_{ij}}{\lambda_{k}} \right) \)，即巢 \( k \) 中可用备选项的缩放效用的对数-和。<sup>[9](https://fpcordeiro.github.io/choicer/articles/nested_logit_math.html)</sup> 该模型通过将相关的备选项放在同一巢层，并使用包含值来表示它们的共同效用，从而处理备选项之间的相似性。<sup>[10](https://springerlink.fh-diploma.de/article/10.1007/s40534-013-0028-5)</sup>

## 实施方法

实践者首先预先指定嵌套树结构，模型只允许所画出的巢内存在相关性；好的应用将树结构视为一种经济学假设，而非在查看拟合统计量后选择的调优参数。<sup>[1](https://fpcordeiro.github.io/choicer/articles/nl.html)</sup> 单元素巢（即恰好只含一个备选项的巢）的 \( \lambda_{k} \) 固定为1，不进行估计。<sup>[9](https://fpcordeiro.github.io/choicer/articles/nested_logit_math.html)</sup>

估计采用对完整模型的标准最大似然法；在相当一般的条件下，最大化子具有一致性和有效性。<sup>[4](https://eml.berkeley.edu/choice2/ch4.pdf)</sup> 存在一种序贯的自底向上替代方法：先估计条件（低层）选择模型，由其分母的对数构造包含值，然后在给定包含值的条件下估计边际（上层）模型。<sup>[11](https://onlinepubs.trb.org/Onlinepubs/trr/1978/673/673-012.pdf)</sup> 序贯估计具有一致性但非有效，且上层模型参数的标准误向下偏误，因为包含值估计的方差未被纳入；本-阿基瓦和勒曼（1985，第298页）给出了消除此偏误的调整方法。<sup>[4](https://eml.berkeley.edu/choice2/ch4.pdf)</sup> 由于商业软件可以处理同时估计，几乎没有理由采用序贯估计；上/下层分解主要有助于理解模型的结构。<sup>[4](https://eml.berkeley.edu/choice2/ch4.pdf)</sup> 全信息估计允许高效利用信息，并在不同应用之间产生可直接比较的结果。<sup>[2](https://onlinepubs.trb.org/Onlinepubs/trr/1993/1413/1413-011.pdf)</sup> 软件实现在细节上有所不同；例如，某个R实现施加了下界 \( \lambda_{k} > 0 \) 但未施加 \( \lambda_{k} \leq 1 \)，并提供BHHH、三明治（稳健胡贝尔–怀特）和聚类稳健标准误。<sup>[9](https://fpcordeiro.github.io/choicer/articles/nested_logit_math.html)</sup>

## 起源

嵌套logit模型于20世纪70年代中期通过威廉姆斯、麦克法登以及戴利和扎卡里各自独立的表述发展而来；约瑟夫·谢菲于1979年发表在《Transportation Research Part B: Methodological》上的论文《嵌套备选项之间选择概率的估计》是早期重要的阐述。<sup>[3](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)</sup><sup> • </sup><sup>[12](https://doi.org/10.1016/0191-2615%2879%2990011-0)</sup><sup> • </sup><sup>[5](https://sheffi.mit.edu/sites/sheffi.mit.edu/files/2017-04/Estimating%20Choice%20Probabilities%20Among%20Nested%20Alternatives_0.pdf)</sup> 该模型可以作为广义极值（GEV）选择模型族的一员推导出来。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S019126150000045X)</sup> 关于该模型随机效用表示的一个长期存在的猜想——记录于1973年的一篇博士论文中——后来用两行证明得以解决，确认了嵌套logit是真正的可加随机效用模型。<sup>[6](https://www.cambridge.org/core/journals/econometric-theory/article/abs/on-the-representation-of-the-nested-logit-model/1F58D3969827691BDCA55C167691EA5E)</sup>

## 变体

GEV族中的若干模型扩展了嵌套logit的替代模式。广义嵌套logit（GNL）将每个备选项按比例分配到一组巢中，每个巢有自己的对数-和或相异参数 \( \mu_{m} \)（\( 0 < \mu_{m} \leq 1 \)），并将嵌套logit、配对组合logit、交叉嵌套logit、有序GEV、产品差异化以及MNL模型作为特例包含在内；这种按比例分配的方式容纳了备选项对之间的差异化交叉弹性。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S019126150000045X)</sup> 交叉嵌套logit放松了每个备选项必须恰好属于一个巢的要求；一个早期应用对特拉维夫大都市区的交通方式选择进行了建模。<sup>[14](https://doi.org/10.3141/1607-02)</sup> 广义嵌套异方差极值（GNHEV）模型同时考虑替代模式和异方差性，涵盖HEV和GNL模型，在覆盖加拿大和台湾的城际应用中，在直接弹性和交叉弹性以及时间价值方面统计上优于MNL、HEV和GNL。<sup>[8](https://link.springer.com/article/10.1007/s11116-026-10808-9)</sup>

## 应用

该模型的闭式结构使其易于在政策变化前后模拟市场份额，这是分析人员在超越MNL后使用它的主要原因之一。<sup>[15](https://ses.library.usyd.edu.au/bitstream/handle/2123/19041/ITS-WP-99-4.pdf?isAllowed=y&sequence=1)</sup> 在安大略–魁北克走廊的城际商务出行方式选择中，采用公交–火车或汽车–火车巢结构的嵌套logit模型被证明优于多项logit模型；两种嵌套结构都预测铁路服务改善后铁路份额将有更大增长，但新增客流的来源在两种嵌套结构之间有所不同。<sup>[2](https://onlinepubs.trb.org/Onlinepubs/trr/1993/1413/1413-011.pdf)</sup> 该模型在实际应用中也普遍被用作克服MNL的IIA限制的替代方案。<sup>[16](https://www.econstor.eu/bitstream/10419/25218/1/558561691.PDF)</sup>

## 局限性与替代方案

嵌套logit有四个已记录的缺点：它需要固定的巢层结构；它不能同时容纳所有误差项彼此相关；决策过程必须满足连续性条件；每个备选项被限制为只能出现在一个巢中。<sup>[10](https://springerlink.fh-diploma.de/article/10.1007/s40534-013-0028-5)</sup> 它还保留了关于同一巢内或不同巢中备选项对之间交叉弹性相等的限制，这在重要情形中可能不现实。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S019126150000045X)</sup> \( \lambda_{k} \) 的估计值大于1在数学上可以计算，但意味着巢内负相关，应被视为反对所提出嵌套结构的证据。<sup>[1](https://fpcordeiro.github.io/choicer/articles/nl.html)</sup> 一个被广泛引用的早期IIA检验本身也受到了批评：第一个豪斯曼–麦克法登检验不能被视为IIA的适当检验。<sup>[17](https://www.econstor.eu/bitstream/10419/177636/1/17068.pdf)</sup>

在替代方案中，混合logit、多项probit、异方差极值及相关设定限制更少，但嵌套logit仍被继续估计，因为它易于估计和解释。<sup>[15](https://ses.library.usyd.edu.au/bitstream/handle/2123/19041/ITS-WP-99-4.pdf?isAllowed=y&sequence=1)</sup> 在一个现实的城际方式分担预测中，混合多项logit模型表现出最高的可靠性，预测误差最不显著，在处理异质性和相似性方面优于MNL、嵌套logit、HEV和多项probit。<sup>[10](https://springerlink.fh-diploma.de/article/10.1007/s40534-013-0028-5)</sup>

## References

1. [Nested logit and grouped substitution • choicer (R package vignette)](https://fpcordeiro.github.io/choicer/articles/nl.html)
2. [Application and Interpretation of Nested Logit Models (Transportation Research Record 1413, 1993)](https://onlinepubs.trb.org/Onlinepubs/trr/1993/1413/1413-011.pdf)
3. [Chapter 8 Nested Logit Model | A Self-Instructing Course in Mode Choice Modeling](https://tfresource.github.io/modechoice/nestedlogit-chapter.html)
4. [Discrete Choice Methods with Simulation, Chapter 4: Nested Logit (Train)](https://eml.berkeley.edu/choice2/ch4.pdf)
5. [Estimating Choice Probabilities Among Nested Alternatives (Sheffi, Transportation Research B, 1979)](https://sheffi.mit.edu/sites/sheffi.mit.edu/files/2017-04/Estimating%20Choice%20Probabilities%20Among%20Nested%20Alternatives_0.pdf)
6. [On the Representation of the Nested Logit Model (Econometric Theory)](https://www.cambridge.org/core/journals/econometric-theory/article/abs/on-the-representation-of-the-nested-logit-model/1F58D3969827691BDCA55C167691EA5E)
7. [Identifying nested preference structures in choice models based on stated choice data (Journal of Business Economics, 2025)](https://link.springer.com/article/10.1007/s11573-025-01241-y)
8. [Generalized nested heteroscedastic extreme value model: applications in intercity passenger mode choice (Transportation)](https://link.springer.com/article/10.1007/s11116-026-10808-9)
9. [The math behind choicer: nested logit (R package vignette; reference-page material merged)](https://fpcordeiro.github.io/choicer/articles/nested_logit_math.html)
10. [Comparative study on mode split discrete choice models (Railway Engineering Science, mirror copy)](https://springerlink.fh-diploma.de/article/10.1007/s40534-013-0028-5)
11. [Modeling the Choice of ... (Transportation Research Record 673, 1978, McFadden)](https://onlinepubs.trb.org/Onlinepubs/trr/1978/673/673-012.pdf)
12. [Estimating choice probabilities among nested alternatives (Transportation Research Part B Methodological, 1979)](https://doi.org/10.1016/0191-2615%2879%2990011-0)
13. [The generalized nested logit model (Wen & Koppelman, Transportation Research B)](https://www.sciencedirect.com/science/article/abs/pii/S019126150000045X)
14. [Peter Vovsha (1997). Application of Cross-Nested Logit Model to Mode Choice in Tel Aviv, Israel, Metropolitan Area. Transportation Research Record Journal of the Transportation Research Board.](https://doi.org/10.3141/1607-02)
15. [Specification and Estimation of Nested Logit Models (Hensher & Greene, ITS Working Paper 99-4)](https://ses.library.usyd.edu.au/bitstream/handle/2123/19041/ITS-WP-99-4.pdf?isAllowed=y&sequence=1)
16. [Estimation with the nested logit model: Specifications and software particularities (EconStor discussion paper)](https://www.econstor.eu/bitstream/10419/25218/1/558561691.PDF)
17. [Specification Tests for The Multinomial Logit Model Revisited: The Role of Alternative-Specific Constants (EconStor working paper)](https://www.econstor.eu/bitstream/10419/177636/1/17068.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis › Categorical and choice models

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/nested-logit-model

English original: https://www.edgepedia.org/nested-logit-model
