Detrended fluctuation analysis explained
In stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analysing time series that appear to be long-memory processes (diverging correlation time, e.g. power-law decaying autocorrelation function) or 1/f noise.
The obtained exponent is similar to the Hurst exponent, except that DFA may also be applied to signals whose underlying statistics (such as mean and variance) or dynamics are non-stationary (changing with time). It is related to measures based upon spectral techniques such as autocorrelation and Fourier transform.
Peng et al. introduced DFA in 1994 in a paper that has been cited over 3,000 times as of 2022[1] and represents an extension of the (ordinary) fluctuation analysis (FA), which is affected by non-stationarities.
Definition
Algorithm
.
Compute its average value
.
Sum it into a process
Xt=\sum
(xi-\langlex\rangle)
. This is the
cumulative sum, or
profile, of the original time series. For example, the profile of an i.i.d.
white noise is a standard
random walk.
Select a set
of integers, such that
, the smallest
, the largest
, and the sequence is roughly distributed evenly in log-scale:
log(n2)-log(n1) ≈ log(n3)-log(n2) ≈ …
. In other words, it is approximately a
geometric progression.
[2] For each
, divide the sequence
into consecutive segments of length
. Within each segment, compute the
least squares straight-line fit (the
local trend). Let
be the resulting piecewise-linear fit.
Compute the root-mean-square deviation from the local trend (local fluctuation):And their root-mean-square is the total fluctuation:
(If
is not divisible by
, then one can either discard the remainder of the sequence, or repeat the procedure on the reversed sequence, then take their root-mean-square.
[3])
.
[4] [5] Interpretation
A straight line of slope
on the log-log plot indicates a statistical self-affinity of form
. Since
monotonically increases with
, we always have
.
The scaling exponent
is a generalization of the
Hurst exponent, with the precise value giving information about the series self-correlations:
: anti-correlated
: uncorrelated,
white noise
: correlated
: 1/f-noise,
pink noise
: non-stationary, unbounded
:
Brownian noiseBecause the expected displacement in an uncorrelated random walk of length N grows like
, an exponent of
would correspond to uncorrelated white noise. When the exponent is between 0 and 1, the result is fractional Gaussian noise.
Pitfalls in interpretation
Though the DFA algorithm always produces a positive number
for any time series, it does not necessarily imply that the time series is self-similar.
Self-similarity requires the log-log graph to be sufficiently linear over a wide range of
. Furthermore, a combination of techniques including
maximum likelihood estimation (MLE), rather than least-squares has been shown to better approximate the scaling, or power-law, exponent.
[6] Also, there are many scaling exponent-like quantities that can be measured for a self-similar time series, including the divider dimension and Hurst exponent. Therefore, the DFA scaling exponent
is not a
fractal dimension, and does not have certain desirable properties that the
Hausdorff dimension has, though in certain special cases it is related to the box-counting dimension for the graph of a time series.
Generalizations
Generalization to polynomial trends (higher order DFA)
The standard DFA algorithm given above removes a linear trend in each segment. If we remove a degree-n polynomial trend in each segment, it is called DFAn, or higher order DFA.[7]
Since
is a cumulative sum of
, a linear trend in
is a constant trend in
, which is a constant trend in
(visible as short sections of "flat plateaus"). In this regard, DFA1 removes the mean from segments of the time series
before quantifying the fluctuation.
Similarly, a degree n trend in
is a degree (n-1) trend in
. For example, DFA1 removes linear trends from segments of the time series
before quantifying the fluctuation, DFA1 removes parabolic trends from
, and so on.
The Hurst R/S analysis removes constant trends in the original sequence and thus, in its detrending it is equivalent to DFA1.
Generalization to different moments (multifractal DFA)
DFA can be generalized by computingthen making the log-log plot of
, If there is a strong linearity in the plot of
, then that slope is
.
[8] DFA is the special case where
.
Multifractal systems scale as a function
. Essentially, the scaling exponents need not be independent of the scale of the system. In particular, DFA measures the scaling-behavior of the second moment-fluctuations.
Kantelhardt et al. intended this scaling exponent as a generalization of the classical Hurst exponent. The classical Hurst exponent corresponds to
for stationary cases, and
for nonstationary cases.
[9] Applications
The DFA method has been applied to many systems, e.g. DNA sequences,[10] [11] neuronal oscillations,[12] speech pathology detection,[13] heartbeat fluctuation in different sleep stages,[14] and animal behavior pattern analysis.[15]
The effect of trends on DFA has been studied.[16]
Relations to other methods, for specific types of signal
For signals with power-law-decaying autocorrelation
In the case of power-law decaying auto-correlations, the correlation function decays with an exponent
:
.In addition the power spectrum decays as
.The three exponents are related by:
and
.The relations can be derived using the
Wiener–Khinchin theorem. The relation of DFA to the power spectrum method has been well studied.
[17] Thus,
is tied to the slope of the power spectrum
and is used to describe the color of noise by this relationship:
.
For fractional Gaussian noise
For fractional Gaussian noise (FGN), we have
, and thus
, and
, where
is the
Hurst exponent.
for FGN is equal to
.
[18] For fractional Brownian motion
For fractional Brownian motion (FBM), we have
, and thus
, and
, where
is the
Hurst exponent.
for FBM is equal to
.
[9] In this context, FBM is the cumulative sum or the
integral of FGN, thus, the exponents of theirpower spectra differ by 2.
See also
External links
Notes and References
- Peng. C.K.. 3498343. Mosaic organization of DNA nucleotides. Phys. Rev. E. 1994. 49. 2. 1685–1689. 10.1103/physreve.49.1685. 9961383. etal. 1994PhRvE..49.1685P. free.
- Hardstone . Richard . Poil . Simon-Shlomo . Schiavone . Giuseppina . Jansen . Rick . Nikulin . Vadim . Mansvelder . Huibert . Linkenkaer-Hansen . Klaus . 2012 . Detrended Fluctuation Analysis: A Scale-Free View on Neuronal Oscillations . Frontiers in Physiology . 3 . 450 . 10.3389/fphys.2012.00450 . 23226132 . 3510427 . 1664-042X . free .
- Zhou . Yu . Leung . Yee . 2010-06-21 . Multifractal temporally weighted detrended fluctuation analysis and its application in the analysis of scaling behavior in temperature series . Journal of Statistical Mechanics: Theory and Experiment . 2010 . 6 . P06021 . 10.1088/1742-5468/2010/06/P06021 . 119901219 . 1742-5468.
- Peng. C.K.. 722880. Quantification of scaling exponents and crossover phenomena in nonstationary heartbeat time series. Chaos. 1994. 49. 1. 82–87. 10.1063/1.166141. etal. 11538314. 1995Chaos...5...82P.
- Bryce. R.M.. Sprague. K.B.. Revisiting detrended fluctuation analysis. Sci. Rep.. 2012. 2. 315. 10.1038/srep00315. 3303145. 22419991. 2012NatSR...2E.315B.
- Clauset . Aaron . Rohilla Shalizi . Cosma . Newman . M. E. J. . 2009 . Power-Law Distributions in Empirical Data . SIAM Review . 51 . 4 . 661–703 . 0706.1062 . 2009SIAMR..51..661C . 10.1137/070710111 . 9155618.
- Kantelhardt J.W. . etal . 2001 . Detecting long-range correlations with detrended fluctuation analysis . Physica A . 295 . 3–4 . 441–454 . cond-mat/0102214 . 2001PhyA..295..441K . 10.1016/s0378-4371(01)00144-3 . 55151698.
- H.E. Stanley . J.W. Kantelhardt . S.A. Zschiegner . E. Koscielny-Bunde . S. Havlin . A. Bunde . 2002 . Multifractal detrended fluctuation analysis of nonstationary time series . Physica A . 316 . 1–4 . 87–114 . physics/0202070 . 2002PhyA..316...87K . 10.1016/s0378-4371(02)01383-3 . 18417413 . 2011-07-20 . 2018-08-28 . https://web.archive.org/web/20180828134644/http://havlin.biu.ac.il/Publications.php?keyword=Multifractal+detrended+fluctuation+analysis+of+nonstationary+time+series++&year=*&match=all . dead .
- Movahed . M. Sadegh . et al . 2006 . Multifractal detrended fluctuation analysis of sunspot time series . Journal of Statistical Mechanics: Theory and Experiment . 02.
- Buldyrev. Long-Range Correlation-Properties of Coding And Noncoding Dna-Sequences- Genbank Analysis. Phys. Rev. E. 1995. 51. 5. 5084–5091. 10.1103/physreve.51.5084. 9963221. etal. 1995PhRvE..51.5084B.
- Bunde A. Havlin S. Fractals and Disordered Systems, Springer, Berlin, Heidelberg, New York. 1996.
- Hardstone. Richard. Poil, Simon-Shlomo . Schiavone, Giuseppina . Jansen, Rick . Nikulin, Vadim V. . Mansvelder, Huibert D. . Linkenkaer-Hansen, Klaus . Detrended Fluctuation Analysis: A Scale-Free View on Neuronal Oscillations. Frontiers in Physiology. 1 January 2012. 3. 450. 10.3389/fphys.2012.00450. 23226132. 3510427. free .
- Book: http://www.robots.ox.ac.uk/~sjrob/Pubs/NonlinearBiophysicalVoiceDisorderDetection.pdf . 10.1109/ICASSP.2006.1660534. Nonlinear, Biophysically-Informed Speech Pathology Detection. 2006 IEEE International Conference on Acoustics Speed and Signal Processing Proceedings. 2. II-1080-II-1083. 2006. Little. M.. McSharry. P.. Moroz. I.. Irene Moroz . Roberts. S.. 1-4244-0469-X. 11068261 .
- Bunde A.. 21568275. Correlated and uncorrelated regions in heart-rate fluctuations during sleep. Phys. Rev. E. 2000. 85 . 17. 3736–3739. 10.1103/physrevlett.85.3736. etal. 11030994. 2000PhRvL..85.3736B.
- Bogachev . Mikhail I. . Lyanova . Asya I. . Sinitca . Aleksandr M. . Pyko . Svetlana A. . Pyko . Nikita S. . Kuzmenko . Alexander V. . Romanov . Sergey A. . Brikova . Olga I. . Tsygankova . Margarita . Ivkin . Dmitry Y. . Okovityi . Sergey V. . Prikhodko . Veronika A. . Kaplun . Dmitrii I. . Sysoev . Yuri I. . Kayumov . Airat R. . March 2023 . Understanding the complex interplay of persistent and antipersistent regimes in animal movement trajectories as a prominent characteristic of their behavioral pattern profiles: Towards an automated and robust model based quantification of anxiety test data . Biomedical Signal Processing and Control . en . 81 . 104409 . 10.1016/j.bspc.2022.104409. 254206934 .
- Hu, K.. Effect of trends on detrended fluctuation analysis. Phys. Rev. E. 2001. 64 . 1. 011114. 10.1103/physreve.64.011114. 11461232. etal. physics/0103018. 2001PhRvE..64a1114H. 2524064 .
- Heneghan. 10791480. Establishing the relation between detrended fluctuation analysis and power spectral density analysis for stochastic processes. Phys. Rev. E. 2000. 62 . 5. 6103–6110. 10.1103/physreve.62.6103. 11101940. etal. 2000PhRvE..62.6103H.
- Taqqu . Murad S. . et al . Estimators for long-range dependence: an empirical study. . Fractals . 1995 . 3 . 4 . 785–798. 10.1142/S0218348X95000692 .