# 多尺度地理加权回归

多尺度地理加权回归（MGWR）是一种空间统计方法，它扩展了地理加权回归（GWR），为每个预测变量估计各自的空间带宽，从而使得作用于同一数据的不同过程可以在不同的地理尺度上发挥作用。在普通GWR中，每个局部关系被迫共用一个带宽；MGWR取消了这一限制，并报告每个协变量与响应变量之间的关系发生变化的尺度。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup><sup> • </sup><sup>[2](https://doc.esri.com/en/arcgis-pro/latest/tool-reference/spatial-statistics/multiscale-geographically-weighted-regression.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 产出 | 为每个预测变量生成一个局部系数曲面，每个曲面拥有自己优化的带宽，该带宽被解释为该过程的空间尺度<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup> |
| 估计方法 | 通过迭代回拟合拟合的广义加性模型（GAM）形式<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup> |
| 带宽选择 | 最小化校正赤池信息准则（AICc）的黄金分割搜索<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup> |
| 提出者 | A·斯图尔特·福瑟林厄姆（A. Stewart Fotheringham）、杨文白（Wenbai Yang）和康威（Wei Kang），《美国地理学家协会会刊》（Annals of the American Association of Geographers），2017年<sup>[4](https://doi.org/10.1080/24694452.2017.1352480)</sup> |
| 软件 | mgwr Python包、MGWR 1.0/2.0、ArcGIS Pro、R语言的GWmodel和mgwrsar<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup><sup> • </sup><sup>[5](https://sgsup.asu.edu/sites/g/files/litvpz426/files/SparcFiles/mgwr_1.0_manual_final.pdf)</sup> |
| 规模限制 | 原始回拟合在观测数超过约5,000时不切实际；并行的MGWR 2.0可处理多达100,000个观测<sup>[6](https://doi.org/10.1080/13658816.2020.1720692)</sup> |
| 主要警示 | 共线性结合空间自相关可能扭曲带宽，产生虚假的局部效应<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup> |

## 工作原理

GWR在单尺度假设下运行，所有建模过程共享一个带宽。<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup><sup> • </sup><sup>[2](https://doc.esri.com/en/arcgis-pro/latest/tool-reference/spatial-statistics/multiscale-geographically-weighted-regression.html)</sup> MGWR则为每个系数 \( \beta_{j} \) 分配自己的带宽 \( b_{j} \)，因此模型携带一个带宽向量 \( (b_{0}, b_{1}, \ldots, b_{m}) \)，而非一个共享值。带宽在校准期间估计，并被解释为每个条件关系起作用的空间尺度：带宽越小，过程越局部化，而非常大的带宽可能表明全局过程或多重共线性。<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup>

GWR和MGWR均可被表述为广义加性模型，其中每个协变量的平滑项由地理核定义。<sup>[7](https://onlinelibrary.wiley.com/doi/10.1111/gean.12189)</sup> 这种表述之所以重要，是因为它允许每个关系局部变化、区域变化或完全不变化，这减少了过拟合，降低了参数估计的偏差，并相对于单带宽GWR减轻了共曲性。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup>

## 实现方法

校准使用借自GAM拟合的回拟合算法：一系列单变量GWR模型在前一次迭代的偏残差上依次校准，直到整个模型收敛。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup> 每个协变量的带宽通过模型选择评分来选择，通常是校正赤池信息准则，通过黄金分割搜索找到，该搜索逐步缩小包含最优值的范围。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup><sup> • </sup><sup>[8](https://gistbok-ltb.ucgis.org/current/concept/AM-03-034)</sup> GWR的AICc惩罚小带宽，因为小带宽通过更大的有效参数个数消耗自由度：

\[ \mathrm{AICc} = 2n \log_{e}(\mathrm{RSS}/n) + n \log_{e}(2\pi) + \frac{n(n + \mathrm{tr}(S))}{n - 2 - \mathrm{tr}(S)} \]

其中 \( n \) 是观测数，\( S \) 是帽子矩阵。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup> 实践者应标准化取值范围差异很大的变量，以便带宽作为尺度指标可直接比较。<sup>[5](https://sgsup.asu.edu/sites/g/files/litvpz426/files/SparcFiles/mgwr_1.0_manual_final.pdf)</sup><sup> • </sup><sup>[2](https://doc.esri.com/en/arcgis-pro/latest/tool-reference/spatial-statistics/multiscale-geographically-weighted-regression.html)</sup>

推断基于帽子矩阵，它将观测值映射到拟合值，并分解为协变量特定的贡献 \( R_{j} \)。这为每个系数曲面产生不同的有效参数个数，为局部参数产生标准误，以及协变量特定的校正假设检验。<sup>[7](https://onlinelibrary.wiley.com/doi/10.1111/gean.12189)</sup> 因为距离加权使局部子样本相关，局部t检验针对相互依赖的多重假设检验进行调整，而不是与名义 \( \alpha = 0.05 \) 比较。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup> 空间变异性的蒙特卡洛检验和带宽估计的95%置信区间也可用。<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup>

## 起源

MGWR由A·斯图尔特·福瑟林厄姆、杨文白和康威于2017年在《美国地理学家协会会刊》上提出。<sup>[4](https://doi.org/10.1080/24694452.2017.1352480)</sup> 该论文推导了最优带宽向量，通过回拟合进行校准，并在两个具有已知特性的模拟数据集和一个关于爱尔兰饥荒（Irish famine）的实证数据集上，相对于GWR验证了该框架，表明MGWR能更好地复现具有不同空间异质性水平的参数曲面，并揭示不同过程起作用的尺度。<sup>[9](https://ideas.repec.org/a/taf/raagxx/v107y2017i6p1247-1265.html)</sup> 该方法建立在早期灵活带宽GWR方法之上，这些方法使用Jacobi迭代或回拟合允许每个变量有不同的最优带宽；2017年的论文将它们整合为MGWR框架。<sup>[10](https://link.springer.com/article/10.1007/s10109-025-00481-4)</sup> 一个相关的谱系是地理和时间加权回归，由黄波（Bo Huang）、吴波（Bo Wu）和迈克尔·巴里（Michael Barry）于2010年提出，用于建模房价的时空变异。<sup>[11](https://doi.org/10.1080/13658810802672469)</sup>

## 变体

由泰勒·奥尚（Taylor Oshan）、李子琪（Ziqi Li）、康威、利瓦伊·沃尔夫（Levi Wolf）和A·福瑟林厄姆（2019）撰文介绍的mgwr Python包，通过GAM迭代回拟合和并行计算实现高斯MGWR，提供协变量特定推断（包括多重假设检验校正和局部共线性诊断）以及带宽置信区间；它通过spglm包支持泊松和二项逻辑斯蒂族。<sup>[1](https://doi.org/10.3390/ijgi8060269)</sup><sup> • </sup><sup>[12](https://github.com/pysal/mgwr/)</sup> MGWR 1.0于2018年11月发布，可拟合高斯、二项和泊松GWR，但仅对高斯模型支持MGWR。<sup>[7](https://onlinelibrary.wiley.com/doi/10.1111/gean.12189)</sup><sup> • </sup><sup>[5](https://sgsup.asu.edu/sites/g/files/litvpz426/files/SparcFiles/mgwr_1.0_manual_final.pdf)</sup> ArcGIS Pro将MGWR实现为局部回归工具，具有黄金搜索和梯度搜索邻域选择方法，后者对带宽求AICc的导数。<sup>[2](https://doc.esri.com/en/arcgis-pro/latest/tool-reference/spatial-statistics/multiscale-geographically-weighted-regression.html)</sup> R用户有GWmodel，适用于约2,500个观测以下、少于6个解释变量的数据集，以及mgwrsar包，后者以后向拟合和基于AICc的带宽优化改编了2017年的方法。<sup>[10](https://link.springer.com/article/10.1007/s10109-025-00481-4)</sup><sup> • </sup><sup>[13](https://search.r-project.org/CRAN/refmans/mgwrsar/html/multiscale_gwr.html)</sup>

扩展包括用于计数数据的多尺度地理加权泊松回归（MGWPR），这类数据是原始仅支持高斯模型的MGWR无法处理的；一种带非迭代局部线性估计量的时空多尺度GTWR（MGTWR-LL），相对于回拟合将计算量减少三分之二；MGWR-LL，将系数建模为空间变化的线性函数；基于梯度的MGWR估计，使用AICc的信赖域优化；以及可扩展GWR，无需并行化即可校准最多100万观测的模型。<sup>[14](https://par.nsf.gov/servlets/purl/10540186)</sup><sup> • </sup><sup>[15](https://www.mdpi.com/2227-7390/13/9/1446)</sup> 一种自顶向下算法tds_mgwr，通过避免每次回拟合步骤的完全重新优化，高效处理多达50,000个观测和20个协变量。<sup>[10](https://link.springer.com/article/10.1007/s10109-025-00481-4)</sup>

## 应用

首次提出该方法的论文将MGWR应用于爱尔兰饥荒数据以及模拟基准。<sup>[9](https://ideas.repec.org/a/taf/raagxx/v107y2017i6p1247-1265.html)</sup> 泊松变体在纽约市（New York City）邮政编码级别的COVID-19病例数上进行了演示，揭示了社会生态因素与病例数之间关系的空间变异，这是全局模型所遗漏的。<sup>[14](https://par.nsf.gov/servlets/purl/10540186)</sup> 福瑟林厄姆、奥尚和李的劳特利奇出版社（Routledge）专著涵盖了理论、推断、软件以及在2020年美国大选投票行为中的应用。<sup>[16](https://www.routledge.com/Multiscale-Geographically-Weighted-Regression-Theory-and-Practice/Fotheringham-Oshan-Li/p/book/9781032564234)</sup>

## 局限与替代方法

计算是主要的实际约束。在并行化之前，校准在5,000个观测以上时慢得令人却步，一台16 GB的台式机在超过15,000个位置和超过5个协变量时会失败；爱尔兰饥荒校准耗时51小时，通过改进方法降至约6分钟，大约快了500倍。<sup>[6](https://doi.org/10.1080/13658816.2020.1720692)</sup> 使用MGWR 2.0，接近20,000个观测的模型可在一天内于4处理器、16 GB台式机上校准，多达100,000个观测可在工作站上校准，<sup>[6](https://doi.org/10.1080/13658816.2020.1720692)</sup> 尽管标准mgwr回拟合实现被描述为可在合理时间内处理约10,000个观测和十二个协变量。<sup>[10](https://link.springer.com/article/10.1007/s10109-025-00481-4)</sup>

相对于单尺度GWR的预测增益在真实数据上通常不大，样本外RMSE降低低于4%，而在合成数据上增益可高达50%；对于小样本，GWR优于多尺度估计量，而变量特定带宽在中到大样本量时通常表现更好。<sup>[10](https://link.springer.com/article/10.1007/s10109-025-00481-4)</sup> 诊断需要谨慎：高空间自相关与共线性结合可能低估近全局过程的带宽，产生虚假的局部效应，而强共线性可能高估带宽并掩盖真实的局部效应，因此非常大的带宽可能表明全局过程或多重共线性。<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup> MGWR确实相对于GWR减轻了局部多重共线性，通常产生更少的估计误差，并且在极端水平之前几乎没有局部共线性。<sup>[3](https://link.springer.com/article/10.1007/s10109-025-00468-1)</sup> 在空间变化系数替代方案中，比较工作考察了固定或自适应带宽GWR、灵活带宽GWR、特征向量空间滤波和随机效应ESF，将MGWR定位为几种局部估计量之一，而非它们的替代品。<sup>[17](https://ideas.repec.org/a/taf/raagxx/v109y2019i1p50-70.html)</sup>

## References

1. [Taylor Oshan and colleagues (2019). mgwr: A Python Implementation of Multiscale Geographically Weighted Regression for Investigating Process Spatial Heterogeneity and Scale. ISPRS International Journal of Geo-Information.](https://doi.org/10.3390/ijgi8060269)
2. [Multiscale Geographically Weighted Regression (MGWR) (Spatial Statistics Tools) | ArcGIS Pro documentation](https://doc.esri.com/en/arcgis-pro/latest/tool-reference/spatial-statistics/multiscale-geographically-weighted-regression.html)
3. [Scale and correlation in multiscale geographically weighted regression (MGWR) | Journal of Geographical Systems](https://link.springer.com/article/10.1007/s10109-025-00468-1)
4. [A. Stewart Fotheringham, Wenbai Yang, Wei Kang (2017). Multiscale Geographically Weighted Regression (MGWR). Annals of the American Association of Geographers.](https://doi.org/10.1080/24694452.2017.1352480)
5. [MGWR 1.0 User Manual (GWR4 software)](https://sgsup.asu.edu/sites/g/files/litvpz426/files/SparcFiles/mgwr_1.0_manual_final.pdf)
6. [Ziqi Li, A. Stewart Fotheringham (2020). Computational improvements to multi-scale geographically weighted regression. International Journal of Geographical Information Systems.](https://doi.org/10.1080/13658816.2020.1720692)
7. [Inference in Multiscale Geographically Weighted Regression (Geographical Analysis)](https://onlinelibrary.wiley.com/doi/10.1111/gean.12189)
8. [UCGIS GIS&T BoK | [AM-03-034] The Geographically Weighted Regression Framework](https://gistbok-ltb.ucgis.org/current/concept/AM-03-034)
9. [Multiscale Geographically Weighted Regression (MGWR), Annals of the American Association of Geographers, 2017](https://ideas.repec.org/a/taf/raagxx/v107y2017i6p1247-1265.html)
10. [Top-down scale approaches for multiscale GWR with locally adaptive bandwidths (Journal of Geographical Systems, 2025)](https://link.springer.com/article/10.1007/s10109-025-00481-4)
11. [Bo Huang, Bo Wu, Michael Barry (2010). Geographically and temporally weighted regression for modeling spatio-temporal variation in house prices. International Journal of Geographical Information Systems.](https://doi.org/10.1080/13658810802672469)
12. [pysal/mgwr (GitHub repository)](https://github.com/pysal/mgwr/)
13. [R mgwrsar package: multiscale_gwr function](https://search.r-project.org/CRAN/refmans/mgwrsar/html/multiscale_gwr.html)
14. [On the local modeling of count data: multiscale geographically weighted Poisson regression](https://par.nsf.gov/servlets/purl/10540186)
15. [Non-Iterative Estimation of Multiscale Geographically and Temporally Weighted Regression Model (Mathematics, 2025)](https://www.mdpi.com/2227-7390/13/9/1446)
16. [Multiscale Geographically Weighted Regression: Theory and Practice (Routledge book by Fotheringham, Oshan & Li)](https://www.routledge.com/Multiscale-Geographically-Weighted-Regression-Theory-and-Practice/Fotheringham-Oshan-Li/p/book/9781032564234)
17. [The Importance of Scale in Spatially Varying Coefficient Modeling (Annals of the AAG, 2019)](https://ideas.repec.org/a/taf/raagxx/v109y2019i1p50-70.html)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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/multiscale-geographically-weighted-regression

English original: https://www.edgepedia.org/multiscale-geographically-weighted-regression
