# 去趋势波动分析

去趋势波动分析（DFA）是一种统计方法，通过测量局部趋势去除后波动如何随窗口大小缩放，来检测非平稳（统计特性随时间变化）时间序列中的长程相关性。它最初被引入用于分析DNA序列，是量化生理时间序列无标度特性及其在疾病中改变的最常用方法之一，已有文献记载的应用领域包括天气记录、云结构和经济时间序列；它量化受趋势影响的记录中的无标度行为，而在这些情况下，传统的波动和谱方法可能报告虚假的相关性。<sup>[1](https://doi.org/10.1103/physreve.49.1685)</sup><sup> • </sup><sup>[2](https://www.physionet.org/content/dfa/1.0.0/)</sup><sup> • </sup><sup>[3](https://archive.physionet.org/tutorials/fmnc/node5.html)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3510427/)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 标度指数α，即\( \log F(n) \)对\( \log n \)的斜率，其中\( F(n) \)是长度为n的盒子中去趋势随机游走轮廓的均方根波动<sup>[2](https://www.physionet.org/content/dfa/1.0.0/)</sup> |
| \( \alpha = 0.5 \) | 不相关或短程相关数据（类白噪声行为）<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup> |
| \( 0.5 < \alpha < 1 \) | 正（持久）长程相关；\( \alpha < 0.5 \)表示反相关<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC8775092/)</sup> |
| \( 1 < \alpha < 2 \) | 分数布朗运动型非平稳信号；对于此类非平稳序列，赫斯特指数为\( H = \alpha - 1 \)<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC8775092/)</sup><sup> • </sup><sup>[10](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.96.012141)</sup> |
| 提出者 | 彭仲康（C.-K. Peng）及其同事，“DNA核苷酸的镶嵌组织”，《物理评论E》49:1685–1689，1994年<sup>[1](https://doi.org/10.1103/physreve.49.1685)</sup> |
| 主要变体 | 多重分形DFA（MF-DFA），由扬·W·坎特尔哈特（Jan W. Kantelhardt）及其同事于2002年在《物理学报A》上报道<sup>[7](https://doi.org/10.1016/s0378-4371%2802%2901383-3)</sup> |
| 实际最小值 | 步态指南建议至少500至600个跨步；标准DFA仅对大约10,000个样本以上的序列被认为可靠<sup>[8](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)</sup><sup> • </sup><sup>[9](https://ideas.repec.org/a/eee/phsmap/v505y2018icp179-189.html)</sup> |

## 工作原理

DFA是对随机游走的改进均方根分析。观测序列被转换为累积和轮廓，然后被切分为盒子；在每个盒子内拟合多项式趋势并将其减去，计算残差围绕该趋势的均方根偏差。在一系列盒子大小n上重复此过程，得到波动函数\( F(n) \)，双对数图上的线性关系表明幂律（分形）标度，其斜率给出标度指数α：<sup>[2](https://www.physionet.org/content/dfa/1.0.0/)</sup><sup> • </sup><sup>[3](https://archive.physionet.org/tutorials/fmnc/node5.html)</sup>

\[ F(n) \propto n^{\alpha} \]

去趋势步骤是该方法的定义性特征。它允许检测嵌入在看似非平稳序列中的内在自相似性，并避免外在趋势在传统谱分析和赫斯特分析中可能产生的对表观自相似性的虚假检测。<sup>[3](https://archive.physionet.org/tutorials/fmnc/node5.html)</sup>由于序列被求和，基于随机游走理论的方法（包括DFA）也降低了不完美测量带来的噪声水平；早期的基于波动的方法如法诺因子和艾伦因子曾在类似背景下使用，但不消除趋势。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup>

指数承载着解释。对于平稳幂律相关信号，\( \alpha = 0.5 \)对应于无相关性，\( \alpha > 0.5 \)对应于正幂律相关，\( \alpha < 0.5 \)对应于幂律反相关序列；对于分数布朗运动型非平稳信号，\( 1 < \alpha < 2 \)，赫斯特指数为\( H = \alpha - 1 \)。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC8775092/)</sup><sup> • </sup><sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC7174763/)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3510427/)</sup>标度律\( F(n) \sim n^{H} \)已被证明适用于0 < H < 1的平稳过程和1 < H < 2的非平稳过程。<sup>[10](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.96.012141)</sup>

## 操作方法

标准算法如下：<sup>[2](https://www.physionet.org/content/dfa/1.0.0/)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3510427/)</sup>

1. 通过累积求和（积分）将N个样本的序列转换为随机游走轮廓。
2. 将轮廓切分为长度为n的不重叠等长段；从记录的另一端重复此过程，以获得两倍数量的段。
3. 在每个段中拟合多项式（DFA-1为最小二乘直线）并将其作为局部趋势减去。
4. 计算该尺度下所有段的均方根波动\( F(n) \)。
5. 绘制\( \log F(n) \)对\( \log n \)的图，并从线性拟合中取α。

若干参数选择很重要。拟合范围的下限至少为四个样本，因为线性去趋势在点数更少时表现不佳；窗口大小超过信号长度约10%时估计噪声更大，因为剩余用于平均的窗口很少。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC3510427/)</sup>已发表的上限建议各不相同：一篇方法学综述建议\( n \approx N/20 \)为合理值，而步态共识指南建议窗口大小为16至\( N/9 \)；两者都反映了统计稳定性与达到标度区域之间的相同权衡。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup><sup> • </sup><sup>[8](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)</sup>多项式阶数必须满足\( s \geq n + 2 \)才能使拟合有定义，且高阶中显著的小尺度偏离标度可能持续存在，如果小尺度进入拟合则会高估α。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup>

## 起源

DFA由彭仲康及其同事在“DNA核苷酸的镶嵌组织”中报道，《物理评论E》，1994年。<sup>[1](https://doi.org/10.1103/physreve.49.1685)</sup>该方法建立在早期非去趋势前身——重标极差（R/S）分析和波动分析（FA）——的基础之上，且其随机游走基础与重标极差分析相似。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup><sup> • </sup><sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0378437108003695)</sup>后来被推广用于高阶去趋势、多重分形分析、符号和幅度序列的分别分析以及多维数据。<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0378437108003695)</sup>

## 变体

在n阶DFA中，轮廓中n阶的趋势（等价于原始记录中的\( n - 1 \)阶）被消除；比较不同阶数的结果可估计所存在趋势的强度。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup>对于步态数据，通常推荐二阶去趋势（DFA2），更高阶主要用于消除来自趋势的交叉点，且从等间距DFA图而非对数间距图导出α可降低估计的变异性。<sup>[8](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)</sup>

多重分形DFA由扬·W·坎特尔哈特及其同事于2002年在《物理学报A》上报道，通过对段方差进行q依赖的平均来扩展DFA，产生广义赫斯特指数\( h(q) \)；对于平稳序列，\( h(2) \)等于赫斯特指数H。比较原始序列和打乱序列的MF-DFA结果，可区分由长程相关引起的多重分形与由宽概率密度引起的多重分形。<sup>[7](https://doi.org/10.1016/s0378-4371%2802%2901383-3)</sup>MF-DFA和小波变换模极大值（WTMM）方法具有等价的去趋势能力和精度，但MF-DFA不需要模极大值程序且更易编程；它要求序列具有紧支撑，且无法确定负或接近零的\( h(q) \)。<sup>[7](https://doi.org/10.1016/s0378-4371%2802%2901383-3)</sup>

进一步的改进包括无偏DFA（UDFA），它校正方差估计中的偏差，以及一种无需插值即可处理规则采样序列中缺失数据的估计器，在温和条件下其期望值等于无间隙波动函数。<sup>[9](https://ideas.repec.org/a/eee/phsmap/v505y2018icp179-189.html)</sup><sup> • </sup><sup>[10](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.96.012141)</sup>软件实现包括PhysioNet DFA程序和NTNU小组分发的免费Matlab MF-DFA工具；应目视检查双对数图的线性，非线性可能表明去趋势阶数不足。<sup>[2](https://www.physionet.org/content/dfa/1.0.0/)</sup><sup> • </sup><sup>[12](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2012.00141/full)</sup>

## 应用

有文献记载的应用领域包括DNA、心率动力学、神经元放电、人类步态、天气记录、云结构和经济时间序列。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup>医学和生理学用途涵盖心跳、呼吸、血压、神经脉冲间隔、人类步态、血糖水平和基因表达数据的记录。<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0378437108003695)</sup>

在人类步行中，\( \alpha \approx 0.5 \)表示无长程相关，\( \alpha < 0.5 \)为反持久行为，\( \alpha > 0.5 \)为持久行为，\( \alpha = 1.5 \)为类布朗噪声的过度持久行为；\( \alpha \approx 1.0 \)被提出表示运动表现中的最优适应性，长程相关的丧失随衰老和帕金森病而发生。一项纳入14项研究的荟萃分析给出区分年轻与年老的均值α阈值约为0.6（95% CI 0.6–0.6），区分帕金森病患者与年龄匹配对照的阈值约为0.82（95% CI 0.72–0.92）。<sup>[8](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)</sup>在心率变异性中，MF-DFA得到的多重分形谱的宽度和形状可区分室性心动过速、心室颤动和充血性心力衰竭，且对年龄和认知表现的敏感性高于单一指数。<sup>[12](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2012.00141/full)</sup>

## 局限性与替代方法

趋势是核心的失效模式。对线性、周期性和幂律趋势的系统研究表明，趋势通过噪声标度与趋势“表观”标度之间的竞争在DFA标度中产生交叉点；对于幂为p的趋势，当去趋势阶数\( n \leq p \)时出现人工交叉点，大n斜率是\( n + 1 \)和\( p + 1.5 \)中的最小值。当噪声和趋势不相关时，带趋势噪声的DFA结果可由对噪声和对趋势的单独DFA结果的叠加精确确定，这有助于区分真正的相关转变与趋势诱导的交叉点。<sup>[13](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.64.011114)</sup>去趋势方法本身也很重要：减去箱宽为σ的移动平均会人为地将时间尺度σ引入数据并在更宽范围内破坏标度，这是多项式拟合去趋势更受青睐的关键原因。<sup>[4](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)</sup>

一个批判性研究方向质疑该方法对非平稳性的保护能力。一项分析认为，DFA在存在非线性趋势时引入不受控的伪影，观察到的曲率是分割方案的有限尺寸效应且将始终存在，并且“没有令人信服的理由应用去趋势波动分析”，因为它引入不受控的偏差，比显式去趋势后测量随机游走的扩散散布消耗更多计算，且无法提供对非平稳性的通用保护。<sup>[14](https://www.nature.com/articles/srep00315)</sup>一篇步态共识综述记录了同样的争议，指出马劳恩（Maraun）及其同事认为该算法极易产生假阳性以及关于指数估计偏差的质疑。<sup>[8](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)</sup>对此，使用傅里叶滤波序列的模拟研究发现DFA实际上不受时间序列长度影响且几乎总是准确的，而赫斯特分析和自相关分析强烈依赖序列长度，<sup>[15](https://link.springer.com/article/10.1007/s10867-005-3126-8)</sup>在九个标度范围上的基准测试发现DFA除一种情况外均优于FA。<sup>[16](https://www.nature.com/articles/srep00835)</sup>

据报道，标准DFA需要至少约10,000个样本的序列才能可靠估计标度；UDFA将偏差降至可忽略水平，对于长度为500的分数布朗运动序列标准差低于0.05。<sup>[9](https://ideas.repec.org/a/eee/phsmap/v505y2018icp179-189.html)</sup>由于没有单一估计器能解决该问题，方法学指导是用独立方法佐证DFA：小波方法、FA、重标极差分析和分箱功率谱；只有当至少两种独立方法一致表明长期相关时，才能确信数据确实具有长期相关性。<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S0378437108003695)</sup>已发表的比较未量化重尾噪声对DFA估计的影响，也未提供与基于周期图的谱估计器的直接对比数据。

## References

1. [C.-K. Peng and colleagues (1994). Mosaic organization of DNA nucleotides. Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics.](https://doi.org/10.1103/physreve.49.1685)
2. [Detrended Fluctuation Analysis v1.0.0 (PhysioNet)](https://www.physionet.org/content/dfa/1.0.0/)
3. [PhysioNet tutorial: Detrended Fluctuation Analysis](https://archive.physionet.org/tutorials/fmnc/node5.html)
4. [Detecting Long-range Correlations with Detrended Fluctuation Analysis (Kantelhardt et al., cond-mat/0102214; Physica A 295 (2001) 441-454)](https://ar5iv.labs.arxiv.org/html/cond-mat/0102214)
5. [Detrended Fluctuation Analysis: A Scale-Free View on Neuronal Oscillations (Hardstone et al., Frontiers in Physiology 2012)](https://pmc.ncbi.nlm.nih.gov/articles/PMC3510427/)
6. [On the Validity of Detrended Fluctuation Analysis at Short Scales (Entropy, 2022; mdpi.com copy dropped as duplicate)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8775092/)
7. [Multifractal detrended fluctuation analysis of nonstationary time series (Physica A Statistical Mechanics and its Applications, 2002)](https://doi.org/10.1016/s0378-4371%2802%2901383-3)
8. [Assessing the Temporal Organization of Walking Variability: A Systematic Review and Consensus Guidelines on Detrended Fluctuation Analysis (Frontiers in Physiology, 2020)](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2020.00562/full)
9. [Unbiased detrended fluctuation analysis: Long-range correlations in very short time series (Physica A, 2018)](https://ideas.repec.org/a/eee/phsmap/v505y2018icp179-189.html)
10. [Consistency of detrended fluctuation analysis (Løvsletten, Phys. Rev. E 96, 012141, 2017)](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.96.012141)
11. [Comparison of detrending methods for fluctuation analysis (Physica A)](https://www.sciencedirect.com/science/article/abs/pii/S0378437108003695)
12. [Introduction to Multifractal Detrended Fluctuation Analysis in Matlab (Frontiers in Physiology, 2012)](https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2012.00141/full)
13. [Effect of trends on detrended fluctuation analysis (Phys. Rev. E 64, 011114, 2001)](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.64.011114)
14. [Revisiting detrended fluctuation analysis | Scientific Reports](https://www.nature.com/articles/srep00315)
15. [Size Effects on Correlation Measures (Journal of Biological Physics)](https://link.springer.com/article/10.1007/s10867-005-3126-8)
16. [Comparing the performance of FA, DFA and DMA using different synthetic long-range correlated time series (Scientific Reports, 2011)](https://www.nature.com/articles/srep00835)
17. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC7174763/)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Stochastic processes

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/detrended-fluctuation-analysis

English original: https://www.edgepedia.org/detrended-fluctuation-analysis
