# 小波相干分析

小波相干分析是一种时间序列方法，它利用小波变换同时跨越时间和频率测量两个信号的局部相关性，以揭示它们的协同变化如何随尺度改变。该方法专为非平稳信号设计——对于这类信号，无论是整段记录上的单一皮尔逊相关系数，还是由全序列计算得到的傅里叶相干，都会把关系中时间局部化的结构平均掉。由整段序列的傅里叶变换得到的交叉谱无法提供关于时间局部化相干的信息，因此真正的交叉谱必须通过局部化平滑来估计，而小波途径是更可取的一种。<sup>[1](https://eprints.lancs.ac.uk/id/eprint/54939/1/PRE2012TestingTimeLocalisedCoherence.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 测量内容 | 时间-频率空间中的局部化相关系数，由平滑、归一化的平方交叉小波变换计算得到<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> |
| 取值范围 | 以平方相干形式报告，取值从0到1<sup>[3](https://doi.org/10.1175/jtech-d-12-00056.1)</sup> |
| 平滑要求 | 不做平滑时，相干在所有时间和频率上都等于一，因此局部化平滑不可或缺<sup>[4](https://www-users.york.ac.uk/~dh20/files/jnm2006.pdf)</sup> |
| 边缘效应 | 影响锥标出了边缘不连续所产生的小波功率衰减至边缘值的\( e^{-2} \)倍的区域<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup> |
| 显著性检验 | 蒙特卡洛方法，与约1000对具有与输入相同AR1系数的替代数据对进行比较<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> |
| 默认设置 | Morlet小波，每倍频程10个尺度，AR1红噪声零假设<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> |
| 标准软件 | Grinsted等人的软件包、biwavelet、WaveletComp、MATLAB wcoherence、Pyleoclim、wsyn<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup><sup> • </sup><sup>[6](https://rdrr.io/cran/biwavelet/man/wtc.html)</sup><sup> • </sup><sup>[7](https://cran.r-project.org/web/packages/WaveletComp/refman/WaveletComp.html)</sup> |

## 工作原理

该方法建立在连续小波变换（CWT）之上，后者将信号分解为不同尺度的小波，给出适合频谱快速变化信号的时间-频率表示。两个变换组合成交叉小波变换，它揭示高共同功率的区域以及两个序列之间的相位关系。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> 小波相干则是该交叉谱的振幅经两个单序列小波功率谱归一化后的量，取值介于零和一之间。<sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup> 在Grinsted、Moore和Jevrejeva（2004）的表述中，

其中\( S \)为平滑算子，\( W_{n}^{XY} \)为序列\( X \)与\( Y \)在尺度\( s \)和时间\( n \)上的交叉小波变换。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup>

平滑不是可选项：不做平滑，相干在所有时间和频率上都等于同一个值一。<sup>[4](https://www-users.york.ac.uk/~dh20/files/jnm2006.pdf)</sup><sup> • </sup><sup>[9](https://www.dcs.warwick.ac.uk/~feng/papers/yang1.pdf)</sup> 分子和分母也必须分别平滑，否则结果会平凡地等于一。<sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup>

影响锥（COI）是频谱中边缘效应变得重要的区域，定义为每个尺度上小波功率自相关的e折时间，其选取使得边缘处不连续所对应的小波功率降至原来的\( e^{-2} \)倍。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup>

## 实现步骤

标准流程是：对（可能经过填充的）序列做傅里叶变换，选择小波和一组尺度，构造归一化小波函数，进行变换，确定COI和傅里叶波长，去除填充，绘制频谱等值线，并以白噪声或红噪声为背景，利用卡方分布确定95%置信等值线，进行显著性检验。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup> 序列用零填充，使其长度达到大于原长度的最小2的整数次幂，这限制了边缘效应并加速傅里叶变换，不过在较大尺度上会降低边缘附近的振幅。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup>

**母小波与分辨率。** Morlet小波、墨西哥帽小波（DOG）和Paul小波在时间-频率分辨率上提供不同的权衡；较窄的墨西哥帽小波具有更小的COI，受边缘效应影响较小。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup> 对于相干分析，推荐的默认设置是Morlet小波（除非有充分理由另作选择）以及每倍频程10个尺度。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup>

**显著性检验。** 标准检验是蒙特卡洛方法：生成约1000对具有与输入相同AR1系数的替代数据集，而平滑算子的分辨率对所得显著性水平有很大影响。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> 也存在其他选择：WaveletComp以若干假设下的替代序列为参照进行检验，包括白噪声、随机重排、具有相似频谱的序列、AR和ARIMA。<sup>[7](https://cran.r-project.org/web/packages/WaveletComp/refman/WaveletComp.html)</sup>

**解读图形。** 在相干超过0.5的地方，相位箭头显示\( y \)相对于\( x \)的相位滞后；竖直箭头表示\( \pi/2 \)（四分之一周期）的滞后。<sup>[10](https://www.mathworks.com/help/wavelet/ref/wcoherence.html)</sup> 交叉小波变换本身揭示高共同功率的区域和相位关系，而相干则寻找局部相位锁定的行为，但在时间-频率空间中的局部化程度略低。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> 由于边缘效应，对于看似具有高相干、但位于影响锥之外或与之重叠的区域，应给予较少的信任。<sup>[10](https://www.mathworks.com/help/wavelet/ref/wcoherence.html)</sup>

## 起源

直接的先驱是早于相干检验的交叉小波分析文献；Torrence和Compo（1998）在小波分析指南中简要讨论了它，他们在《美国气象学会公报》上引入了利用背景红噪声序列和蒙特卡洛方法对小波功率谱进行详细显著性检验的方法。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup><sup> • </sup><sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup> Grinsted、Moore和Jevrejeva（2004）引入了小波相干统计检验以及一个实现红噪声背景下蒙特卡洛检验的交叉小波变换软件包，发表于《非线性过程地球物理学》。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> Maraun和Kurths（2004）引入了针对零小波相干的蒙特卡洛显著性检验，并记录了该方法的陷阱，同样发表于《非线性过程地球物理学》。<sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup> Lachaux及其同事（2002）在《临床神经生理学》上把小波相干引入神经科学，作为估计非平稳单试次脑信号之间相干的一种方式。<sup>[11](https://doi.org/10.1016/s0987-7053%2802%2900301-5)</sup> Ng和Chan（2012）将偏小波相干和多重小波相干应用于地球物理时间序列，<sup>[3](https://doi.org/10.1175/jtech-d-12-00056.1)</sup> Oygur和Unal（2020）为多时间序列引入了向量小波相干。<sup>[12](https://doi.org/10.1007/s40435-020-00706-y)</sup>

## 变体

**偏小波相干与多重小波相干** 消除混杂序列的影响或组合多个预测变量；两者都以0到1的平方值报告，且小波功率谱和交叉谱中存在的偏差问题在它们中不会出现。<sup>[3](https://doi.org/10.1175/jtech-d-12-00056.1)</sup> 改进的偏小波相干方法在排除其他变量后可能产生虚假的高相关，部分原因是每个尺度的默认倍频程数较小（1/12），因此建议用双变量相干作为核查。<sup>[13](https://hess.copernicus.org/articles/25/321/2021/)</sup>

其他有名称的变体包括 **局部平稳小波相干**，源自局部平稳小波时间序列模型，<sup>[14](http://eprints.lse.ac.uk/29141/1/Estimating_linear_dependence_between_nonstationary_time_series_using_the_locally_stationary_wavelet_model%28lsero%29.pdf)</sup> 用于多变量动态协同变化的 **向量小波相干**，<sup>[12](https://doi.org/10.1007/s40435-020-00706-y)</sup><sup> • </sup><sup>[15](https://toygur.r-universe.dev/vectorwavelet/doc/manual.html)</sup> 以及 **WaveCanCoh**，一种针对两组非平稳多变量序列的非参数小波典型相干。<sup>[16](https://proceedings.neurips.cc/paper_files/paper/2025/file/4d36d5dbc1efddcba896f22041a74bcc-Paper-Conference.pdf)</sup> 实现包括biwavelet、<sup>[6](https://rdrr.io/cran/biwavelet/man/wtc.html)</sup> WaveletComp、<sup>[7](https://cran.r-project.org/web/packages/WaveletComp/refman/WaveletComp.html)</sup> MATLAB的wcoherence（解析Morlet，等长实信号的幅度平方相干）、<sup>[10](https://www.mathworks.com/help/wavelet/ref/wcoherence.html)</sup> Pyleoclim（带蒙特卡洛检验，可选去趋势和高斯化）<sup>[17](https://pyleoclim-util.readthedocs.io/en/v0.7.4/utils/wavelet/wavelet_coherence.html)</sup> 以及wsyn，后者提供逐序列功率归一化。<sup>[18](https://search.r-project.org/CRAN/refmans/wsyn/html/coh.html)</sup>

## 应用

在气候与地球物理学中，一项北极涛动–波罗的海海冰分析发现，在2至20年波长上存在显著的反相相干，同时提醒说时间-频率图上超过5%显著性水平的面积并不是因果性的可靠指示。<sup>[2](https://doi.org/10.5194/npg-11-561-2004)</sup> 在神经科学中，该方法被引入用于频谱快速变化的单试次脑信号，<sup>[11](https://doi.org/10.1016/s0987-7053%2802%2900301-5)</sup> 偏小波相干已被用于估计患有缺氧缺血性脑病的新生儿的神经血管耦合，在去除SpO2混杂效应的同时将脑电图功率对数与局部脑氧饱和度联系起来。<sup>[19](https://www.nature.com/articles/s41598-022-27275-8)</sup>

## 局限与替代方法

**边缘效应。** 影响锥内的峰值由于零填充而幅度减小，因此表观方差下降可能是填充伪迹；将峰宽与COI去相关时间比较，有助于区分随机噪声尖峰与谐波成分。<sup>[5](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)</sup>

**虚假相干。** 当其中一个序列具有强功率谱峰时，即使对独立过程，小波交叉谱也可能显示出误导性的峰，因此它不适合用于显著性检验，而应改用归一化相干；在此基础上，1856年至2000年间大多数中等和强厄尔尼诺所对应的ENSO–NAO相干被证明是NINO3小波功率谱中高功率造成的伪迹。<sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup> 即使是独立的混合过程也会表现出非零相干值，这就是为什么需要针对零相干做正式检验，而在小尺度上达不到渐近的过程无关分布。<sup>[8](https://doi.org/10.5194/npg-11-505-2004)</sup>

**对分析选择的依赖。** 基于小波的检验统计量受数据结构的强烈影响，也受母小波性质和平滑方式的影响。<sup>[20](https://www.nature.com/articles/s41598-019-43571-2)</sup> 所有位置和尺度上的显著性水平是同时检验的，造成多重检验问题；建议采用Bonferroni校正或错误发现率作为补救，而比AR(1)更高阶的自回归模型可能更适合长程依赖序列。<sup>[13](https://hess.copernicus.org/articles/25/321/2021/)</sup>

**替代方法。** 希尔伯特相位相干与小波相位相干测度已被证明是等价的，小波相干与傅里叶相干方法之间的数学等价性也已被注意到，因此选择在很大程度上是实现和分辨率的问题，而非所测量的量本身的问题。<sup>[1](https://eprints.lancs.ac.uk/id/eprint/54939/1/PRE2012TestingTimeLocalisedCoherence.pdf)</sup> 由于相干缺乏渐近正态的零分布，替代数据检验一直是标准做法，但计算量大，且产生的离散p值受\( 1/(n_{\mathrm{perm}}+1) \)限制。<sup>[21](https://www.sciencedirect.com/science/article/abs/pii/S0165027026001214)</sup>

## References

1. [Testing time-localised coherence (Physical Review E 2012)](https://eprints.lancs.ac.uk/id/eprint/54939/1/PRE2012TestingTimeLocalisedCoherence.pdf)
2. [A. Grinsted, J. C. Moore, S. Jevrejeva (2004). Application of the cross wavelet transform and wavelet coherence to geophysical time series. Nonlinear processes in geophysics.](https://doi.org/10.5194/npg-11-561-2004)
3. [Eric K. W. Ng, Johnny C. L. Chan (2012). Geophysical Applications of Partial Wavelet Coherence and Multiple Wavelet Coherence. Journal of Atmospheric and Oceanic Technology.](https://doi.org/10.1175/jtech-d-12-00056.1)
4. [Wavelet coherence application in neuroscience methods paper (J. Neurosci. Methods, 2006)](https://www-users.york.ac.uk/~dh20/files/jnm2006.pdf)
5. [A Practical Guide to Wavelet Analysis (Bulletin of the American Meteorological Society, 1998)](https://doi.org/10.1175/1520-0477%281998%29079<0061:apgtwa>2.0.co;2)
6. [wtc: Compute wavelet coherence in biwavelet (R package documentation)](https://rdrr.io/cran/biwavelet/man/wtc.html)
7. [Help for package WaveletComp (R package reference manual)](https://cran.r-project.org/web/packages/WaveletComp/refman/WaveletComp.html)
8. [D. Maraun, J. Kurths (2004). Cross wavelet analysis: significance testing and pitfalls. Nonlinear processes in geophysics.](https://doi.org/10.5194/npg-11-505-2004)
9. [Detecting the time-dependent coherence between non-stationary electrophysiological signals – a combined statistical and time-frequency approach](https://www.dcs.warwick.ac.uk/~feng/papers/yang1.pdf)
10. [wcoherence, Wavelet coherence and cross-spectrum (MATLAB documentation)](https://www.mathworks.com/help/wavelet/ref/wcoherence.html)
11. [Estimating the time-course of coherence between single-trial brain signals: an introduction to wavelet coherence (Neurophysiologie Clinique, 2002)](https://doi.org/10.1016/s0987-7053%2802%2900301-5)
12. [Tunc Oygur, Gazanfer Unal (2020). Vector wavelet coherence for multiple time series. International Journal of Dynamics and Control.](https://doi.org/10.1007/s40435-020-00706-y)
13. [HESS Technical Note: Improved partial wavelet coherency (Hu & Si 2021)](https://hess.copernicus.org/articles/25/321/2021/)
14. [Estimating linear dependence between nonstationary time series using the locally stationary wavelet model (LSE research report)](http://eprints.lse.ac.uk/29141/1/Estimating_linear_dependence_between_nonstationary_time_series_using_the_locally_stationary_wavelet_model%28lsero%29.pdf)
15. [Package 'vectorwavelet' reference manual](https://toygur.r-universe.dev/vectorwavelet/doc/manual.html)
16. [Wavelet Canonical Coherence for Nonstationary Signals (WaveCanCoh, NeurIPS 2025)](https://proceedings.neurips.cc/paper_files/paper/2025/file/4d36d5dbc1efddcba896f22041a74bcc-Paper-Conference.pdf)
17. [pyleoclim wavelet_coherence documentation](https://pyleoclim-util.readthedocs.io/en/v0.7.4/utils/wavelet/wavelet_coherence.html)
18. [R: Coherence (wsyn package)](https://search.r-project.org/CRAN/refmans/wsyn/html/coh.html)
19. [Partial wavelet coherence as a robust method for assessment of neurovascular coupling in neonates with hypoxic ischemic encephalopathy (Scientific Reports 2022)](https://www.nature.com/articles/s41598-022-27275-8)
20. [Detecting dynamic spatial correlation patterns with generalized wavelet coherence and non-stationary surrogate data (Scientific Reports 2019)](https://www.nature.com/articles/s41598-019-43571-2)
21. [Efficient coherence inference on complex time–frequency coefficients using a general linear model (J. Neurosci. Methods, 2026)](https://www.sciencedirect.com/science/article/abs/pii/S0165027026001214)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Titles Mo to W

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/wavelet-coherence-analysis

English original: https://www.edgepedia.org/wavelet-coherence-analysis
