# 通用克里金

**通用克里金**（Universal kriging，UK），又称带趋势克里金或带漂移克里金，是一种地统计插值方法，它将空间变量建模为确定性趋势（即漂移）与空间相关随机残差之和。它推广了普通克里金——后者假定均值恒定但未知——通过让均值随位置或辅助协变量变化。乔治·马特隆于 1969 年提出该方法，用以处理呈现趋势的现象，例如远离海岸线逐渐加深的海底、具有整体梯度的含水层，或穹顶状石油储层顶部。<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 在恒定均值假设成为趋势性现象的局限之后，马特隆（1969）将普通克里金推广到具有多项式漂移的随机函数<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup> |
| 模型 | Z(x) = m(x) + e(x)，即确定性漂移 m(x) 加上零均值、空间相关的残差 e(x)<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup> |
| 均值假设 | 均值在不同位置之间呈确定性差异（空间趋势），而方差在整个场中保持恒定（弱平稳性）<sup>[2](https://www.publichealth.columbia.edu/research/population-health-methods/kriging-interpolation)</sup> |
| 无偏性 | 由于漂移系数未知，无偏性通过对克里金权重的 L + 1 个约束来强制实现，每个漂移项对应一个约束<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup> |
| 变差函数实践 | 变差函数应在去除漂移后的残差上拟合，而非在原始数据上拟合；在原始数据上拟合是一种常见且后果严重的错误<sup>[3](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/ordinary-vs-universal-kriging-which-to-use/)</sup> |
| 与回归克里金的关系 | 当趋势对其系数为线性且两者使用相同的协方差模型时，通用克里金与回归克里金的预测完全相同<sup>[4](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/regression-kriging/regression-kriging-vs-universal-kriging/)</sup> |
| 典型应用领域 | 高程驱动的气候制图、点源羽流、水文学、空气质量、土壤属性<sup>[3](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/ordinary-vs-universal-kriging-which-to-use/)</sup><sup> • </sup><sup>[5](https://pubs.usgs.gov/wri/1998/4145/report.pdf)</sup> |

## 模型

在区域化变量理论下，一个单值、连续、可成图的属性被视为由两部分组成：漂移（即期望值）和残差（即对漂移的偏离）。若去除漂移，残差曲面在统计意义上可视为一阶平稳的。<sup>[6](https://www.kgs.ku.edu/Tis/surf3/s3krig1.html)</sup> 马特隆将漂移建模为多项式

\[ m(x) = \sum_{\ell = 0}^{L} a_{\ell} f^{\ell}(x) \]

其中 \( a_{\ell} \) 为未知系数，\( f^{\ell}(x) \) 为次数不超过选定阶数 k 的 L + 1 个单项式；在一维情形下 \( f^{\ell}(x) = x^{\ell} \)。<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup> 实践中漂移通常为 1 阶、2 阶或 3 阶多项式，最佳多项式系数通过类似于简单克里金所用的拉格朗日方法获得。<sup>[7](https://academic.oup.com/book/41050/chapter-abstract/349371067)</sup> 二维情形下的线性漂移形式为 m(x) = α₀ + α₁x + α₂y，其中 α 值为漂移系数。<sup>[8](https://knowledge.uchicago.edu/record/417/files/SantosVega_uchicago_0330D_14481.pdf)</sup>

估计量仍然是数据的线性组合，\( Z^{*} = \sum_{\alpha} \lambda_{\alpha} Z_{\alpha} \)，但由于漂移系数未知，无偏性仅在权重满足 L + 1 个约束、每个漂移项对应一个约束的条件下成立。<sup>[1](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)</sup> 由此得到的通用克里金方程组是普通克里金系统的增广版本；方法本身仅需对该系统进行增广。<sup>[9](https://doi.org/10.17159%2F2411-9717%2F2015%2Fv115n2a12)</sup> 预测器也可以写成漂移系数的广义最小二乘估计与残差的简单克里金相结合的形式，斯坦（1999）证明该表述与伯吉斯和韦伯斯特（1980）的通用克里金预测器完全一致。<sup>[10](https://babailey.sdsu.edu/stat696/soilph.pdf)</sup>

## 何时使用

普通克里金与通用克里金之间的选择取决于是否存在系统性的大尺度趋势。趋势是指测量值随坐标变量或其他解释变量而变化的任何可检测倾向；例如地下水位可能沿某一方向持续升高。当不存在空间趋势时适用普通克里金；当存在趋势时，应考虑通用克里金，并将趋势表示为例如坐标的线性函数。<sup>[5](https://pubs.usgs.gov/wri/1998/4145/report.pdf)</sup> 一个实用的决策规则是通过将目标变量对坐标或协变量进行回归来检验趋势：若漂移显著，则用通用克里金建模；否则普通克里金更简单且同样有效。<sup>[3](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/ordinary-vs-universal-kriging-which-to-use/)</sup>

**错误选择的代价。** 对具有真实趋势的数据拟合普通克里金会使变差函数没有基台值，使权重行为异常，并在关注区域产生有偏预测。对无趋势数据拟合通用克里金则会引入漂移参数，导致过拟合并增大方差。<sup>[3](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/ordinary-vs-universal-kriging-which-to-use/)</sup> 另一个困难在于，仅凭数据无法判断观测到的格局是源于残差间的自相关还是源于趋势；这对普通克里金和通用克里金的多项式回归漂移同样成立。<sup>[11](https://pubs.usgs.gov/sir/2006/5129/pdf/SIR06-5129_508.pdf)</sup>

## 残差变差函数问题

核心实践困难在于估计随机分量的变差函数。所需要的是去漂移后残差的变差函数，但在漂移被正确识别之前，残差是无法得知的。<sup>[9](https://doi.org/10.17159%2F2411-9717%2F2015%2Fv115n2a12)</sup> 韦伯斯特和伯吉斯（1980）认识到了这一循环性，为了在一个密集网格化的考古遗址上绘制土壤电阻率图，他们编写了奥莱亚（1975）提出的算法。<sup>[9](https://doi.org/10.17159%2F2411-9717%2F2015%2Fv115n2a12)</sup> 奥莱亚 1975 年的堪萨斯地质调查局报告描述了用于计算机制图的通用克里金和漂移估计，以 FORTRAN IV 模块形式实现在 SURFACE II 图形系统中，并指出在区域化变量理论的假设下，估计值是无偏的且具有最小估计方差，同时每个点都附带估计误差的方差。<sup>[12](https://www.kgs.ku.edu/Publications/Bulletins/SpA2/index.html)</sup>

一个相关的陷阱涉及软件默认设置。PyKrige 的 `UniversalKriging` 在去除任何漂移之前，从传入的原始值估计实验变差函数；推荐的修正方法是单独拟合残差模型，并在使用漂移项时传入 `variogram_parameters`。标准化残差提供了一种检验手段：标准差接近 1 表明所报告的克里金方差合理地解释了实际误差，而高于约 1.3 的值表明方差过于乐观，通常是因为残差变差函数是在仍含趋势的场上拟合的。<sup>[13](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/universal-kriging-with-external-drift-in-pykrige/)</sup> 限制最大似然提供了一种替代方案，可与漂移联合估计变差函数，避免基本最大似然技术的偏差。<sup>[9](https://doi.org/10.17159%2F2411-9717%2F2015%2Fv115n2a12)</sup>

## 变体与相关方法

**外部漂移。** 当趋势由在采样点和预测点均有测量的协变量定义时——例如温度用高程、污染物浓度用距河流的距离——该方法被称为带外部漂移克里金。在默兹河洪泛平原的示例中，对数锌浓度对距河流距离的平方根进行回归，\( \log(\mathrm{zinc}) = 7 - 2.55\sqrt{\mathrm{dist}} \)，减去趋势后对残差进行克里金插值；与简单克里金相比，预测方差大幅降低。<sup>[14](https://www.massey.ac.nz/~jcmarsha/233214/notes/week12_universal_kriging.html)</sup> PyKrige 通过 `external_drift` 和 `specified_drift` 参数支持外部漂移，GSTools 则将两种概念分开，为通用克里金提供函数漂移，为去趋势或回归克里金提供可调用趋势。<sup>[15](https://geostat-framework.readthedocs.io/projects/pykrige/en/stable/generated/pykrige.uk.UniversalKriging.html)</sup><sup> • </sup><sup>[16](https://geostat-framework.readthedocs.io/projects/gstools/en/latest/api/gstools.krige.Universal.html)</sup>

**与回归克里金的关系。** 当趋势对其系数为线性且两种方法使用相同的协方差模型时，通用克里金与回归克里金给出相同的预测。在此情形下通用克里金更受青睐，因为单一系统即可给出已考虑趋势系数未知性的预测方差，无需在各步骤之间进行记录协调。<sup>[4](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/regression-kriging/regression-kriging-vs-universal-kriging/)</sup>

**弱平稳数据。** 将通用克里金应用于弱平稳数据存在三方面困难：弱平稳数据的变差函数难以估计，漂移阶数必须建模，且方程解与简单克里金或普通克里金不同。<sup>[17](https://www.sciencedirect.com/science/article/pii/009830049090129H)</sup>

## 实证表现

比较研究表明，该方法的收益取决于漂移是否真实且被良好设定。在一项切萨皮克湾研究中，比较了反距离加权、普通克里金和结合基于过程的水质模型输出的通用克里金，克里金方法在所有参数和深度上普遍优于反距离加权，而通过通用克里金纳入模型输出通过考虑河口的物理和生物地球化学特征改善了一些插值结果。<sup>[18](https://pure.johnshopkins.edu/en/publications/comparison-of-spatial-interpolation-methods-for-water-quality-eva-4/)</sup> 相比之下，在空气污染制图中，所报告的对比中通用克里金并未相对于普通克里金改善预测。<sup>[19](https://www.isprs.org/proceedings/XXXVII/congress/2_pdf/2_WG-II-2/26.pdf)</sup> 对于维也纳的房地产价格制图，去趋势克里金和通用克里金显示出几乎相同的交叉验证精度，因此在单变量样本中两者均可使用。<sup>[20](https://research-portal.uu.nl/en/publications/geostatistical-mapping-of-real-estate-prices-an-empirical-compari)</sup> 在一项将通用克里金与土地利用回归相结合的国家级二氧化氮模型中，加入卫星变量仅在采样良好的区域略微改善预测，但对远离监测点的位置则大幅改善预测。<sup>[21](https://experts.umn.edu/en/publications/satellite-based-nosub2sub-and-model-validation-in-a-national-pred/)</sup>

通用克里金也服务于地球制图之外的领域。在高效全局优化（EGO）中，具有自动趋势选择的通用克里金代理模型在某些变体下被发现全局精度不如普通克里金，但仍能识别更好的优化解，因为趋势函数帮助优化器定位全局最优。<sup>[22](https://arxiv.org/abs/1803.08667)</sup>

## 软件

实现包括 PyKrige 的 `UniversalKriging` 类，用于带漂移项的二维克里金（区域线性、点漂移、外部、指定和函数漂移），变差函数模型包括线性、幂、高斯、球状、指数和孔洞效应，默认为线性。<sup>[15](https://geostat-framework.readthedocs.io/projects/pykrige/en/stable/generated/pykrige.uk.UniversalKriging.html)</sup> GSTools 提供了一个 `Universal` 克里金类，默认无偏，即克里金权重之和为 1，同时还提供简单、普通和外部漂移克里金。<sup>[16](https://geostat-framework.readthedocs.io/projects/gstools/en/latest/api/gstools.krige.Universal.html)</sup> 在 R 中，gstat 包支持普通、通用和块克里金等形式。<sup>[2](https://www.publichealth.columbia.edu/research/population-health-methods/kriging-interpolation)</sup> 美国地质调查局的地球化学制图指南将通用克里金描述为允许弱平稳条件，其中均值和方差可随位置规律变化，趋势函数被加入由半变差函数拟合的误差模型以生成最终网格。<sup>[23](https://pubs.usgs.gov/of/2004/1026/geochem_4.htm)</sup>

## References

1. [Chilès, J.-P., & Desassis, N. (2018). Fifty Years of Kriging. Springer, open access.](https://link.springer.com/chapter/10.1007/978-3-319-78999-6_29)
2. [Kriging Interpolation Explanation, Columbia University Mailman School of Public Health](https://www.publichealth.columbia.edu/research/population-health-methods/kriging-interpolation)
3. [Ordinary vs Universal Kriging: Which to Use, Geostatistical Modeling](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/ordinary-vs-universal-kriging-which-to-use/)
4. [Regression Kriging vs Universal Kriging, Geostatistical Modeling](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/regression-kriging/regression-kriging-vs-universal-kriging/)
5. [Universal Kriging, USGS Water-Resources Investigations Report 98-4145](https://pubs.usgs.gov/wri/1998/4145/report.pdf)
6. [Kriging with Surface III, Kansas Geological Survey](https://www.kgs.ku.edu/Tis/surf3/s3krig1.html)
7. [Universal kriging, in Matheron's Theory of Regionalised Variables, Oxford Academic (2019)](https://academic.oup.com/book/41050/chapter-abstract/349371067)
8. [Santos Vega, dissertation, University of Chicago](https://knowledge.uchicago.edu/record/417/files/SantosVega_uchicago_0330D_14481.pdf)
9. [Technological developments for spatial prediction of soil properties, and Danie Krige's influence on it, Journal of the Southern African Institute of Mining and Metallurgy (2015)](https://doi.org/10.17159%2F2411-9717%2F2015%2Fv115n2a12)
10. [Soil pH geostatistics paper, Geoderma (2007), San Diego State University mirror](https://babailey.sdsu.edu/stat696/soilph.pdf)
11. [USGS Scientific Investigations Report 2006-5129](https://pubs.usgs.gov/sir/2006/5129/pdf/SIR06-5129_508.pdf)
12. [Olea, R. A. (1975). Optimum Mapping Techniques Using Regionalized Variable Theory, Kansas Geological Survey Spatial Analysis Series 2](https://www.kgs.ku.edu/Publications/Bulletins/SpA2/index.html)
13. [Universal Kriging with External Drift in PyKrige, Geostatistical Modeling](https://www.geostatistical-modeling.com/kriging-interpolation-surface-generation-techniques/ordinary-universal-kriging/universal-kriging-with-external-drift-in-pykrige/)
14. [Universal Kriging for spatial interpolation, Massey University course notes](https://www.massey.ac.nz/~jcmarsha/233214/notes/week12_universal_kriging.html)
15. [pykrige.uk.UniversalKriging, PyKrige 1.7.3 documentation](https://geostat-framework.readthedocs.io/projects/pykrige/en/stable/generated/pykrige.uk.UniversalKriging.html)
16. [gstools.krige.Universal, GSTools documentation](https://geostat-framework.readthedocs.io/projects/gstools/en/latest/api/gstools.krige.Universal.html)
17. [UVKRIG: A FORTRAN-77 program for universal kriging, Computers & Geosciences](https://www.sciencedirect.com/science/article/pii/009830049090129H)
18. [Murphy, R. R., Curriero, F. C., & Ball, W. P. (2010). Comparison of spatial interpolation methods for water quality evaluation in the Chesapeake Bay, Journal of Environmental Engineering 136(2), 160-171](https://pure.johnshopkins.edu/en/publications/comparison-of-spatial-interpolation-methods-for-water-quality-eva-4/)
19. [Evaluation of optimum methods for predicting pollution, ISPRS Congress XXXVII proceedings](https://www.isprs.org/proceedings/XXXVII/congress/2_pdf/2_WG-II-2/26.pdf)
20. [Kuntz, M., & Helbich, M. (2014). Geostatistical mapping of real estate prices, International Journal of Geographical Information Science 29, 1904-1921](https://research-portal.uu.nl/en/publications/geostatistical-mapping-of-real-estate-prices-an-empirical-compari)
21. [Satellite-Based NO2 and Model Validation in a National Prediction Model Based on Universal Kriging and Land-Use Regression, University of Minnesota](https://experts.umn.edu/en/publications/satellite-based-nosub2sub-and-model-validation-in-a-national-pred/)
22. [On efficient global optimization via universal Kriging surrogate models, arXiv:1803.08667](https://arxiv.org/abs/1803.08667)
23. [USGS Open-File Report 2004-1026, geochemical mapping section](https://pubs.usgs.gov/of/2004/1026/geochem_4.htm)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Applied, official, and domain statistics › Spatial statistics and geostatistics › Geostatistics and kriging

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/universal-kriging

English original: https://www.edgepedia.org/universal-kriging
