# 周期图

周期图通过对信号的离散傅里叶变换取模平方并施加固定归一化，来估计信号的功率谱密度。它是一种非参数谱估计量：它不对过程假设参数模型，而直接处理数据。<sup>[1](https://www.mathworks.com/help/signal/ref/periodogram.html)</sup> 它从单条记录计算出的量本身是一个随机变量，其均值随着记录增长而趋近真实功率谱密度（PSD），但方差不缩小；这既决定了它的用途，也决定了它已知的弱点。<sup>[2](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)</sup>

| 关键事实 | 值 |
|---|---|
| 定义（MATLAB约定） | \( \hat{P}(f) = \frac{\Delta t}{N} \left| \sum_{n=0}^{N-1} x_n e^{-j 2\pi f \Delta t n} \right|^2 \)，其中 \( \Delta t \) 为采样间隔<sup>[1](https://www.mathworks.com/help/signal/ref/periodogram.html)</sup> |
| 等价形式 | \( I_n(\lambda) = n \cdot |J_n(\lambda)|^2 \)，即DFT的平方范数（相差一个缩放因子）<sup>[3](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_spec_est.pdf)</sup> |
| 一致性 | 方差在每个频率上都等于 \( P_{xx}^2(f) \)，因此不随记录长度增加而减小<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup> |
| 纵坐标分布（白噪声） | 缩放 \( \chi^2_2 \)：指数分布，均值由真实谱密度设定<sup>[3](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_spec_est.pdf)</sup> |
| 频率分辨率 | 两个正弦分量只有当其间隔超过 \( F_s/L \) 时才可分辨<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup> |
| 计算 | 在 \( K \) 个频率构成的网格上做FFT，代价为 \( O(K \log_2 K) \)<sup>[5](https://dl.acm.org/doi/fullHtml/10.1145/3503823.3503846)</sup> |
| 起源 | 阿瑟·舒斯特（Arthur Schuster），1898年，《陆地磁性与大气电学》（Terrestrial Magnetism and Atmospheric Electricity）<sup>[6](https://doi.org/10.1029/tm003i001p00013)</sup> |

## 工作原理

周期图把有限记录视为一个宽[平稳过程](https://www.edgepedia.org/zh/stationary-process)的一次实现，并考察其功率如何随频率分布。对[傅里叶变换](https://www.edgepedia.org/zh/fourier-transform)取模平方，得到每个频率上类似能量的量；除以记录长度便将其转换为功率。在记录长度趋于无穷的极限下，该量的期望值等于过程的功率谱密度 \( S_x(\omega) \)。<sup>[2](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)</sup>

该估计量在有限记录长度下是有偏的。其期望是真实PSD与狄利克雷核（Dirichlet kernel，有限记录中导致频谱泄漏的振荡函数）的平方的卷积；这是一种在频率之间搬移功率的展宽操作，而这一卷积正是频谱泄漏的数学表述。<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup> 由于核随 \( n \) 增大而变窄，偏差随记录长度增加而减小，估计量是渐近无偏的。<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup>

对白噪声而言，非零傅里叶频率处的每个周期图纵坐标值服从 \( f(\lambda_j) \cdot \frac{1}{2}\chi^2_2 \)，即由真实谱密度缩放的指数随机变量。<sup>[3](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_spec_est.pdf)</sup> 沃克（Walker）定理对此作了推广：对于 \( f(\omega) \neq 0 \) 的线性过程，纵坐标值在 \( 0 < \omega < \pi \) 时依分布收敛到 \( 2\pi f(\omega) \cdot \chi^2_2 \)，在 \( \omega = \pi \) 时收敛到缩放的 \( \chi^2_1 \)；任意有限的 \( k \) 个纵坐标值联合渐近独立，并服从缩放的卡方分布。<sup>[7](https://doi.org/10.1017/s1446788700025921)</sup>

## 实现方法

计算分三步。第一步，可选地对数据去趋势（SciPy默认去除常数偏移），若需要控制泄漏则施加窗函数。<sup>[8](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.periodogram.html)</sup> 第二步，对长度为 \( M \) 的记录做长度为 \( N \ge M \) 的FFT，在频率 \( \omega_k = 2\pi k/N \) 处计算模平方。<sup>[2](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)</sup> 第三步，归一化并折叠：对实数据的单边估计，除0和奈奎斯特（Nyquist）频率 \( 1/2\Delta t \) 处的纵坐标值外，其余纵坐标值均乘以2，以保持总功率守恒。<sup>[1](https://www.mathworks.com/help/signal/ref/periodogram.html)</sup>

不同文献的归一化约定不同，并会改变单位。MATLAB使用 \( 1/(L \cdot F_s) \) 乘以FFT模平方。<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup> SciPy提供两种缩放：'density'返回 \( V^2/\text{Hz} \)，'spectrum'返回 \( V^2 \)，对于窗 \( w \)，二者相差常数因子 \( \sum |w_n|^2 \cdot f_s / |\sum w_n|^2 \)。<sup>[8](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.periodogram.html)</sup>

## 起源

[阿瑟·舒斯特](https://www.edgepedia.org/zh/arthur-schuster)在《论隐藏周期性的研究及其在假定的气象现象26天周期中的应用》（On the investigation of hidden periodicities with application to a supposed 26 day period of meteorological phenomena）一文中引入了该方法，该文发表于1898年3月的《陆地磁性与大气电学》。<sup>[6](https://doi.org/10.1029/tm003i001p00013)</sup> 他的动机是：微小的周期变化隐藏在不规则涨落之后，因而难以研究；该论文针对一个假定的26天气象周期以及太阳黑子极大值的11年重现。<sup>[6](https://doi.org/10.1029/tm003i001p00013)</sup> 在1906年《自然》（Nature）的一篇文章中，舒斯特为对任意涨落量计算出的曲线创造了“周期图”一词，该曲线类似于辐射谱；他还提出用降雨量和气压变化的周期图作为气候诊断工具。<sup>[9](https://doi.org/10.1038/073378a0)</sup> 他1906年发表于《哲学汇刊》（Philosophical Transactions）的论文将该方法应用于1749年至1901年各月的沃尔夫（Wolf）太阳黑子相对数，以及1832年1月至1900年底的日平均太阳黑子面积。<sup>[10](https://royalsocietypublishing.org/rsta/article/206/402-412/69/40388/II-On-the-periodicities-of-sunspots)</sup> A. M. 沃克（A. M. Walker）于1965年给出了平稳时间序列周期图纵坐标值的渐近理论。<sup>[7](https://doi.org/10.1017/s1446788700025921)</sup>

## 变体

**修正周期图。** 在变换前将数据乘以窗 \( h_n \)，\( \hat{P}(f) = \frac{\Delta t}{N}\left|\sum h_n \cdot x_n e^{-j2\pi f \cdot \Delta t \cdot n}\right|^2 \)，使记录两端渐入渐出，从而减轻泄漏。<sup>[1](https://www.mathworks.com/help/signal/ref/periodogram.html)</sup>

**巴特利特（Bartlett）与韦尔奇（Welch）。** 巴特利特法将记录分成 \( K \) 个不重叠段，计算每段周期图并平均，使方差降低为原来的 \( 1/K \)，代价是分辨率变粗 \( K \) 倍。<sup>[11](https://www.ee.cityu.edu.hk/~hcso/aes_7_99.pdf)</sup> 韦尔奇法由P. 韦尔奇（P. Welch）于1967年在《IEEE音频与电声学汇刊》（IEEE Transactions on Audio and Electroacoustics）上报道，它允许各段重叠，并对每段加窗后再平均修正周期图。<sup>[12](https://doi.org/10.1109/tau.1967.1161901)</sup> 在SciPy中，默认汉宁窗（Hann window）的默认重叠为50%，这被描述为在准确功率估计与重复计数数据之间的合理折中；将重叠设为0会使韦尔奇法等价于巴特利特法。<sup>[13](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.welch.html)</sup>

**多窗法。** 汤姆森（Thomson）多窗法由D. J. 汤姆森（D. J. Thomson）于1982年在《IEEE会刊》（Proceedings of the IEEE）上报道，它对若干正交窗的本征谱取平均，以在不造成成比例分辨率损失的情况下降低方差。<sup>[14](https://doi.org/10.1109/proc.1982.12433)</sup> 使用离散长椭球序列（DPSS，斯莱皮恩（Slepian））窗和时间带宽积 \( N \cdot W \) 时，带内功率集中度高的窗数约为 \( K \lessapprox \lfloor 2 \cdot N \cdot W \rfloor \)；例如 \( NW = 4 \) 时允许约 \( K = 7 \) 个窗。<sup>[15](https://doi.org/10.3847/1538-3881/ad7029)</sup>

**隆布（Lomb）–斯卡格尔（Scargle）。** 对于不规则采样数据，隆布–斯卡格尔周期图用正弦的最小二乘拟合代替FFT；SciPy的实现采用带浮动均值的加权拟合 \( y(\omega) = a\cos(\omega x) + b\sin(\omega x) + c \)，遵循策希迈斯特（Zechmeister）与屈斯特（Kürster）。<sup>[16](https://github.com/scipy/scipy/blob/main/scipy/signal/_spectral_py.py)</sup> 将插值后的DPSS窗与隆布–斯卡格尔周期图结合，得到斯普林福德（Springford）、伊迪（Eadie）和汤姆森的多窗隆布–斯卡格尔（MTLS）统计量（2020，《天文学杂志》（The Astronomical Journal））。<sup>[17](https://doi.org/10.3847/1538-3881/ab7fa1)</sup>

**近期的不规则采样变体。** mtNUFFT周期图由帕蒂尔（Patil）及其同事于2024年在《天文学杂志》上报道，它通过非均匀快速傅里叶变换将汤姆森多窗估计推广到不规则采样，解决了隆布–斯卡格尔周期图的不一致性和泄漏偏差；该算法在公开Python包tapify中实现。<sup>[15](https://doi.org/10.3847/1538-3881/ad7029)</sup> M2NuFFT（2025，《数字信号处理》（Digital Signal Processing））整合了汤姆森和布罗内兹（Bronez）的多窗估计量，将频带划分为子带，并对每个广义特征值问题只求解一次，复杂度接近 \( O(N \log N + N \log(1/\epsilon)) \)。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S1051200425008504)</sup> 相位距离相关（PDC）周期图在2024年经过改造，以计入测量不确定度：它将每个测量值–误差对视为高斯分布，并使用能量距离；在一个真实数据示例中，这将检测虚警概率从 \( 10^{-9} \) 降至 \( 10^{-13} \)。<sup>[19](https://www.aanda.org/articles/aa/full_html/2024/06/aa47764-23/aa47764-23.html)</sup>

## 应用

自舒斯特对1749–1901年沃尔夫数的太阳黑子分析以来，天文学便一直使用周期图。<sup>[10](https://royalsocietypublishing.org/rsta/article/206/402-412/69/40388/II-On-the-periodicities-of-sunspots)</sup> 如今，隆布–斯卡格尔周期图处理不均匀采样的天文时间序列，多窗变体也已在开普勒（Kepler）数据上得到演示。<sup>[17](https://doi.org/10.3847/1538-3881/ab7fa1)</sup> 在音频与噪声分析中，周期图是韦尔奇式噪声谱估计的基本构件。<sup>[2](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)</sup> 教科书中的处理将这些估计量同样应用于海洋学、计量学和大气科学序列。<sup>[20](https://www.cambridge.org/core/books/spectral-analysis-for-univariate-time-series/308BC6C9B881E490ED3D4C9F89ED8058)</sup>

## 局限与替代方法

原始周期图的核心缺陷是不一致性：在任意记录长度下，其标准差都与均值相当，因此单条记录的谱看起来像噪声，必须对单个纵坐标值做平均或平滑才能得到稳定估计。<sup>[2](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)</sup> 泄漏是第二种失效模式：矩形窗的最大旁瓣约比主瓣峰值低13 dB，这会掩盖比强峰弱约13 dB以上的频谱内容。<sup>[1](https://www.mathworks.com/help/signal/ref/periodogram.html)</sup> 分辨率受记录长度限制：只有当 \( f_2 - f_1 > F_s/L \) 时，两个正弦分量才可分辨。<sup>[4](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)</sup>

估计量的选择取决于任务。对于检测纯音，标准周期图在周期图各变体中给出最优检测性能和最佳频率估计；当正弦分量存在相位不稳定时，采用50%重叠和汉宁窗的韦尔奇法是更好的检测器。<sup>[11](https://www.ee.cityu.edu.hk/~hcso/aes_7_99.pdf)</sup> 当关注密集间隔的音调时，数据自适应估计量更胜一筹：由周期图导出的估计量无法清楚分开密集间隔的测试音调，而卡彭（Capon）估计量以极窄的瓣将它们分辨开。<sup>[5](https://dl.acm.org/doi/fullHtml/10.1145/3503823.3503846)</sup> 当分辨率或方差比计算简便性更重要时，参数与子空间估计量（AR/尤尔–沃克（Yule–Walker）、MUSIC）以及多窗法是常用的替代方法。<sup>[20](https://www.cambridge.org/core/books/spectral-analysis-for-univariate-time-series/308BC6C9B881E490ED3D4C9F89ED8058)</sup>

## References

1. [Periodogram power spectral density estimate - MATLAB](https://www.mathworks.com/help/signal/ref/periodogram.html)
2. [The Periodogram (Spectral Audio Signal Processing, Julius O. Smith III)](https://ccrma.stanford.edu/~jos/sasp/Periodogram.html)
3. [Spectral Estimation (Statistics 910, Lecture 19, Wharton)](http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/19_spec_est.pdf)
4. [Nonparametric Methods - MATLAB & Simulink](https://uk.mathworks.com/help/signal/ug/nonparametric-methods.html)
5. [Nonparametric Spectral Estimation, An Overview (ACM)](https://dl.acm.org/doi/fullHtml/10.1145/3503823.3503846)
6. [Arthur Schuster (1898). On the investigation of hidden periodicities with application to a supposed 26 day period of meteorological phenomena. Terrestrial Magnetism and Atmospheric Electricity.](https://doi.org/10.1029/tm003i001p00013)
7. [A. M. Walker (1965). Some asymptotic results for the periodogram of a stationary time series. Journal of the Australian Mathematical Society.](https://doi.org/10.1017/s1446788700025921)
8. [periodogram, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.periodogram.html)
9. [ARTHUR SCHUSTER (1906). The Periodicities of Sun-Spots 1. Nature.](https://doi.org/10.1038/073378a0)
10. [II. On the periodicities of sunspots](https://royalsocietypublishing.org/rsta/article/206/402-412/69/40388/II-On-the-periodicities-of-sunspots)
11. [Comparison of periodogram variants for single-tone detection and frequency estimation in white Gaussian noise](https://www.ee.cityu.edu.hk/~hcso/aes_7_99.pdf)
12. [P. Welch (1967). The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms. IEEE Transactions on Audio and Electroacoustics.](https://doi.org/10.1109/tau.1967.1161901)
13. [welch, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.welch.html)
14. [D.J. Thomson (1982). Spectrum estimation and harmonic analysis. Proceedings of the IEEE.](https://doi.org/10.1109/proc.1982.12433)
15. [Aarya A. Patil and colleagues (2024). Improving Power Spectrum Estimation Using Multitapering: Efficient Asteroseismic Analyses for Understanding Stars, the Milky Way, and Beyond. The Astronomical Journal.](https://doi.org/10.3847/1538-3881/ad7029)
16. [scipy/signal/_spectral_py.py (SciPy source)](https://github.com/scipy/scipy/blob/main/scipy/signal/_spectral_py.py)
17. [Aaron Springford, Gwendolyn M. Eadie, David J. Thomson (2020). Improving the Lomb–Scargle Periodogram with the Thomson Multitaper. The Astronomical Journal.](https://doi.org/10.3847/1538-3881/ab7fa1)
18. [M2NuFFT, A computationally efficient suboptimal power spectrum estimator for fast exploration of nonuniformly sampled time series](https://www.sciencedirect.com/science/article/abs/pii/S1051200425008504)
19. [Adaptation of the phase distance correlation periodogram to account for measurement uncertainties (A&A, 2024)](https://www.aanda.org/articles/aa/full_html/2024/06/aa47764-23/aa47764-23.html)
20. [Spectral Analysis for Univariate Time Series (Percival & Walden, Cambridge University Press, 2020)](https://www.cambridge.org/core/books/spectral-analysis-for-univariate-time-series/308BC6C9B881E490ED3D4C9F89ED8058)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Fourier and signal transforms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/periodogram

English original: https://www.edgepedia.org/periodogram
