Given a bounded time series of length, where, integration or summation first converts this into an unbounded process : where denotes the mean value of the time series. is called cumulative sum or profile. This process converts, for example, an i.i.d. white noise process into a random walk. Next, is divided into time windows of length samples each, and a local least squares straight-line fit is calculated by minimising the squared errors within each time window. Let indicate the resulting piecewise sequence of straight-line fits. Then, the root-mean-square deviation from the trend, the fluctuation, is calculated: Finally, this process of detrending followed by fluctuation measurement is repeated over a range of different window sizes, and a log-log graph of against is constructed. A straight line on this log-log graph indicates statistical self-affinity expressed as. The scaling exponent is calculated as the slope of a straight line fit to the log-log graph of against using least-squares. This exponent is a generalization of the Hurst exponent. Because 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, with the precise value giving information about the series self-correlations:
Trends of higher order can be removed by higher order DFA, where a linear fit is replaced by a polynomial fit. In the described case, linear fits are applied to the profile, thus it is called DFA1. To remove trends of higher order, DFA, uses polynomial fits of order. Due to the summation from to, linear trends in the mean of the profile represent constant trends in the initial sequence, and DFA1 only removes such constant trends in the. In general DFA of order removes trends of order. For linear trends in the mean of at least DFA2 is needed. The Hurst R/S analysis removes constant trends in the original sequence and thus, in its detrending it is equivalent to DFA1. The DFA method was applied to many systems; e.g., DNA sequences, neuronal oscillations, speech pathology detection, and heartbeat fluctuation in different sleep stages. Effect of trends on DFA were studied in and relation to the power spectrum method is presented in. Since in the fluctuation function the square is used, DFA measures the scaling-behavior of the second moment-fluctuations, this means. The multifractal generalization uses a variable moment and provides. Kantelhardt et al. intended this scaling exponent as a generalization of the classical Hurst exponent. The classical Hurst exponent corresponds to the second moment for stationary cases and to the second moment minus 1 for nonstationary cases.
Relations to other methods
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 exponent are related by:
and
.
The relations can be derived using the Wiener–Khinchin theorem. 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, we have, and thus, and, where is the Hurst exponent. for FGN is equal to. For fractional Brownian motion, we have, and thus, and, where is the Hurst exponent. for FBM is equal to. In this context, FBM is the cumulative sum or the integral of FGN, thus, the exponents of their power spectra differ by 2.
Pitfalls in interpretation
As with most methods that depend upon line fitting, it is always possible to find a number by the DFA method, but this does not necessarily imply that the time series is self-similar. Self-similarity requires that the points on the log-log graph are sufficiently collinear across a very wide range of window sizes. Furthermore, a combination of techniques including MLE, rather than least-squares has been shown to better approximate the scaling, or power-law, exponent. 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 sharing all the desirable properties of the Hausdorff dimension, for example, although in certain special cases it can be shown to be related to the box-counting dimension for the graph of a time series.
Multifractality and Multifractal Detrended Fluctuation Analysis
It isn't always the case that the scaling exponents are independent of the scale of the system. In the case depends on the power extracted from where the previous DFA is. Multifractal systems scale as a function. To uncover multifractality, Multifractal Detrended Fluctuation Analysis is one possible method.