# 矩方法分位数回归

矩方法分位数回归（MM-QR）是一种统计估计方法，它通过匹配样本矩来拟合分位数回归模型，而不是最小化科恩克–巴塞特检验函数。它通过由条件期望识别的位置函数和尺度函数来表达条件分位数，因此在检验函数最小化难以处理的地方，可以使用普通最小二乘法和广义矩方法（GMM）工具，尤其是在固定效应面板数据和含内生解释变量的模型中。它旨在作为标准分位数回归的补充工具，而非替代品。<sup>[1](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)</sup><sup> • </sup><sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 引入论文 | 马查多（Machado）和桑托斯·席尔瓦（Santos Silva），《经由矩的分位数》，《计量经济学杂志》213(1)，145–173，2019<sup>[1](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)</sup> |
| 核心思想 | 通过结合位置函数和尺度函数来估计条件分位数，二者均由条件期望识别<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> |
| 计算 | 一步 GMM，按四个步骤顺序计算（位置回归、残差、尺度回归、分位数步骤）<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> |
| 渐近性质 | 在面板中一致且以速率 \( \sqrt{nT} \) 渐近正态；固定效应偏差与 \( 1/T \) 成正比，大部分可通过分面板刀切法消除<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> |
| 主要权衡 | 比检验函数分位数回归需要更强的矩存在假设，但在适当条件下识别相同的条件分位数<sup>[1](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)</sup> |
| 实用优势 | 分位数估计不交叉；对于固定效应面板和多个内生变量，计算上简单得多<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> |
| 关键扩展 | 多重固定效应（2024），带 R 和 Stata 包的最小距离面板估计量（2025）<sup>[3](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/2502.18242)</sup> |

## 工作原理

