# 时空聚集性

时空聚集性是一类统计检验，用于判断诸如疾病病例之类的事件在空间和时间上同时彼此接近的频率是否高于随机预测。全局时空交互检验，例如Knox检验，在排除纯粹空间或纯粹时间聚集的影响后，评估在空间上彼此接近的病例是否在时间上也彼此接近；它产生一个检验统计量和p值，而不是特定聚集区域的地图。<sup>[1](http://cdemat.free.fr/iurc/demattei/satscan.7.0/SaTScan_Users_Guide.pdf)</sup> 当问题是判断某种疾病是否表现得如同具有传染性时，全局交互检验是首选方法。<sup>[1](http://cdemat.free.fr/iurc/demattei/satscan.7.0/SaTScan_Users_Guide.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心统计量 | Knox统计量计数在空间和时间上同时接近的病例对<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)</sup> |
| 奠基论文 | E. G. Knox和M. S. Bartlett，《时空交互的检测》，Journal of the Royal Statistical Society Series C，13(1)，第25-29页，1964年3月<sup>[3](https://doi.org/10.2307/2985220)</sup> |
| 经典案例 | 96例儿童白血病病例，4,560个病例对，期望的双重接近对数为0.83，实际观察到5对，判定为高度显著<sup>[4](http://www.stat.ucla.edu/~nchristo/statistics_c173_c273/mantel_nathan_paper.pdf)</sup> |
| 显著性评估 | 蒙特卡洛置换（数千次置换）或当接近对比例较小时使用泊松近似<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3000054/)</sup><sup> • </sup><sup>[6](https://search.r-project.org/CRAN/refmans/surveillance/html/knox.html)</sup> |
| 主要局限 | 无法定位聚集区域；对临界距离的任意选择及人口变动敏感<sup>[1](http://cdemat.free.fr/iurc/demattei/satscan.7.0/SaTScan_Users_Guide.pdf)</sup><sup> • </sup><sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup> |
| 数据输入 | 地理编码的病例位置和事件时间；Knox检验不需要风险人口数据<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)</sup> |

## 工作原理

零假设为不存在时空交互：空间上的接近与时间上的接近相互独立，因此空间和时间上同时接近的病例对数量等于纯粹空间聚集和纯粹时间聚集共同作用所产生的数量。Knox统计量通过配对计数将“比预期更接近”形式化。对于每一对事件 (i, j)，定义两个虚拟指示变量，\( \sigma_{ij} = I[s_i, s_j \text{ 在空间上接近}] \) 和 \( \tau_{ij} = I[t_i, t_j \text{ 在时间上接近}] \)，统计量 \( X \) 计数两个指示变量均等于1的病例对。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3000054/)</sup>

在零假设下，\( X \) 的参考分布通过对病例的时间或空间标签在所有 \( n! \) 种观测时间与地点的配对上进行置换来生成；实践中使用数千次随机置换的蒙特卡洛估计，计算方式是Knox统计量至少与观测值 \( X \) 一样大的抽样置换图的比例。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3000054/)</sup> 较小的p值意味着 \( X \) 相对于该图的空间和时间聚集水平异常偏高，这是事件率中存在时空交互的证据。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3000054/)</sup>

## 操作步骤