MM-QR 基于位置-尺度模型。将标准化残差写为 \( U = (Y - (\alpha + X'\beta)) / \exp(\gamma + Z'\delta) \)，其中位置函数 \( \alpha + X'\beta \) 和尺度函数 \( \exp(\gamma + Z'\delta) \) 刻画协变量如何移动和重新缩放条件分布。第一组矩条件（MC1）是 \( E[U \cdot X] = 0 \)、\( E[U] = 0 \)、\( E[(|U| - 1) \cdot D] = 0 \) 和 \( E[(|U| - 1) \cdot D'] = 0 \)；第二组（MC2）添加 \( E[I(U < q_\tau) - \tau] = 0 \)，其中 \( I \) 是标准化残差低于目标分位数 \( q_\tau \) 的指示函数。这些条件共同将分位数回归系数识别为位置系数与标准化残差分位数系数的组合。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup>

该估计量是汉森（Hansen）意义上的 GMM 估计量：它最小化这些正交条件的样本对应项的二次型，由加权矩阵决定最终得到哪个估计量。<sup>[5](https://doi.org/10.2307/1912775)</sup><sup> • </sup><sup>[6](https://larspeterhansen.org/wp-content/uploads/2017/04/G000206.pdf)</sup> 估计的是尺度函数而非方差函数，因为在主要的线性情形中，尺度可以用普通最小二乘法估计，并且是更稳健的离散程度度量。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> 这些条件类似于约束分位数回归的条件，但早期工作对 \( U \) 和 \( |U| \) 使用中位数条件，而 MM-QR 使用条件期望，其作者称从稳健性角度看这一选择更弱。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> 一个不同但名称相似的思路，即科恩克的“分位数方法”（MoQ），在最小距离准则中用样本分位数代替矩；它是不同的估计量，不应与 MM-QR 混淆。<sup>[7](http://www.econ.uiuc.edu/~roger/research/bayesqr/moq.pdf)</sup>

在面板中，该估计量一致且以速率 \( \sqrt{nT} \) 渐近正态，固定效应系数以速率 \( \sqrt{T} \) 收敛；其偏差本质上与 \( 1/T \) 成正比，并且可以通过海尔特·达内（Geert Dhaene）和科恩·约赫曼斯（Koen Jochmans）的分面板刀切法偏差校正（《经济研究评论》，2015）基本消除。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup><sup> • </sup><sup>[8](https://doi.org/10.1093/restud/rdv007)</sup>

## 实施方法

矩条件关于模型参数具有三角结构，因此一步 GMM 估计量可以按四个步骤顺序计算：<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup>

1. 用最小二乘法将 \( Y \) 对 \( X \) 回归，以估计位置函数。
2. 构造残差。
3. 用最小二乘法将绝对残差对尺度协变量回归，这一回归让人想起格莱泽（Glejser）的异方差检验。
4. 对标准化残差应用检验函数，以估计残差分位数系数。

分位数矩中的指示函数不可微，因此实现时用核函数近似它，协方差矩阵由经验影响函数估计为 \( V(\hat{\theta}) = (1/N)\, \bar{G}(\hat{\theta})^{-1} \left[ (1/N) \sum_i h_i \cdot h_i' \right] \bar{G}(\hat{\theta})^{-1} \)。<sup>[3](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)</sup>

软件支持分散在相关估计量中，而不是集中在一个包里。R 包 quantreg 通过单纯形算法和 Frisch–Newton 内点法提供底层的分位数回归步骤。<sup>[9](http://www.econ.uiuc.edu/~roger/research/QR40/QR40.pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/html/2407.12348v3)</sup> 对于基于 GMM 的工具变量分位数回归，样本矩在参数上不连续，但问题可以重新表述为混合整数二次规划问题，并用 CPLEX 和 Gurobi 等求解器精确求解。<sup>[11](https://doi.org/10.1002/jae.2619)</sup> 2025 年的最小距离面板变体随附面向 R 和 Stata 的通用包，并且只需要分位数回归和 GMM 的例程。<sup>[4](https://ar5iv.labs.arxiv.org/html/2502.18242)</sup>

## 起源

MM-QR 由若泽·A.F. 马查多（José A.F. Machado）和 J.M.C. 桑托斯·席尔瓦（J.M.C. Santos Silva）在《经由矩的分位数》（《计量经济学杂志》，2019）中引入。<sup>[12](https://doi.org/10.1016/j.jeconom.2019.04.009)</sup> 它建立在一系列早期工作之上：罗杰·科恩克（Roger Koenker）和吉尔伯特·巴塞特（Gilbert Bassett）的检验函数分位数回归估计量（《计量经济学》，1978）<sup>[13](https://doi.org/10.2307/1913643)</sup>；汉森（Hansen）的 GMM 框架（《计量经济学》，1982）<sup>[5](https://doi.org/10.2307/1912775)</sup>；以及维克托·切尔诺茹科夫（Victor Chernozhukov）和克里斯蒂安·汉森（Christian Hansen）的工具变量分位数模型（《计量经济学》，2004），在内生情形下，MM-QR 与该模型识别出相同的结构分位数函数，同时计算上简单得多。<sup>[14](https://doi.org/10.1111/j.1468-0262.2005.00570.x)</sup><sup> • </sup><sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> 在面板中，科恩克 2004 年的位置移动固定效应模型是约束性前身，MM-QR 通过让个体效应影响整个条件分布来放松该模型。<sup>[15](https://doi.org/10.1016/j.jmva.2004.05.006)</sup><sup> • </sup><sup>[3](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)</sup>

## 变体

- **带多重固定效应的面板 MM-QR。** 里奥斯-阿维拉（Rios-Avila）、西莱斯（Siles）和卡纳维雷·巴卡雷萨（Canavire Bacarreza）（IZA 讨论论文第 17262 号，2024）利用 Frisch–Waugh–Lovell 定理将马查多–桑托斯·席尔瓦估计量扩展到多重固定效应，并从经验影响函数导出稳健和聚类标准误。<sup>[3](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)</sup>
- **GMM 分位数回归。** 塞尔吉奥·菲尔波（Sergio Firpo）及其同事（《计量经济学杂志》，2021）同时估计固定数量的分位数，矩条件按分位数 \( \tau \in \mathcal{T} \subset (0,1) \) 索引，并跨分位数施加灵活的参数限制，从而比逐分位数估计获得效率提升。<sup>[16](https://doi.org/10.1016/j.jeconom.2020.11.014)</sup>
- **平滑 GMM。** 卢西亚诺·德·卡斯特罗（Luciano de Castro）及其同事（《计量经济学杂志》，2019）平滑矩函数内部的指示函数，在更弱假设下将工具变量分位数回归（IVQR）作为特例涵盖，包括弱相关数据和非线性结构模型。<sup>[17](https://ar5iv.labs.arxiv.org/html/1707.03436)</sup> 卡普兰（Kaplan）和孙一晓（Yixiao Sun）此前为 IVQR 开发了平滑估计方程（《计量经济学理论》，2016）。<sup>[18](https://doi.org/10.1017/s0266466615000407)</sup>
- **精确 IVQR 计算。** 陈乐宇（Le-Yu Chen）和李锡培（Sokbae Lee）（《应用计量经济学杂志》，2018）通过混合整数二次规划精确计算 GMM IVQR 估计量。<sup>[11](https://doi.org/10.1002/jae.2619)</sup>
- **最小距离面板估计量。** 一种 2025 年的两阶段方法在每个单元内运行分位数回归，然后对第一阶段拟合值运行 GMM；它嵌套了安东尼奥·F. 加尔旺（Antonio F. Galvao）和王亮（Liang Wang）的两步最小距离估计量（《多元分析杂志》，2014），并提供了固定效应、随机效应、组间和豪斯曼–泰勒估计量的分位数类似物。<sup>[4](https://ar5iv.labs.arxiv.org/html/2502.18242)</sup><sup> • </sup><sup>[19](https://doi.org/10.1016/j.jmva.2014.08.007)</sup>
- **相关随机效应。** 曼努埃尔·阿雷利亚诺（Manuel Arellano）和斯特凡·博诺姆（Stéphane Bonhomme）（《计量经济学刊》，2016）通过序贯矩方法估计非线性面板分位数模型，该方法用 EM 式迭代计算，每一步都使用普通分位数回归。<sup>[20](https://doi.org/10.1111/ectj.12062)</sup>
- **奈曼正交矩。** 金泽群（Zequn Jin）和孙继胜（Jisheng Sun）（《经济学快报》，2025）为含高维协变量的 IVQR 模型中的无条件分位数处理效应开发了一个奈曼正交矩条件。<sup>[21](https://doi.org/10.1016/j.econlet.2025.112369)</sup>

## 应用

MM-QR 所针对的设定是带个体效应的面板数据和含内生解释变量的模型。<sup>[1](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)</sup> 相关的基于矩的分位数方法已被应用于估计吸烟对条件分布底部的出生体重的影响，<sup>[16](https://doi.org/10.1016/j.jeconom.2020.11.014)</sup> 应用于从分位数效用最大化导出的消费欧拉方程，<sup>[17](https://ar5iv.labs.arxiv.org/html/1707.03436)</sup> 应用于相关随机效应框架下孕期吸烟与儿童出生体重，<sup>[20](https://doi.org/10.1111/ectj.12062)</sup> 以及应用于动态面板设定下 18 个经合组织（OECD）国家的产出增长率预测。<sup>[22](https://www.sciencedirect.com/science/article/abs/pii/S0304407611000443)</sup> 最小距离变体应用于阿尔蒙德（Almond）及其同事设计的扩展，发现食品券计划对出生体重分布的尾部下端有正向影响，该估计按县-季度组分别对黑人和白人母亲进行。<sup>[4](https://ar5iv.labs.arxiv.org/html/2502.18242)</sup> 自 2023 年以来，矩方法分位数估计还被应用于能源经济学，研究制度对不同收入群体的清洁能源投资和环境退化的影响。<sup>[23](https://doi.org/10.1016/j.energy.2025.136018)</sup>

## 局限与替代方法

MM-QR 不具备检验函数分位数回归的稳健性：它对矩的存在性要求更强的假设，尽管在适当条件下它识别相同的条件分位数。<sup>[1](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)</sup> 它还依赖于协变量仅通过位置函数和尺度函数影响分布的假设；这一假设是可检验的，因此实践者可以检查该方法是否适合特定应用。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> 在面板中，它继承了附带参数问题，偏差为 \( 1/T \) 阶，可通过刀切法缓解。<sup>[2](https://www.bportugal.pt/sites/default/files/conf15.pdf)</sup> 对于多重固定效应扩展，当尺度模型预测值接近零或为负时，GLS 标准误有偏；稳健和聚类标准误在那里更稳定。<sup>[3](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)</sup> 更一般地，固定效应面板分位数回归可能遭受大的渐近偏差，且单个分位数的固定效应模型不是点识别的，这促使了相关随机效应替代方法的出现。<sup>[20](https://doi.org/10.1111/ectj.12062)</sup> 经典分位数和 IVQR 估计量同样可能表现出显著的小样本偏差，格里戈里·弗兰古里迪（Grigory Franguridi）、布拉特·加法罗夫（Bulat Gafarov）和卡斯帕·维特里希（Kaspar Wüthrich）为此开发了一种可行的有限差分校正（《计量经济学杂志》，2025），其具有 \( O_p(n^{-1}) \) 阶的零二阶偏差。<sup>[24](https://doi.org/10.1016/j.jeconom.2025.106053)</sup> 最接近的替代方法是检验函数分位数回归本身，它更稳健，但更难与固定效应和内生性结合；IVQR，其对偶（逆分位数回归）推断对弱识别稳健，且 MM-QR 以更低计算成本在识别量上与之匹配；<sup>[14](https://doi.org/10.1111/j.1468-0262.2005.00570.x)</sup><sup> • </sup><sup>[25](https://www.mit.edu/~vchern/papers/ch_IVQR_2001_rev_Oct24_2004.pdf)</sup> 以及分位数回归中处理内生性的控制函数方法。<sup>[26](https://doi.org/10.1016/j.jeconom.2007.01.014)</sup> GMM 的吸引力在于它不像最大似然那样需要指定完整的数据生成过程，这一点延续下来，但不同的加权矩阵会产生不同的估计量，因此调参选择很重要。<sup>[6](https://larspeterhansen.org/wp-content/uploads/2017/04/G000206.pdf)</sup>

## References

1. [Quantiles via moments (Machado & Santos Silva, 2019, Journal of Econometrics)](https://ideas.repec.org/a/eee/econom/v213y2019i1p145-173.html)
2. [Quantiles via Moments (Machado & Santos Silva working paper, Banco de Portugal)](https://www.bportugal.pt/sites/default/files/conf15.pdf)
3. [Estimating Quantile Regressions with Multiple Fixed Effects through Method of Moments (Rios-Avila, Siles, Canavire Bacarreza, IZA DP 17262, 2024)](https://www.iza.org/index.php/publications/dp/17262/estimating-quantile-regressions-with-multiple-fixed-effects-through-method-of-moments)
4. [Minimum Distance Estimation of Quantile Panel Data Models (arXiv 2502.18242, 2025)](https://ar5iv.labs.arxiv.org/html/2502.18242)
5. [Lars Peter Hansen (1982). Large Sample Properties of Generalized Method of Moments Estimators. Econometrica.](https://doi.org/10.2307/1912775)
6. [Generalized Method of Moments Estimation (Hansen, encyclopedia review)](https://larspeterhansen.org/wp-content/uploads/2017/04/G000206.pdf)
7. [Method of Quantiles (Koenker, 2010 note)](http://www.econ.uiuc.edu/~roger/research/bayesqr/moq.pdf)
8. [Geert Dhaene, Koen Jochmans (2015). Split-panel Jackknife Estimation of Fixed-effect Models. The Review of Economic Studies.](https://doi.org/10.1093/restud/rdv007)
9. [Quantile Regression: 40 Years On (Koenker)](http://www.econ.uiuc.edu/~roger/research/QR40/QR40.pdf)
10. [MM Algorithms for Statistical Estimation in Quantile Regression (arXiv 2407.12348, 2024)](https://arxiv.org/html/2407.12348v3)
11. [Le‐Yu Chen, Sokbae Lee (2018). Exact computation of GMM estimators for instrumental variable quantile regression models. Journal of Applied Econometrics.](https://doi.org/10.1002/jae.2619)
12. [José A.F. Machado, J.M.C. Santos Silva (2019). Quantiles via moments. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2019.04.009)
13. [Roger Koenker, Gilbert Bassett (1978). Regression Quantiles. Econometrica.](https://doi.org/10.2307/1913643)
14. [Victor Chernozhukov, Christian Hansen (2004). An IV Model of Quantile Treatment Effects. Econometrica.](https://doi.org/10.1111/j.1468-0262.2005.00570.x)
15. [Roger Koenker (2004). Quantile regression for longitudinal data. Journal of Multivariate Analysis.](https://doi.org/10.1016/j.jmva.2004.05.006)
16. [Sergio Firpo and colleagues (2021). GMM quantile regression. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2020.11.014)
17. [Smoothed GMM for quantile models (de Castro, Galvao, Kaplan, Liu)](https://ar5iv.labs.arxiv.org/html/1707.03436)
18. [David M. Kaplan, Yixiao Sun (2016). SMOOTHED ESTIMATING EQUATIONS FOR INSTRUMENTAL VARIABLES QUANTILE REGRESSION. Econometric Theory.](https://doi.org/10.1017/s0266466615000407)
19. [Antonio F. Galvao, Liang Wang (2014). Efficient minimum distance estimator for quantile regression fixed effects panel data. Journal of Multivariate Analysis.](https://doi.org/10.1016/j.jmva.2014.08.007)
20. [Manuel Arellano, Stéphane Bonhomme (2016). Nonlinear panel data estimation via quantile regressions. Econometrics Journal.](https://doi.org/10.1111/ectj.12062)
21. [Zequn Jin, Jisheng Sun (2025). Neyman-orthogonal moment for instrumental variable quantile regression model with high dimensional data. Economics Letters.](https://doi.org/10.1016/j.econlet.2025.112369)
22. [Galvao, 'Quantile regression for dynamic panel data with fixed effects', Journal of Econometrics](https://www.sciencedirect.com/science/article/abs/pii/S0304407611000443)
23. [James Adolphus, Heli Arminen, Tiia-Lotta Pekkanen (2025). The effect of institutions on clean energy investments and environmental degradation across income groups: Evidence based on the Method of Moments Quantile estimation. Energy.](https://doi.org/10.1016/j.energy.2025.136018)
24. [Grigory Franguridi, Bulat Gafarov, Kaspar Wüthrich (2025). Bias correction for quantile regression estimators. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2025.106053)
25. [Instrumental Variable Quantile Regression (Chernozhukov and Hansen)](https://www.mit.edu/~vchern/papers/ch_IVQR_2001_rev_Oct24_2004.pdf)
26. [Sokbae Lee (2007). Endogeneity in quantile regression models: A control function approach. Journal of Econometrics.](https://doi.org/10.1016/j.jeconom.2007.01.014)

---
*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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/method-of-moments-quantile-regression

English original: https://www.edgepedia.org/method-of-moments-quantile-regression