研究者需要地理编码的病例位置和事件时间；Knox检验不需要了解底层人口或疾病率，这就是为什么配对距离方法要构成 \( n \) 个病例的所有 \( n(n-1)/2 \) 个配对。<sup>[4](http://www.stat.ucla.edu/~nchristo/statistics_c173_c273/mantel_nathan_paper.pdf)</sup> 步骤如下：

1. 整理包含坐标和时间的病例档案。
2. 选择临界空间距离 \( \alpha \) 和临界时间距离 \( \beta \)；距离小于或等于临界值的计为“接近”。<sup>[6](https://search.r-project.org/CRAN/refmans/surveillance/html/knox.html)</sup><sup> • </sup><sup>[8](https://www.mdpi.com/2220-9964/8/3/112)</sup>
3. 将 \( N = n(n-1)/2 \) 个配对逐一分类为仅空间接近、仅时间接近、双重接近或双重远离，构成2 × 2列联表。<sup>[9](https://digitalcommons.wayne.edu/cgi/viewcontent.cgi?article=1277&context=jmasm)</sup>
4. 通过泊松近似（当时间和空间上接近对的比例均较小时效果良好）或蒙特卡洛置换（其他情况下推荐使用）来评估显著性。<sup>[6](https://search.r-project.org/CRAN/refmans/surveillance/html/knox.html)</sup>
5. 将p值解释为支持或反对时空交互的证据，同时记住该检验对聚集区域的位置不提供任何信息。

在Knox的白血病案例中，4,560个配对中有152对在时间上接近（59天以内），25对在空间上接近（1公里以内），双重接近对的期望计数为 \( 152 \times 25 / 4{,}560 = 0.83 \)；观察到的5对接近对被判定为高度显著。<sup>[4](http://www.stat.ucla.edu/~nchristo/statistics_c173_c273/mantel_nathan_paper.pdf)</sup>

## 起源

George Knox于1964年提出了首个时空聚集性统计检验，并将其应用于儿童白血病；与M. S. Bartlett合著的论文发表于Journal of the Royal Statistical Society Series C (Applied Statistics)，13(1)，第25-29页，1964年3月。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)</sup><sup> • </sup><sup>[3](https://doi.org/10.2307/2985220)</sup> Mantel于1967年在Cancer Research上发表的论文综述了Knox的列联表方法和一种用于疾病聚集性的广义回归方法。<sup>[4](http://www.stat.ucla.edu/~nchristo/statistics_c173_c273/mantel_nathan_paper.pdf)</sup> Diggle及其同事于1995年在Statistical Methods in Medical Research上发表了一种重新解释Knox检验的二阶（K函数）分析。<sup>[10](https://doi.org/10.1177/096228029500400203)</sup> 用于评估聚集警报的时空扫描统计量由Kulldorff及其同事于1998年在American Journal of Public Health上发表。<sup>[11](https://doi.org/10.2105/ajph.88.9.1377)</sup>

## 变体

主要检验方法的区别在于如何度量病例对之间的邻近程度<sup>[12](https://link.springer.com/article/10.1186/1476-072X-6-35)</sup>：

- **Knox检验。** 邻接关系：在固定的空间和时间临界距离下，配对分为接近或远离。<sup>[12](https://link.springer.com/article/10.1186/1476-072X-6-35)</sup>
- **Mantel检验。** 所有配对之间的空间距离和时间距离；统计量将所有配对的时间距离与空间距离的乘积求和，Mantel建议使用倒数变换 \( d' = 1/(C + d) \) 以减少大距离的影响，并采用蒙特卡洛置换显著性检验。<sup>[13](https://wenlab501.github.io/GEOG2017/WEN/14.pdf)</sup><sup> • </sup><sup>[6](https://search.r-project.org/CRAN/refmans/surveillance/html/knox.html)</sup>
- **Jacquez k最近邻检验。** 使用最近邻关系而非距离：统计量 \( J_k \) 计数在空间和时间上同时为k最近邻的病例对，在存在交互时取值较大，零假设为时间上的最近邻关系与空间最近邻关系独立，通过随机化评估。<sup>[14](https://www.nku.edu/~longa/geomed/stats/k-NN/ex.html)</sup> 它避免了临界距离的主观选择。<sup>[14](https://www.nku.edu/~longa/geomed/stats/k-NN/ex.html)</sup>
- **Diggle的K函数方法。** 时空K函数 \( K(s,t) \) 是经过强度调整的、在典型事件的空间距离 \( s \) 和时间间隔 \( t \) 内其他事件数的期望值；在无交互条件下，\( K(s,t) \) 等于纯粹空间K函数与纯粹时间K函数的乘积，差值 \( D(s,t) = K(s,t) - K(s) \cdot K(t) \) 在空间和时间存在交互处为正。它将交互估计为间隔的函数，而非在单一阈值处。<sup>[10](https://doi.org/10.1177/096228029500400203)</sup><sup> • </sup><sup>[15](https://eugenegis.github.io/AGDAbook/spatio-temporal-cluster-analysis-of-geoenvironmental-processes.html)</sup>
- **时空扫描统计量。** 使用圆柱形搜索区域和蒙特卡洛p值；统计量 \( S \) 是在以观测到的病例总数为条件的情况下，所有可能圆柱体 \( Z \) 上的最大似然比。<sup>[16](https://www.cdc.gov/MMWR/preview/mmwrhtml/su5301a28.htm)</sup>

一种改良的Knox统计量——即双重接近对超出无时空交互零假设下期望数的超额数量——被认为比原始统计量更有功效，因为其统计量不存在严重的并列值问题。<sup>[17](https://ideas.repec.org/a/taf/japsta/v31y2004i4p457-463.html)</sup>

## 应用

时空交互检验用于传染病流行病学（阳性结果提示传播）以及局部致癌暴露调查（在相近时间发生的邻近病例可能指示共同的环境病因）。<sup>[12](https://link.springer.com/article/10.1186/1476-072X-6-35)</sup> 考虑居住流动性、癌症潜伏期、危险因素和协变量的扩展方法已应用于密歇根州东南部的膀胱癌研究，其动机在于美国人平均每5至7年搬家一次，因此诊断时很少有病例居住在致病暴露发生的地点。<sup>[12](https://link.springer.com/article/10.1186/1476-072X-6-35)</sup>

## 局限性与替代方法

Knox检验的主要缺陷在于空间和时间上“接近”的定义是任意的，临界距离可能被主观设定。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup><sup> • </sup><sup>[8](https://www.mdpi.com/2220-9964/8/3/112)</sup> Mantel检验通过对所有可能的时空配对求和来解决这一问题，但其假设的距离衰减形式可能不适用于非传染性疾病，且对传染条件下预期的非线性关联不敏感。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup><sup> • </sup><sup>[14](https://www.nku.edu/~longa/geomed/stats/k-NN/ex.html)</sup>

由于Knox检验仅使用病例数据，它容易受到研究期间人口迁移的影响；当不同地区的人口增长率不同时，这种人口变动偏倚可能是一个相当大的问题，对此已提出了一种蒙特卡洛调整方法。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)</sup><sup> • </sup><sup>[18](https://onlinelibrary.wiley.com/doi/10.1111/j.0006-341X.1999.00544.x)</sup>

交互检验是单变量的，仅适用于单一疾病，只报告交互的存在或缺失，不提供空间或时间趋势或背景异质性的信息，且需要地理编码的逐个事件数据，因此不适用于汇总数据。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup> 它们检验整个研究区域内的聚集性，但无法准确确定特定聚集区域的位置和大小，也无法检验这些聚集区域的显著性。<sup>[1](http://cdemat.free.fr/iurc/demattei/satscan.7.0/SaTScan_Users_Guide.pdf)</sup> 扫描统计量填补了这一角色：纯粹空间扫描统计量在圆形搜索区域上最大化似然比并进行蒙特卡洛显著性检验，其时空扩展使用圆柱形搜索区域，前瞻性分析仅限于在当前时间结束的“存活”聚集。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup> 扫描统计量自身的局限在于其期望值以对底层风险人口的准确表示为条件，而这些数据可能难以获得。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)</sup>

## References

1. [SaTScan User Guide (version 7.0)](http://cdemat.free.fr/iurc/demattei/satscan.7.0/SaTScan_Users_Guide.pdf)
2. [Identifying space-time disease clusters (review)](https://www.sciencedirect.com/science/article/abs/pii/S0001706X04001044)
3. [E. G. Knox, M. S. Bartlett (1964). The Detection of Space-Time Interactions. Journal of the Royal Statistical Society Series C (Applied Statistics).](https://doi.org/10.2307/2985220)
4. [Mantel, 'The Detection of Disease Clustering and a Generalized Regression Approach' (Cancer Research, 1967)](http://www.stat.ucla.edu/~nchristo/statistics_c173_c273/mantel_nathan_paper.pdf)
5. [Knox Meets Cox: Adapting Epidemiological Space-Time Statistics to Demographic Studies](https://pmc.ncbi.nlm.nih.gov/articles/PMC3000054/)
6. [R: Knox Test for Space-Time Interaction (surveillance package documentation)](https://search.r-project.org/CRAN/refmans/surveillance/html/knox.html)
7. [Review of methods for space–time disease surveillance](https://pmc.ncbi.nlm.nih.gov/articles/PMC7185413/)
8. [Spatiotemporal Data Clustering: A Survey of Methods](https://www.mdpi.com/2220-9964/8/3/112)
9. [JMASM23: Cluster Analysis in Epidemiological Data (Matlab)](https://digitalcommons.wayne.edu/cgi/viewcontent.cgi?article=1277&context=jmasm)
10. [PJ Diggle and colleagues (1995). Second-order analysis of space-time clustering. Statistical Methods in Medical Research.](https://doi.org/10.1177/096228029500400203)
11. [M Kulldorff and colleagues (1998). Evaluating cluster alarms: a space-time scan statistic and brain cancer in Los Alamos, New Mexico.. American Journal of Public Health.](https://doi.org/10.2105/ajph.88.9.1377)
12. [In search of induction and latency periods: Space-time interaction accounting for residential mobility, risk factors and covariates (International Journal of Health Geographics, 2007)](https://link.springer.com/article/10.1186/1476-072X-6-35)
13. [Space-Time Interaction and Clustering (lecture notes, Wen lab)](https://wenlab501.github.io/GEOG2017/WEN/14.pdf)
14. [k-Nearest Neighbor Example (Jacquez k-NN test documentation)](https://www.nku.edu/~longa/geomed/stats/k-NN/ex.html)
15. [Spatio-Temporal Cluster Analysis of Geoenvironmental Processes (Advanced Geospatial Data Analysis in R)](https://eugenegis.github.io/AGDAbook/spatio-temporal-cluster-analysis-of-geoenvironmental-processes.html)
16. [Benchmark Data and Power Calculations for Evaluating Disease Outbreak Detection Methods (CDC MMWR)](https://www.cdc.gov/MMWR/preview/mmwrhtml/su5301a28.htm)
17. [A Modified Knox Test of Space-Time Clustering (Journal of Applied Statistics, 2004)](https://ideas.repec.org/a/taf/japsta/v31y2004i4p457-463.html)
18. [The Knox Method and Other Tests for Space-Time Interaction (Kulldorff & Hjalmars, 1999, Biometrics)](https://onlinelibrary.wiley.com/doi/10.1111/j.0006-341X.1999.00544.x)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Hypothesis testing

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/space-time-clustering

English original: https://www.edgepedia.org/space-time-clustering
