Open Access
This article is

- freely available
- re-usable

*Entropy*
**2017**,
*19*(6),
261;
https://doi.org/10.3390/e19060261

Article

Spurious Results of Fluctuation Analysis Techniques in Magnitude and Sign Correlations

Departamento de Física Aplicada II, E.T.S.I. de Telecomunicación, Universidad de Málaga, 29071 Málaga, Spain

^{*}

Author to whom correspondence should be addressed.

Academic Editor:
Gunnar Pruessner

Received: 10 May 2017 / Accepted: 2 June 2017 / Published: 7 June 2017

## Abstract

**:**

Fluctuation Analysis (FA) and specially Detrended Fluctuation Analysis (DFA) are techniques commonly used to quantify correlations and scaling properties of complex time series such as the observable outputs of great variety of dynamical systems, from Economics to Physiology. Often, such correlated time series are analyzed using the magnitude and sign decomposition, i.e., by using FA or DFA to study separately the sign and the magnitude series obtained from the original signal. This approach allows for distinguishing between systems with the same linear correlations but different dynamical properties. However, here we present analytical and numerical evidence showing that FA and DFA can lead to spurious results when applied to sign and magnitude series obtained from power-law correlated time series of fractional Gaussian noise (fGn) type. Specifically, we show that: (i) the autocorrelation functions of the sign and magnitude series obtained from fGns are always power-laws; However, (ii) when the sign series presents power-law anticorrelations, FA and DFA wrongly interpret the sign series as purely uncorrelated; Similarly, (iii) when analyzing power-law correlated magnitude (or volatility) series, FA and DFA fail to retrieve the real scaling properties, and identify the magnitude series as purely uncorrelated noise; Finally, (iv) using the relationship between FA and DFA and the autocorrelation function of the time series, we explain analytically the reason for the FA and DFA spurious results, which turns out to be an intrinsic property of both techniques when applied to sign and magnitude series.

Keywords:

complex time series; power-law correlations; detrended fluctuation analysis; magnitude and sign decomposition## 1. Introduction

Since the observation of the Hurst effect [1] in the Nile river, a huge number of dynamical systems whose observable outputs are time series with complex long-range power-law correlations and scaling properties have been identified. The diversity of such time series include meteorological data, physiological signals such as heart rate, brain activity, gait or postural system, biological signals as DNA sequences, stock market activity, seismic signals and many others. In order to properly analyze this great variety of (possibly non-stationary) signals, several techniques were proposed. In this work, we consider two of them: Fluctuation Analysis (FA) [2] and Detrended Fluctuation Analysis (DFA) [3]. Both are based on similar grounds, and try to characterize the scaling properties of the fluctuations of a signal. In particular, DFA has probably become the standard method of choice when analyzing complex time series and it has been used in hundreds of scientific articles.

Often, given a non-stationary strongly correlated time series $\left\{{Y}_{i}\right\},i=1,2,\dots ,N$ i.e., of fractional Brownian motion type, its increment time series $\left\{{x}_{i}\right\}$ given by ${x}_{i}={Y}_{i+1}-{Y}_{i}$ is more informative and can be easier to analyze than the original series itself. On the one hand, the dynamical properties of the increments can shed light on the underlying dynamics of the system. On the other hand, the increment series is very likely (quasi)stationary, i.e., of fractional Gaussian noise type. However, for nonlinear systems, it is worth going beyond the study of linear correlations since they do not account for all the dynamical properties of the systems. For example, increment time series with identical linear correlations may well correspond to systems with different nonlinear and multifractal behavior [4,5]. To overcome this problem and break the possible degeneration, the magnitude and sign decomposition method was proposed [4], consisting of studying separately the correlation properties of the magnitude and sign of the increment time series, typically using DFA or FA. The correlations in the magnitude series (termed volatility series in Economics contexts) are usually related to nonlinear correlations and multifractal properties [4,5,6,7]. Intuitively, the magnitude series carries the information on how big are the changes in the original signal. In contrast, the correlations in the sign series are uniquely determined by the linear correlations [4,6] and, from an intuitive point of view, the sign series provide the information of the direction of the changes of the original signal. The applications of the magnitude and sign decomposition method include heart rate analysis [8,9], fluid dynamics [10], geological [11,12], geophysical [13,14], and economical time series [15].

In this work, we use fractional Gaussian noises with different correlation strengths as a model for typical increment time series, apply to them the magnitude and sign decomposition method and study their correlations by using both FA and DFA. We obtain that, below a certain degree of the strength of the correlations (different for sign and magnitude series), FA and DFA interpret that the magnitude and sign series are purely uncorrelated. However, by studying analytically and numerically the corresponding autocorrelation functions, we show that, in all cases, the magnitude and sign series are power-law correlated, and therefore that FA and DFA provide spurious results. Finally, we explain the origin of these spurious results by obtaining analytically the FA and DFA scaling properties when applied to sign and magnitude series.

The paper is organized as follows: in Section 2, we introduce FA and DFA, and the analytical relationship between both techniques and the autocorrelation function is presented in Section 3. The magnitude and sign decomposition method is described in Section 4, and the results of FA and DFA when analyzing magnitude and sign series obtained from fractional Gaussian noises are presented in Section 5. In Section 6, we obtain the exact autocorrelation functions of the magnitude and sign series analyzed in Section 5 and show that the FA and DFA scaling results are spurious, and the reason for these results is analyzed in Section 7. Finally, we present our conclusions.

## 2. Fluctuation Analysis and Detrended Fluctuation Analysis

Let us consider a stationary time series $\left\{{x}_{i}\right\}$ ($i=1,2,...,N)$. The autocorrelation function $C\left(r\right)$ of $\left\{{x}_{i}\right\}$ can be calculated as
where $\langle \dots \rangle $ denotes average over the whole time series, and ${\sigma}^{2}$ is the variance of the time series. Without loss of generality, in the following, we assume that $\u2329{x}_{i}\u232a=0$. When the time series $\left\{{x}_{i}\right\}$ is long-range power-law correlated, such as, for example, in fractional Gaussian noises (fGn), then its autocorrelation function, $C\left(r\right),$ behaves asymptotically as a power law of the lag r [16]:
where H is the well-known Hurst exponent with values in the range $H\in (0,1)$, and then the autocorrelation exponent $\gamma $ given by $\gamma =2-2H$, must be in the range $\gamma \in (0,2)$. For $\gamma <1$ ($H>0.5$), the correlations are positive, while for $\gamma >1$$(H<0.5),$ the time series is anticorrelated. Note that, for the special case $\gamma =1$ ($H=0.5$), the autocorrelation function vanishes, and the time series is uncorrelated (white noise behavior).

$$C\left(r\right)=\frac{\langle {x}_{i}{x}_{i+r}\rangle -{\langle {x}_{i}\rangle}^{2}}{{\sigma}^{2}},$$

$$C\left(r\right)\simeq \frac{H(2H-1)}{{r}^{2-2H}}\sim \frac{\mathrm{sign}(1-\gamma )}{{r}^{\gamma}},$$

However, in many cases, the autocorrelation function is not convenient to determine the exponent $\gamma $, since $C\left(r\right)$ is noisy and very sensitive to the time series size N [16,17], and it is only properly estimated for large N, very often not available in real experiments. This is the reason motivating the use of indirect methods to quantify correlations and scaling, being paradigmatic examples Fluctuation Analysis and Detrended Fluctuation Analysis.

Fluctuation Analysis (FA) [2,18] is a technique aimed at calculating the scaling properties of the fluctuations of a given stationary signal. It works as follows: the time series is interpreted as the steps of a walk in a diffusion process, and then consider the “accumulated walk” ${Y}_{j}$ of the signal as

$${Y}_{j}=\sum _{i=1}^{j}{x}_{i}.$$

The FA method tries to determine the averaged diffused distance in ℓ steps as the Mean Square Distance ${F}_{FA}\left(\ell \right)$ obtained as:
Scaling is present when
Typically, $\alpha $ is estimated as the slope of a linear fitting of $\mathrm{log}\left({F}_{FA}\left(\ell \right)\right)$ vs. $\mathrm{log}\left(\ell \right)$. The exponent $\alpha $ quantifies the strength of the correlations present in the time series. The exponents $\gamma $ and $\alpha $ are related via [19,20,21]
Then, for stationary correlated signals, $\alpha \in (0,1)$ and it coincides with the Hurst exponent H (Equation (2)). $\alpha =0.5$ indicates absence of correlations (white noise), $\alpha >0.5$ indicates positive power-law correlations which are stronger as $\alpha $ increases, and $\alpha <0.5$ indicates anticorrelations, stronger as $\alpha $ decreases.

$${F}_{FA}\left(\ell \right)=\sqrt{\langle {({Y}_{i+\ell}-{Y}_{i})}^{2}\rangle}.$$

$${F}_{FA}\left(\ell \right)\sim {\ell}^{\alpha}.$$

$$\gamma =2-2\alpha .$$

Detrended Fluctuation Analysis was created [3] to solve some drawbacks of FA, especially the ones related to the presence of non-stationarities in the time series. The behavior of DFA when applied to signals with different characteristics (trends, nonlinear filters, etc.) has been intensively studied [22,23] and, since then, DFA has become one of the standard methods used to analyze complex time series in many scientific fields [15,24,25]. DFA works as follows: (i) calculate the “accumulated walk” ${Y}_{j}$ (3) of the analyzed time series ${x}_{i}$ of length N; (ii) divide the walk ${Y}_{j}$ into boxes of equal length ℓ (the scale of observation); (iii) In each box of length ℓ, calculate a linear fit of ${Y}_{j}$ to determine the linear trend within that box. The Y coordinate of the fit line in each box is denoted by ${Y}_{\ell ,j}$; (iv) the walk ${Y}_{j}$ is detrended by subtracting the local trend ${Y}_{\ell ,j}$ in each box of length ℓ; and (v) for a given box size ℓ, the root mean-square (r.m.s.) fluctuation for the detrended walk is calculated:
and (vi) the above computation is repeated for a broad range of scales (box sizes ℓ) in order to provide a relationship between ${F}_{DFA}\left(\ell \right)$ and the scale ℓ. As in the case of FA, scaling is present when
This equation is identical to Equation (5), and the exponent $\alpha $ is also the same and with the same interpretation as the one in Equation (5) when the analyzed signal is stationary and power-law correlated ($0<\alpha <1$), i.e., of fractional Gaussian noise type. However, DFA can be also applied to non-stationary long-range correlated signals of fractional Brownian motion type, and in this case, $1<\alpha <2$. For example, for the standard Brownian motion, $\alpha =3/2$.

$${F}_{DFA}\left(\ell \right)=\sqrt{\langle {({Y}_{j}-{Y}_{\ell ,j})}^{2}\rangle};$$

$${F}_{DFA}\left(\ell \right)\sim {\ell}^{\alpha}.$$

In this work, we restrict ourselves to the case of stationary long-range correlated signals ($0<\alpha <1$), where both FA and DFA can be applied.

## 3. The Relationship of the Autocorrelation Function with FA and DFA

When the analyzed time series $\left\{{x}_{i}\right\}$ is stationary, then it is possible to obtain analytical equations relating the autocorrelation function $C\left(r\right)$ and the FA and DFA fluctuation functions ${F}_{FA}\left(\ell \right)$ and ${F}_{DFA}\left(\ell \right)$. In the case of FA, the calculation is simpler. Let us consider that $\left\{{x}_{i}\right\}$ has zero mean and variance ${\sigma}^{2}$. Starting from Equation (4), note first that
After expanding the square in the R.H.S. of Equation (9), we obtain
and then, noting that the series is stationary with 0 mean and variance ${\sigma}^{2}$, we can evaluate the averages to get
in agreement with [26].

$$\langle {({Y}_{i+\ell}-{Y}_{i})}^{2}\rangle =\langle {({x}_{i+1}+{x}_{i+2}+\dots +{x}_{i+\ell})}^{2}\rangle .$$

$$\langle {\left(\dots \right)}^{2}\rangle =\u2329\sum _{j=1}^{\ell}{x}_{i+j}^{2}+2\sum _{j=1}^{\ell -1}\sum _{k=j+1}^{\ell}{x}_{i+j}{x}_{i+k}\u232a,$$

$${F}_{FA}^{2}\left(\ell \right)={\sigma}^{2}\left(\ell +2\sum _{r=1}^{\ell -1}(\ell -r)C\left(r\right)\right),$$

For the case of DFA, the relationship between ${F}_{DFA}\left(\ell \right)$ and $C\left(r\right)$ is more complicated with an elaborated derivation recently obtained by Höll and Kantz [27]. The final result is
with
and
We note that, although expressed in a different manner as in Equation (11), the relation between ${F}_{DFA}^{2}\left(\ell \right)$ and $C\left(r\right)$ was also obtained by Talkner and Weber [28].

$${F}_{DFA}^{2}\left(\ell \right)={\sigma}^{2}\left(W\left(\ell \right)+\sum _{r=1}^{\ell -1}L(\ell ,r)C\left(r\right)\right),$$

$$W\left(\ell \right)=\frac{{\ell}^{2}-4}{15\ell},$$

$$L(\ell ,r)=\frac{1}{15({\ell}^{4}-{\ell}^{2})}\left[(3{r}^{5}+(-20{\ell}^{2}+5){r}^{3}+30({\ell}^{3}-\ell ){r}^{2}+(-15{\ell}^{4}+35{\ell}^{2}-8)r+2{\ell}^{5}-10{\ell}^{3}+8\ell \right].$$

We end this section with two important remarks on Equations (10) and (11). First, the variance ${\sigma}^{2}$ of the time series ${x}_{i}$ appears as a multiplicative constant in both equations, and then from now on, we can consider without loss of generality that ${\sigma}^{2}=1$. Secondly, we want to stress that Equations (10) and (11) are exact results, and therefore independent of the particular behavior of the autocorrelation function $C\left(r\right)$ of $\left\{{x}_{i}\right\}$. Then, provided that $\left\{{x}_{i}\right\}$ is stationary, no matter whether the correlations are short- or long-ranged, positive or negative, power-law (with scaling) or exponentially decaying, etc., both equations hold.

## 4. Magnitude and Sign Decomposition. Volatility

As we mentioned above, the observable output of many complex systems, from heart rate to seismic signals, consists of time series with scaling properties. In many cases, such time series are non-stationary (of fractional Brownian motion type) and are originated as a consequence of the coupling of different underlying mechanisms. In order to shed light on the possible mechanisms responsible for the observed dynamics, the magnitude and sign decomposition method [4,6] is used. The method works as follows: given a non-stationary time series $\left\{{Y}_{i}\right\}$ ($i=1,\dots ,N+1$), first we obtain its increments time series $\left\{{x}_{i}\right\}$ as
Typically, the increment time series is stationary and approximately Gaussian, i.e., of fractional Gaussian noise type. Then, the increment time series is decomposed into the sign $\left\{{s}_{i}\right\}$ and the magnitude $\left\{{m}_{i}\right\}$ time series defined as:
The sign series carries the information about the direction of the increments (positive or negative) and the magnitude time series, the information about the size of the increments, i.e., whether the increment is big or small. The utility of the magnitude and sign decomposition method is then the possibility of studying independently both types of information [4,5,6,7,8,10]. In addition, the correlations of the sign series is associated with the linear correlations of the original signal [4,6], and the sign series contains also important information related to the recurrence intervals of the original signal [29]. In addition, the correlations in the magnitude series are usually associated with nonlinear correlations and multifractal properties [4,5,6,7].

$${x}_{i}={Y}_{i+1}-{Y}_{i},\phantom{\rule{1.em}{0ex}}i=1,2,\dots ,N.$$

$$\begin{array}{ccc}\hfill {s}_{i}& =& \mathrm{sign}\left({x}_{i}\right),\hfill \\ \hfill {m}_{i}& =& |{x}_{i}|,\phantom{\rule{1.em}{0ex}}i=1,2,\dots ,N.\hfill \end{array}$$

In the particular case of financial time series, which are strongly correlated and non-stationary, a convenient way to make stationary the time series consists of a logarithmic transformation. For example, let us consider a stock prize time series $\left\{{P}_{i}\right\}$, ($i=1,\dots ,N+1$), where the index i defines a time unit (minute, hour, day, etc.). For these series, instead of the increments of $\left\{{P}_{i}\right\}$, the returns time series $\left\{{r}_{i}\right\}$ is defined as [15]
Typically, the return time series $\left\{{r}_{i}\right\}$ is correlated and approximately Gaussian with zero mean, and therefore of fractional Gaussian noise type. Then, in a similar way to Equation (15), one could analyze separately the sign and the magnitude series obtained from $\left\{{r}_{i}\right\}$. In economics, the magnitude of the returns time series $\left\{{r}_{i}\right\}$ is known as volatility [7,15] time series $\left\{{v}_{i}\right\}$, i.e.,

$${r}_{i}=\mathrm{log}\left(\frac{{P}_{i+1}}{{P}_{i}}\right)\phantom{\rule{1.em}{0ex}}i=1,\dots ,N.$$

$${v}_{i}=\left|{r}_{i}\right|,\phantom{\rule{1.em}{0ex}}i=1,\dots ,N.$$

Then, in general, both the increment $\left\{{x}_{i}\right\}$ and the return $\left\{{r}_{i}\right\}$ time series are stationary and can be modeled to a first approximation by fractional Gaussian noises. Therefore, the correlation properties of their corresponding sign and magnitude (or volatility) [7] time series can be studied by decomposing fGns as in Equation (15). In the next section, we study the scaling properties of the sign and magnitude of fGns by applying FA and DFA.

## 5. Magnitude and Sign Study Using FA and DFA

Gaussian linear noises of fGn type can be generated using the Fourier Filtering Method (FFM) [30,31]. FFM works as follows: (i) generate a Gaussian white noise in the time domain $\left\{{g}_{i}\right\}$; (ii) Fourier-transform $\left\{{g}_{i}\right\}$ to obtain a white noise $\left\{{G}_{f}\right\}$ in the frequency domain; (iii) multiply $\left\{{G}_{f}\right\}$ by a power-law of the type ${f}^{-\beta /2}$; and (iv) Fourier-transform the result back to time domain to obtain $\left\{{x}_{i}\right\}$. Then, the power spectrum $S\left(f\right)$ of the final time series $\left\{{x}_{i}\right\}$ behaves by constructions as:
with $\beta \in (-1,1)$ for stationary time series. Since $S\left(f\right)$ behaves as a power-law, then according to the Wiener–Khinchim theorem, $C\left(r\right)$ behaves also as a power law (see Equation (2)), with the exponents $\beta $ and $\gamma $ related via $\gamma =1-\beta $. Then, using Equation (6), the three exponents $\alpha $, $\beta $ and $\gamma $ are related as [21]
Due to the relation (19), we use for convenience the FA and DFA exponent $\alpha $ as the input parameter of FFM, which we term ${\alpha}_{\mathrm{in}}$ from now on. Then, we choose a large time series size N to avoid as much as possible finite-size effects. For any ${\alpha}_{\mathrm{in}}$ value, using FFM, we generate a large number of correlated time series $\left\{{x}_{i}\right\}$, each one with an exponent $\alpha ={\alpha}_{\mathrm{in}}$ by construction. Then, we decompose any individual series into its sign series $\left\{{s}_{i}\right\}$ and its magnitude series $\left\{{m}_{i}\right\}$ (see Figure 1 for an example with small N) according to (15) and apply FA and DFA to $\left\{{s}_{i}\right\}$ and $\left\{{m}_{i}\right\}$ to obtain the sign ${\alpha}_{s}$ and magnitude ${\alpha}_{m}$ scaling exponents. Then, we average the sets of individual ${\alpha}_{s}$ and ${\alpha}_{m}$ values to obtain ${\alpha}_{s}\left({\alpha}_{\mathrm{in}}\right)$ and ${\alpha}_{m}\left({\alpha}_{\mathrm{in}}\right)$. The behavior of ${\alpha}_{s}$ and ${\alpha}_{m}$ as a function of ${\alpha}_{\mathrm{in}}$ is shown in Figure 2. We note that both FA and DFA provide very similar scaling exponents ${\alpha}_{s}$ and ${\alpha}_{m}$. For the sign series, ${\alpha}_{s}\simeq 0.5$ for ${\alpha}_{\mathrm{in}}<0.5$, and ${\alpha}_{s}\simeq {\alpha}_{\mathrm{in}}$ when ${\alpha}_{\mathrm{in}}>0.5$. In the magnitude series case, we observe that ${\alpha}_{m}\simeq 0.5$ for ${\alpha}_{\mathrm{in}}<0.75$, and ${\alpha}_{m}\simeq 2{\alpha}_{\mathrm{in}}-1$ when ${\alpha}_{\mathrm{in}}>0.75$. In both cases, the approximate equality ’≃’ tends to the strict equality as the series size N increases. In the particular case of DFA, these results are in agreement with previous works [5,7]. The most noticeable difference between FA and DFA is that, for a given large series size N, the former presents larger deviations from the asymptotic behaviors (20) and (21) than the latter when ${\alpha}_{\mathrm{in}}\to 1$ (Figure 2). Note that the limiting value ${\alpha}_{\mathrm{in}}=1$ corresponds to a non-stationary time series where FA is not applicable, and therefore a slower convergence of FA to the asymptotic results for ${\alpha}_{\mathrm{in}}$ close to 1 is expected.

$$S\left(f\right)\sim \frac{1}{{f}^{\beta}},$$

$$\alpha =1-\frac{\gamma}{2}=\frac{\beta +1}{2}.$$

In the asymptotic limit $N\to \infty $, the ${\alpha}_{s}$ and ${\alpha}_{m}$ results provided by both FA and DFA can be summarized as follows:

$${\alpha}_{s}=\left\{\begin{array}{ccc}0.5& \mathrm{for}& {\alpha}_{\mathrm{in}}\le 0.5,\\ {\alpha}_{\mathrm{in}}& \mathrm{for}& {\alpha}_{\mathrm{in}}>0.5,\end{array}\right.$$

$${\alpha}_{m}=\left\{\begin{array}{ccc}0.5& \mathrm{for}& {\alpha}_{\mathrm{in}}\le 0.75,\\ 2{\alpha}_{\mathrm{in}}-1& \mathrm{for}& {\alpha}_{\mathrm{in}}>0.75.\end{array}\right.$$

The common interpretation of these results is the following: (i) the sign series of fractional Gaussian noises with ${\alpha}_{\mathrm{in}}\le 0.5$ is uncorrelated (white noise behavior) because in that case ${\alpha}_{s}$ = 0.5. However, when ${\alpha}_{\mathrm{in}}>0.5$, the scaling properties of the time series and of its sign series are the same since for that range ${\alpha}_{s}={\alpha}_{\mathrm{in}}$. Note that this interpretation precludes the existence of anticorrelations in the sign series, for which ${\alpha}_{s}<0.5$ are expected; and (ii) the magnitude series of fractional Gaussian noises with ${\alpha}_{\mathrm{in}}\le 0.75$ is uncorrelated (white noise behavior) since ${\alpha}_{m}=0.5$. In contrast, for ${\alpha}_{\mathrm{in}}$ > 0.75, the magnitude scaling exponent depends linearly on ${\alpha}_{\mathrm{in}}$ as ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$. According to this, the magnitude time series should behave randomly and thus without correlations for $0<{\alpha}_{\mathrm{in}}<0.75$.

However, in the next sections, we show that the above interpretation is misleading: on the one hand, the sign series presents power-law anticorrelations for ${\alpha}_{\mathrm{in}}\le 0.5$. On the other hand, the magnitude series is power-law correlated for ${\alpha}_{\mathrm{in}}\le 0.75$. The problem is that both FA and DFA do not work properly in the sign and magnitude series, and therefore the scaling provided by both methods is spurious for ${\alpha}_{\mathrm{in}}\le 0.5$ in the sign case and for ${\alpha}_{\mathrm{in}}\le 0.75$ in the magnitude case.

## 6. Exact Autocorrelation Function of Magnitude and Sign Series

The correlations in the sign and magnitude series obtained from correlated and stationary time series of fractional Gaussian noise type can be derived analytically. Let x and y be two stochastic Gaussian variables, and let us assume that the linear correlation between both variables is C, i.e.,
where $\sigma $ denotes the standard deviation. Without loss of generality, from now on, we consider that $\langle x\rangle =\langle y\rangle =0$ and ${\sigma}_{x}={\sigma}_{y}=1$, i.e., x and y are of $N(0,1)$ type. Note that Equation (22) is equivalent to affirm that the joint probability density of x and y, $p(x,y)$, is the bivariate Gaussian distribution. If x and y are $N(0,1)$ variables, then $p(x,y)={(2\pi \sqrt{1-{C}^{2}})}^{-1}\mathrm{exp}\left[-({x}^{2}+{y}^{2}-2Cxy)/\left(2(1-{C}^{2})\right)\right]$. Now, let us consider the pairs of stochastic variables $\mathrm{sign}\left(x\right)$ and $\mathrm{sign}\left(y\right)$, and $\left|x\right|$ and $\left|y\right|$. Then, the correlation ${C}_{s}$ of the pair $\mathrm{sign}\left(x\right)$ and $\mathrm{sign}\left(y\right)$, and the correlation ${C}_{m}$ of the pair $\left|x\right|$ and $\left|y\right|$ are given by
where we have used that, as x and y are $N(0,1)$ variables, then $\langle \mathrm{sign}\left(x\right)\rangle $=$\langle \mathrm{sign}\left(y\right)\rangle $$=0$ and ${\sigma}_{\mathrm{sign}\left(x\right)}$=${\sigma}_{\mathrm{sign}\left(y\right)}$$=1$. In addition, $\langle \left|x\right|\rangle $=$\langle \left|y\right|\rangle $ = $\sqrt{2/\pi}$, and ${\sigma}_{\left|x\right|}$=${\sigma}_{\left|y\right|}$=$\sqrt{1-(2/\pi )}$.

$$C=\frac{\langle xy\rangle -\langle x\rangle \langle y\rangle}{{\sigma}_{x}{\sigma}_{y}},$$

$$\begin{array}{ccc}\hfill {C}_{s}& \equiv & \frac{\langle \mathrm{sign}\left(x\right)\mathrm{sign}\left(y\right)\rangle -\langle \mathrm{sign}\left(x\right)\rangle \langle \mathrm{sign}\left(y\right)\rangle}{{\sigma}_{\mathrm{sign}\left(x\right)}{\sigma}_{\mathrm{sign}\left(y\right)}}=\langle \mathrm{sign}\left(x\right)\mathrm{sign}\left(y\right)\rangle ,\hfill \end{array}$$

$$\begin{array}{ccc}\hfill {C}_{m}& \equiv & \frac{\langle \left|x\right|\left|y\right|\rangle -\langle \left|x\right|\rangle \langle \left|y\right|\rangle}{{\sigma}_{\left|x\right|}{\sigma}_{\left|y\right|}}=\frac{\langle \left|x\right|\left|y\right|\rangle -\frac{2}{\pi}}{1-\frac{2}{\pi}},\hfill \end{array}$$

Interestingly, both ${C}_{s}$ and ${C}_{m}$ are determined exactly by C. For ${C}_{s}$, Apostolov et al. have shown [32] that

$${C}_{s}=\frac{2}{\pi}\mathrm{arcsin}C.$$

In the ${C}_{m}$ case, we have obtained recently [9] that

$${C}_{m}=\frac{2C\mathrm{arcsin}C-2(1-\sqrt{1-{C}^{2}})}{\pi -2}.$$

In the time series language, Equations (25) and (26) can be easily written in terms of autocorrelation functions. Note that for a stationary and correlated Gaussian time series $\left\{{x}_{i}\right\}$, just replacing x by ${x}_{i}$ and y by ${x}_{i+r}$ in Equation (22), we obtain the autocorrelation function $C\left(r\right)$ (Equation (1)). Similarly, replacing $\mathrm{sign}\left(x\right)$ and $\mathrm{sign}\left(y\right)$ by $\mathrm{sign}\left({x}_{i}\right)$ and $\mathrm{sign}\left({x}_{i+r}\right)$, we obtain the autocorrelation function of the sign series ${C}_{s}\left(r\right)$. Finally, just replacing $\left|x\right|$ and $\left|y\right|$ by $|{x}_{i}|$ and $|{x}_{i+r}|$ in Equation (23), we obtain the autocorrelation function of the magnitude series, ${C}_{m}\left(r\right)$. Then, from (25) and (26), we can write directly
As $-1<C\left(r\right)<1$, we can plot ${C}_{s}\left(r\right)$ and ${C}_{m}\left(r\right)$ for any $C\left(r\right)\in (-1,1)$, and both curves are shown in Figure 3. The sign autocorrelation ${C}_{s}\left(r\right)$ is an odd function of $C\left(r\right)$, and then negative values of $C\left(r\right)$ produce negative values of ${C}_{s}\left(r\right)$. In other words, when the time series is (anti)correlated, the sign series is also (anti)correlated. In contrast, ${C}_{m}\left(r\right)$ is an even function of $C\left(r\right)$, and then no matter the sign of $C\left(r\right)$, the correlations in the magnitude series, ${C}_{m}\left(r\right)$, are always positive. In addition, note that both (27) and (28) are exact, independently of the behavior of $C\left(r\right)$ (positive or negative, power-law or exponentially decaying, etc.).

$$\begin{array}{cc}\hfill \phantom{\rule{-28.45274pt}{0ex}}& {C}_{s}\left(r\right)=\frac{2}{\pi}\mathrm{arcsin}C\left(r\right),\hfill \end{array}$$

$$\begin{array}{cc}\hfill \phantom{\rule{-28.45274pt}{0ex}}& {C}_{m}\left(r\right)=\frac{2C\left(r\right)\mathrm{arcsin}C\left(r\right)-2(1-\sqrt{1-{C}^{2}\left(r\right)})}{\pi -2}.\hfill \end{array}$$

Very typically, $C\left(r\right)$ is a decaying function of the lag r and then small for large enough r. Therefore, in these conditions, we can expand Equations (27) and (28) in a Taylor series of $C\left(r\right)$ and, considering only the first term in the expansions, we get
These two approximations are also shown in Figure 3 (dashed lines), and are fairly precise for $C\left(r\right)\in (-0.4,0.4)$. According to Equations (29) and (30), the correlations in the sign series behave as a linear function of $C\left(r\right)$, while the correlations in the magnitude series are quadratic with $C\left(r\right)$.

$$\begin{array}{c}\hfill {C}_{s}\left(r\right)\simeq \frac{2}{\pi}C\left(r\right),\end{array}$$

$$\begin{array}{c}\hfill {C}_{m}\left(r\right)\simeq \frac{{C}^{2}\left(r\right)}{\pi -2}.\end{array}$$

These last results have profound implications, especially when the analyzed time series are stationary Gaussian power-law correlated (fGns), as the cases studied in Section 5. Indeed, in that case, $C\left(r\right)$ behaves as a decaying power-law of r (Equation (2)) and for large enough r, using Equations (29) and (30), we obtain finally:
where, for convenience, we have used the FA and DFA exponents ${\alpha}_{\mathrm{in}}$ characterizing the original time series instead of H since they are equivalent in this case. Note that Equations (31) and (32) are valid for $\gamma \in (0,2)$ and then for ${\alpha}_{\mathrm{in}}\in (0,1)$. The consequences of these two equations are important: given a power-law correlated time series characterized by an exponent $\gamma \in (0,2)$ (or by ${\alpha}_{\mathrm{in}}=1-\gamma /2\in (0,1)$), the corresponding sign and magnitude series are also power-law correlated. In the sign series, its autocorrelation function exponent is identical to that of the original series, $\gamma $ (Equation (31)). In the magnitude series, the exponent characterizing ${C}_{m}\left(r\right)$ is given by twice the exponent $\gamma $ of the original series (Equation (32)). The only case in which there is absence of correlations in the three time series corresponds to ${\alpha}_{\mathrm{in}}=0.5$ or $\gamma =1$, where the three autocorrelation functions, $C\left(r\right)$, ${C}_{s}\left(r\right)$ and ${C}_{m}\left(r\right)$, vanish.

$$\begin{array}{c}\hfill {C}_{s}\left(r\right)\simeq \frac{2}{\pi}\frac{{\alpha}_{\mathrm{in}}(2{\alpha}_{\mathrm{in}}-1)}{{r}^{2-2{\alpha}_{\mathrm{in}}}}\propto \frac{\mathrm{sign}(1-\gamma )}{{r}^{\gamma}},\end{array}$$

$$\begin{array}{c}\hfill {C}_{m}\left(r\right)\simeq \frac{1}{\pi -2}\frac{{\alpha}_{\mathrm{in}}^{2}{(2{\alpha}_{\mathrm{in}}-1)}^{2}}{{r}^{2(2-2{\alpha}_{\mathrm{in}})}}\propto \frac{1}{{r}^{2\gamma}},\end{array}$$

To show the validity of these results, in Figure 4, we show the autocorrelation functions $C\left(r\right)$, ${C}_{s}\left(r\right)$ and ${C}_{m}\left(r\right)$ obtained numerically for power-law correlated synthetic $N(0,1)$ fractional Gaussian noises generated using FFM with different ${\alpha}_{\mathrm{in}}$ values. We observe that Equations (31) and (32) provide correct results: on the one hand, the sign autocorrelation function ${C}_{s}\left(r\right)$ behaves as a power law with the same exponent as the original time series. Indeed, both $C\left(r\right)$ and ${C}_{s}\left(r\right)$ behave as parallel power-laws and then differ essentially in a multiplicative constant, in agreement with Equation (29). This last equation has been used to plot the solid lines representing ${C}_{s}\left(r\right)$ in Figure 4. On the other hand, the magnitude autocorrelation function ${C}_{m}\left(r\right)$ behaves as a power-law with an exponent twice the exponent $\gamma $ of the original series, and the results for ${C}_{m}\left(r\right)$ are also in perfect agreement with Equation (30), which has been used to plot the dotted lines for ${C}_{m}\left(r\right)$ in Figure 4. One last remark concerning the results on Figure 4: for ${\alpha}_{\mathrm{in}}<0.5$, both the original and the sign series are power-law anticorrelated, i.e., $C\left(r\right),{C}_{s}\left(r\right)<0$, and, for this reason, we use the absolute values $\left|C\right(r\left)\right|$ and $|{C}_{s}\left(r\right)|$ in panels (e) and (f) to produce a log-log plot.

#### 6.1. Spurious Results and Misinterpretations of FA and DFA on Sign and Magnitude Series

According to our analytical (Equations (29)–(32)) and numerical results (Figure 4), the sign and magnitude series from power-law correlated fractional Gaussian noises are also power-law correlated. However, when FA and DFA are applied to these series, then the results shown in Figure 2 and summarized in Equations (20) and (21) spuriously indicate a different behavior.

For the sign series, since both $C\left(r\right)$ and ${C}_{s}\left(r\right)$ are power-laws with the same exponent $\gamma $, then one should expect that ${\alpha}_{s}={\alpha}_{\mathrm{in}}$ in the whole range ${\alpha}_{\mathrm{in}}\in (0,1)$. FA and DFA provide the correct result ${\alpha}_{s}={\alpha}_{\mathrm{in}}$ only in the case ${\alpha}_{\mathrm{in}}\in (0.5,1)$. However, both FA and DFA predict ${\alpha}_{s}=0.5$ (white noise behavior) when ${\alpha}_{\mathrm{in}}\in (0,0.5)$ or, in other words, the two techniques consider that the sign series is completely uncorrelated in this case, which is clearly not the case (see Figure 4e,f).

For the magnitude series, ${C}_{m}\left(r\right)$ behaves as a power-law with an exponent $2\gamma $, twice the exponent $\gamma $ of $C\left(r\right)$ (in Figure 4a–d). Then, according to Equation (6), one has ${\alpha}_{\mathrm{in}}=1-\gamma /2$ for the original series and ${\alpha}_{m}=1-\gamma $ for the magnitude series. Combining both expressions, we get that the relation between ${\alpha}_{\mathrm{in}}$ and ${\alpha}_{m}$ should be ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$, and this relation holds for ${\alpha}_{\mathrm{in}}\in (0,1)$. Both FA and DFA predict (correctly) ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$ only in the case ${\alpha}_{\mathrm{in}}\in (0.75,1)$. However, the two techniques wrongly estimate that ${\alpha}_{m}=0.5$ when ${\alpha}_{\mathrm{in}}\in (0,0.75)$ (Figure 2 and Equation (21)). In other words, FA and DFA consider that, for ${\alpha}_{\mathrm{in}}\le 0.75$, the magnitude series in completely uncorrelated (white noise behavior), which is clearly false (see Figure 4b–d).

Then, according to the autocorrelation function behavior, the results for ${\alpha}_{s}$ and ${\alpha}_{m}$ can be summarized as
The discrepancies between the values of ${\alpha}_{s}$ and ${\alpha}_{m}$ predicted using FA and DFA (Equations (20) and (21) and Figure 2 ) and the correct expected values for ${\alpha}_{s}$ and ${\alpha}_{m}$ given by Equation (33) are shown in Figure 5. Indeed, both expected values are linear functions of ${\alpha}_{\mathrm{in}}$, and lack of the abrupt corners exhibited by the FA and DFA results.

$$\left.\begin{array}{c}{\alpha}_{s}={\alpha}_{\mathrm{in}}\hfill \\ {\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1\hfill \end{array}\right\}\phantom{\rule{0.166667em}{0ex}}\phantom{\rule{0.166667em}{0ex}}\mathrm{for}\phantom{\rule{0.166667em}{0ex}}\phantom{\rule{0.166667em}{0ex}}\phantom{\rule{0.166667em}{0ex}}{\alpha}_{\mathrm{in}}\in (0,1).$$

Before concluding this section, we add a final remark on the behavior of ${\alpha}_{m}$: the correct result ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$ indicates that, for ${\alpha}_{\mathrm{in}}<0.75$, then ${\alpha}_{m}<0.5$. Traditionally, values of the FA and DFA scaling exponent $\alpha $ smaller than 0.5 are interpreted as an indicator of anticorrelations. However, this is not the case: we have proved above (Equations (28) and (30)) that, in general, the correlations in the magnitude series are always positive (see also Figure 3 and Figure 4) even in the case ${\alpha}_{m}<0.5$.

In the next section, we derive an analytical explanation for the spurious scaling results of FA and DFA on sign and magnitude series.

## 7. Analytical FA and DFA Scaling on Sign and Magnitude Series

Let us consider a fractional Gaussian noise with $\sigma =1$, and with an autocorrelation function given in terms of ${\alpha}_{\mathrm{in}}$ by
For this signal, by construction both FA and DFA give a scaling of the type:

$$C\left(r\right)\simeq \frac{{\alpha}_{\mathrm{in}}(2{\alpha}_{\mathrm{in}}-1)}{{r}^{2-2{\alpha}_{\mathrm{in}}}}.$$

$${F}_{FA}\left(\ell \right)\sim {F}_{DFA}\left(\ell \right)\sim {\ell}^{{\alpha}_{\mathrm{in}}}.$$

We analyze first the FA and DFA scaling properties of the sign series. We recall Equation (10) establishing the relationship between ${F}_{FA}^{2}\left(\ell \right)$ and $C\left(r\right)$. Since the sign series is also stationary, from Equation (10), we can also write
where ${F}_{s,FA}\left(\ell \right)$ is the FA fluctuation function for the sign series. As $C\left(r\right)$ decays as a power-law, for large enough ℓ, we can use the approximation (29) to write Equation (36) in terms of $C\left(r\right)$:
Note that the sum in Equation (37) also appears in Equation (10) and then, combining both equations, we finally obtain
This equation establishes the relationship between the FA fluctuation functions of the original series, ${F}_{FA}\left(\ell \right)$, and of the sign series, ${F}_{s,FA}\left(\ell \right)$, and explains perfectly the (spurious) ${\alpha}_{s}$ value provided by FA. Indeed, for an fGn, Equation (35) holds and then ${F}_{FA}\left(\ell \right)\sim {\ell}^{{\alpha}_{\mathrm{in}}}$. Thus, obviously for ${\alpha}_{\mathrm{in}}>0.5$, the second term in the sum inside the square root dominates for large ℓ and then ${F}_{s,FA}\left(\ell \right)\sim {\ell}^{{\alpha}_{\mathrm{in}}}$, i.e., ${\alpha}_{s}={\alpha}_{\mathrm{in}}$. In contrast, for ${\alpha}_{\mathrm{in}}<0.5$, the first term dominates for large ℓ and then ${F}_{s,FA}\left(\ell \right)\sim {\ell}^{1/2}$, i.e., ${\alpha}_{s}=1/2$. In other words, we recover exactly the numerical results in Equation (20).

$${F}_{s,FA}^{2}\left(\ell \right)=\ell +2\sum _{r=1}^{\ell -1}(\ell -r){C}_{s}\left(r\right),$$

$${F}_{s,FA}^{2}\left(\ell \right)=\ell +\frac{4}{\pi}\sum _{r=1}^{\ell -1}(\ell -r)C\left(r\right).$$

$${F}_{s,FA}\left(\ell \right)=\sqrt{\left(1-\frac{2}{\pi}\right)\ell +\left(\frac{2}{\pi}\right){F}_{FA}^{2}\left(\ell \right)}.$$

Similar calculations can be carried out for DFA: in this case, starting from Equation (11) and using Equation (29), we get:
where ${F}_{s,DFA}\left(\ell \right)$ is the DFA fluctuation function for the sign series. Again, the sum in Equation (39) also appears in Equation (11) and, combining both equations and using the definition of $W\left(\ell \right)$ in Equation (12), we obtain
This equation relates the DFA fluctuation function of the sign series, ${F}_{s,DFA}\left(\ell \right)$, to the DFA fluctuation function of the original series, ${F}_{DFA}\left(\ell \right)$. Similarly to the FA case, ${F}_{s,DFA}\left(\ell \right)$ presents two terms inside the square root, which can explain the ${\alpha}_{s}$ value provided by DFA. Indeed, when the original series is a fGn, then Equation (35) holds and ${F}_{DFA}\left(\ell \right)\sim {\ell}^{{\alpha}_{\mathrm{in}}}$. Thus, for ${\alpha}_{\mathrm{in}}>0.5$, the second term inside the square root dominates for large ℓ, and, therefore, ${F}_{s,DFA}\left(\ell \right)\sim {\ell}^{{\alpha}_{\mathrm{in}}}$, i.e., ${\alpha}_{s}={\alpha}_{\mathrm{in}}$. In contrast, for ${\alpha}_{\mathrm{in}}<0.5$, for large ℓ, the first term dominates and is proportional to ℓ, thus implying ${F}_{s,DFA}\left(\ell \right)\sim {\ell}^{1/2}$, i.e., ${\alpha}_{s}=1/2$. In other words, we also recover the numerical results in Equation (20), which are spurious for ${\alpha}_{\mathrm{in}}<0.5$.

$${F}_{s,DFA}^{2}\left(\ell \right)=W\left(\ell \right)+\frac{2}{\pi}\sum _{r=1}^{\ell -1}L(\ell ,r)C\left(r\right),$$

$${F}_{s,DFA}\left(\ell \right)=\sqrt{\left(1-\frac{2}{\pi}\right)\frac{{\ell}^{2}-4}{15\ell}+\left(\frac{2}{\pi}\right){F}_{DFA}^{2}\left(\ell \right)}.$$

In conclusion, the reason behind the spurious FA and DFA result ${\alpha}_{s}=1/2$ for ${\alpha}_{\mathrm{in}}<1/2$ is the presence of a first term proportional to ℓ inside the square root of Equations (38) and (40), which dominates for large ℓ when ${\alpha}_{\mathrm{in}}<1/2$. Note that this ℓ term should be absent in order to obtain the correct result ${\alpha}_{s}={\alpha}_{\mathrm{in}}$ for ${\alpha}_{\mathrm{in}}\in (0,1)$, but it is an intrinsic property of the FA and DFA techniques.

Next, we study the FA and DFA scaling properties of the magnitude series. Concerning FA, since the original series is an fGn, then the magnitude series is stationary and, from Equation (10), we can write
with ${\sigma}_{m}^{2}$ the variance of the magnitude series. Noting that we are considering fGns with ${\sigma}^{2}=1$, then ${\sigma}_{m}^{2}=1-2/\pi $. For large ℓ, we can use the approximation in Equation (30) to obtain
Contrary to the sign case, in this last equation the sum is not the same as the one in Equation (10) because we have the square of $C\left(r\right)$. Then, to evaluate Equation (42), we proceed as follows: first, we note that $C\left(r\right)$ is given by Equation (34) and insert it in Equation (42). Then, in order to evaluate the sum, we substitute it by a definite integral that we solve and simplify by keeping only the highest powers of ℓ with constant and non-constant exponents. In this way, after regrouping terms, we get finally:
The validity of this analytic result is shown in Figure 6, where we plot ${F}_{m,FA}\left(\ell \right)$ obtained numerically in magnitude time series from fGns generated using FFM for two values of ${\alpha}_{\mathrm{in}}$ (open symbols), and also the corresponding analytical values using Equation (43), shown in solid lines. Equation (43) explains the ${\alpha}_{m}$ results obtained using FA (21): for $4{\alpha}_{\mathrm{in}}-2>1$, i.e., ${\alpha}_{\mathrm{in}}>3/4$, the second term in the sum dominates asymptotically and then ${F}_{m,FA}\left(\ell \right)\sim {\ell}^{2{\alpha}_{\mathrm{in}}-1}$ leading to ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$ (see the case ${\alpha}_{\mathrm{in}}=0.8$ in Figure 6). In contrast, for $4{\alpha}_{\mathrm{in}}-2<1$, i.e., ${\alpha}_{\mathrm{in}}<3/4$, the first term in the sum is the dominant one and ${F}_{m,FA}\left(\ell \right)\sim {\ell}^{1/2}$ from where ${\alpha}_{m}=1/2$, as the case ${\alpha}_{\mathrm{in}}=0.65$ in Figure 6.

$${F}_{m,FA}^{2}\left(\ell \right)={\sigma}_{m}^{2}\left(\ell +2\sum _{r=1}^{\ell -1}(\ell -r){C}_{m}\left(r\right)\right),$$

$${F}_{m,FA}^{2}\left(\ell \right)=\left(1-\frac{2}{\pi}\right)\ell +\frac{2}{\pi}\sum _{r=1}^{\ell -1}(\ell -r){C}^{2}\left(r\right).$$

$${F}_{m,FA}^{2}\left(\ell \right)=\left[1-\frac{2}{\pi}\left(1+{\alpha}^{2}\frac{{(2{\alpha}_{\mathrm{in}}-1)}^{2}}{4{\alpha}_{\mathrm{in}}-3}\right)\right]\ell +\left[\frac{{\alpha}_{\mathrm{in}}^{2}(2{\alpha}_{\mathrm{in}}-1)}{\pi (4{\alpha}_{\mathrm{in}}-3)}\right]{\ell}^{4{\alpha}_{\mathrm{in}}-2}.$$

A similar, though more elaborated calculation can be carried out for the scaling of the magnitude series using DFA. In this case, starting from Equation (11), we write for the magnitude series
where, as before, ${\sigma}_{m}^{2}=1-2/\pi $. Using Equation (30), we get:
To evaluate this equation, we insert the expression of $C\left(r\right)$ (Equation (34)), use the definitions of $W\left(\ell \right)$ (Equation (12)) and $L(\ell ,r)$ (Equation (13)), substitute the sum by a definite integral and calculate it, and simplify the results by keeping the highest powers of ℓ to get the (asymptotically correct) result:
The validity of this last equation is also shown in Figure 6, where we plot for two different ${\alpha}_{\mathrm{in}}$ values the numerical ${F}_{m,FA}\left(\ell \right)$ functions provided by DFA (solid symbols) and the corresponding analytic ${F}_{m,DFA}\left(\ell \right)$ functions from Equation (46) (solid lines). Similarly to the FA case, Equation (46) allows for understanding the spurious ${\alpha}_{m}$ results (21) obtained using DFA. As before, for $4{\alpha}_{\mathrm{in}}-2>1$, i.e., for ${\alpha}_{\mathrm{in}}>3/4$ (see the case ${\alpha}_{\mathrm{in}}=0.8$ in Figure 6), the second term in the sum dominates for large ℓ and then ${F}_{m,DFA}\left(\ell \right)\sim {\ell}^{2{\alpha}_{\mathrm{in}}-1}$, or ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$. For $4{\alpha}_{\mathrm{in}}-2<1$, i.e., ${\alpha}_{\mathrm{in}}<3/4$ (see the case ${\alpha}_{\mathrm{in}}=0.65$ in Figure 6), the first term in the sum is the dominant one and ${F}_{m,DFA}\left(\ell \right)\sim {\ell}^{1/2}$ from where ${\alpha}_{m}=1/2$.

$${F}_{m,DFA}^{2}\left(\ell \right)={\sigma}_{m}^{2}\left(W\left(\ell \right)+\sum _{r=1}^{\ell -1}L(\ell ,r){C}_{m}\left(r\right)\right),$$

$${F}_{m,DFA}^{2}\left(\ell \right)=\left(1-\frac{2}{\pi}\right)W\left(\ell \right)+\frac{1}{\pi}\sum _{r=1}^{\ell -1}L(\ell ,r){C}^{2}\left(r\right).$$

$${F}_{m,DFA}^{2}\left(\ell \right)=\left[\frac{1}{15}-\frac{2}{15\pi}\left(1+\frac{{\alpha}_{\mathrm{in}}^{2}{(2{\alpha}_{\mathrm{in}}-1)}^{2}}{4{\alpha}_{\mathrm{in}}-3}\right)\right]\ell +\left[\frac{{\alpha}_{\mathrm{in}}(1-{\alpha}_{\mathrm{in}})(2{\alpha}_{\mathrm{in}}-1)}{\pi (2{\alpha}_{\mathrm{in}}+1)(4{\alpha}_{\mathrm{in}}-1)(4{\alpha}_{\mathrm{in}}-3)}\right]{\ell}^{4{\alpha}_{\mathrm{in}}-2}.$$

We conclude that the spurious FA and DFA result ${\alpha}_{m}=1/2$ for ${\alpha}_{\mathrm{in}}<3/4$ is due to the existence of a first term proportional to ℓ in Equations (43) and (46), which dominates asymptotically when ${\alpha}_{\mathrm{in}}<3/4$. The correct result ${\alpha}_{m}=2{\alpha}_{\mathrm{in}}-1$ for ${\alpha}_{\mathrm{in}}\in (0,1)$ could only be obtained by FA and DFA without such ℓ-term in Equations (43) and (46), which, regrettably, is an intrinsic property of both techniques.

## 8. Conclusions

We have shown that the magnitude and sign series obtained from power-law correlated stationary time series, such as fractional Gaussian noises, are also power-law correlated for any scaling of the original series. Indeed, we have obtained analytical expressions for both power-law autocorrelation functions confirmed by numerical results. However, when the magnitude and sign series are analyzed using Fluctuation Analysis and Detrended Fluctuation Analysis, also known as the magnitude and sign decomposition method, depending on the scaling of the original time series, both techniques can provide spurious scaling results and lead to wrongly interpreting the magnitude and sign series as completely uncorrelated (white noises). By using the relationships between the autocorrelation functions and the fluctuation functions of FA and DFA, we find analytically and confirm numerically the reason for these spurious results, which turns out to be an intrinsic property of both methods.

## Acknowledgments

We acknowledge the Spanish Junta de Andalucía for financial support (Grants FQM-362 and FQM-7964).

## Author Contributions

Pedro Carpena conceived the research and carried out the analytical calculations; and all authors performed the numerical experiments and wrote the paper.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Hurst, H.E. Long-term storage capacity of reservoirs. Trans. Am. Soc. Civ. Eng.
**1951**, 116, 770–799. [Google Scholar] - Peng, C.K.; Buldyrev, S.V.; Goldberger, A.L.; Havlin, S.; Sciortino, F.; Simons, M.; Stanley, H.E. Long-range correlations in nucleotide sequences. Nature
**1992**, 356, 168–170. [Google Scholar] [CrossRef] [PubMed] - Peng, C.K.; Buldyrev, S.V.; Havlin, S.; Simons, M.; Stanley, H.E.; Goldberger, A.L. Mosaic organization of DNA nucleotides. Phys. Rev. E
**1994**, 49, 1685–1689. [Google Scholar] [CrossRef] - Ashkenazy, Y.; Ivanov, P.C.; Havlin, S.; Peng, C.K.; Goldberger, A.L.; Stanley, H.E. Magnitude and Sign Correlations in Heartbeat Fluctuations. Phys. Rev. Lett.
**2001**, 86, 1900–1903. [Google Scholar] [CrossRef] [PubMed] - Gomez-Extremera, M.; Carpena, P.; Ivanov, P.C.; Bernaola-Galván, P.A. Magnitude and sign of long-range correlated time series: Decomposition and surrogate signal generation. Phys. Rev. E
**2016**, 93, 042201. [Google Scholar] [CrossRef] [PubMed] - Ashkenazy, Y.; Havlin, S.; Ivanov, P.C.; Peng, C.K.; Schulte-Frohlinde, V.; Stanley, H.E. Magnitude and sign scaling in power-law correlated time series. Physica A
**2003**, 323, 19–41. [Google Scholar] [CrossRef] - Kalisky, T.; Ashkenazy, Y.; Havlin, S. Volatility of linear and nonlinear time series. Phys. Rev. E
**2005**, 72, 011913. [Google Scholar] [CrossRef] [PubMed] - Kantelhardt, J.W.; Ashkenazy, Y.; Ivanov, P.C.; Bunde, A.; Havlin, S.; Penzel, T.; Peter, J.H.; Stanley, H.E. Characterization of sleep stages by correlations in the magnitude and sign of heartbeat increments. Phys. Rev. E
**2002**, 65, 051908. [Google Scholar] [CrossRef] [PubMed] - Bernaola-Galván, P.A.; Gómez-Extremera, M.; Romance, A.R.; Carpena, P. Correlations in magnitude series to assess nonlinearities: Application to multifractal models and heartbeat fluctuations. arXiv
**2017**. [Google Scholar] - Zhu, L.; Jin, N.D.; Gao, Z.K.; Zong, Y.B.; Zhai, L.S.; Wang, Z.Y. Magnitude and sign correlations in conductance fluctuations of horizontal oil water two-phase flow. J. Phys. Conf. Ser.
**2012**, 364, 012067. [Google Scholar] [CrossRef] - Makse, H.A.; Davies, G.W.; Havlin, S.; Ivanov, P.C.; King, P.R.; Stanley, H.E. Long-range correlations in permeability fluctuations in porous rock. Phys. Rev. E
**1996**, 54, 3129–3134. [Google Scholar] [CrossRef] - Makse, H.A.; Havlin, S.; Ivanov, P.C.; King, P.R.; Prakash, S.; Stanley, H.E. Pattern formation in sedimentary rocks: Connectivity, permeability, and spatial correlations. Physica A
**1996**, 233, 587–605. [Google Scholar] [CrossRef] - Bartos, I.; Jánosi, I.M. Nonlinear correlations of daily temperature records over land. Nonlinear Process. Geophys.
**2006**, 13, 571–576. [Google Scholar] [CrossRef] - Li, Q.; Fu, Z.; Yuan, N.; Xie, F. Effects of non-stationarity on the magnitude and sign scaling in the multi-scale vertical velocity increment. Physica A
**2014**, 410, 9–16. [Google Scholar] [CrossRef] - Liu, Y.; Gopikrishnan, P.; Cizeau, P.; Meyer, M.; Peng, C.K.; Stanley, H.E. Statistical properties of the volatility of price fluctuations. Phys. Rev. E
**1999**, 60, 1390–1400. [Google Scholar] [CrossRef] - Beran, J. Statistics for Long-Memory Processes; Chapman and Hall/CRC: Boca Raton, FL, USA, 1994. [Google Scholar]
- Coronado, A.V.; Carpena, P. Size effects on correlation measures. J. Biol. Phys.
**2005**, 31, 121–133. [Google Scholar] [CrossRef] [PubMed] - Bryce, R.M.; Sprague, K.B. Revisiting detrended fluctuation analysis. Sci. Rep.
**2012**, 2, 315. [Google Scholar] [CrossRef] [PubMed] - Allegrini, P.; Barbi, M.; Grigolini, P.; West, B.J. Dynamical model for DNA sequences. Phys. Rev. E
**1995**, 52, 5281–5296. [Google Scholar] [CrossRef] - Molchan, G.M. Maximum of fractional Brownian motion: Probabilities of small values. Commun. Math. Phys.
**1999**, 205, 97–111. [Google Scholar] [CrossRef] - Rangarajan, G.; Ding, M.Z. Integrated approach to the assessment of long range correlation in time series data. Phys. Rev. E
**2000**, 61, 4991–5001. [Google Scholar] [CrossRef] - Hu, K.; Ivanov, P.C.; Chen, Z.; Carpena, P.; Stanley, H.E. Effect of trends on detrended fluctuation analysis. Phys. Rev. E
**2001**, 64, 011114. [Google Scholar] [CrossRef] [PubMed] - Chen, Z.; Hu, K.; Carpena, P.; Bernaola-Galván, P.; Stanley, H.E.; Ivanov, P.C. Effect of nonlinear filters on detrended fluctuation analysis. Phys. Rev. E
**2005**, 71, 011104. [Google Scholar] [CrossRef] [PubMed] - Blázquez, M.T.; Anguiano, M.; de Saavedra, F.A.; Lallena, A.M.; Carpena, P. Study of the human postural control system during quiet standing using detrended fluctuation analysis. Phys. A
**2009**, 388, 1857–1866. [Google Scholar] [CrossRef] - Carpena, P.; Bernaola-Galván, P.; Coronado, A.V.; Hackenberg, M.; Oliver, J.L. Identifying characteristic scales in the human genome. Phys. Rev. E
**2007**, 75, 032903. [Google Scholar] [CrossRef] [PubMed] - Karlin, S.; Brendel, V. Patchiness and correlations in DNA sequences. Science
**1993**, 259, 677–680. [Google Scholar] [CrossRef] [PubMed] - Höll, M.; Kantz, H. The relationship between the detrended fluctuation analysis and the autocorrelation function of a signal. Eur. Phys. J. B
**2015**, 88, 327. [Google Scholar] [CrossRef] - Talkner, P.; Weber, R.O. Power spectrum and detrended fluctuation analysis: Application to daily temperatures. Phys. Rev. E
**2000**, 62, 150–160. [Google Scholar] [CrossRef] - Carretero-Campos, C.; Bernaola-Galván, P.; Ivanov, P.C.; Carpena, P. Phase transitions in the first-passage time of scale-invariant correlated processes. Phys. Rev. E
**2012**, 85, 011139. [Google Scholar] [CrossRef] [PubMed] - Makse, H.A.; Havlin, S.; Schwartz, M.; Stanley, H.E. Method for generating long-range correlations for large systems. Phys. Rev. E
**1996**, 53, 5445–5449. [Google Scholar] [CrossRef] - Bernaola-Galván, P.; Oliver, J.L.; Hackenberg, M.; Coronado, A.V.; Ivanov, P.C.; Carpena, P. Segmentation of time series with long-range fractal correlations. Eur. Phys. J. B
**2012**, 85, 211. [Google Scholar] [CrossRef] [PubMed] - Apostolov, S.S.; Izrailev, F.M.; Makarov, N.M.; Mayzelis, Z.A.; Melnyk, S.S.; Usatenko, O.V. The Signum function method for the generation of correlated dichotomic chains. J. Phys. A Math. Theor.
**2008**, 41, 175101. [Google Scholar] [CrossRef]

**Figure 1.**(

**a**) a fractional Gaussian noise-type time series, $\left\{{x}_{i}\right\}$, generated using the Fourier Filtering Method (FFM) with ${\alpha}_{\mathrm{in}}=0.85$ and $N={2}^{8}$; (

**b**) the sign series $\left\{{s}_{i}\right\}$ obtained from $\left\{{x}_{i}\right\}$; and (

**c**) the magnitude (or volatility) series $\left\{{m}_{i}\right\}$ obtained from $\left\{{x}_{i}\right\}$.

**Figure 2.**The sign scaling exponent ${\alpha}_{s}$ and the magnitude scaling exponent ${\alpha}_{m}$ as a function of the scaling exponent ${\alpha}_{\mathrm{in}}$ of the original signal. Top panel: results of Fluctuation Analysis (FA); bottom panel: results of Detrended Fluctuation Analysis (DFA). We have used time series with $N={2}^{20}$, and we have generated 200 series for any ${\alpha}_{\mathrm{in}}$ value.

**Figure 3.**The sign (

**a**) and magnitude (

**b**) autocorrelation functions, ${C}_{m}\left(r\right)$ and ${C}_{s}\left(r\right)$, as a function of the values of the autocorrelation function of the original time series, $C\left(r\right)$. The solid lines correspond to the exact analytical results (Equations (27) and (28)), and the dashed lines to the first term in the corresponding Taylor expansions (Equations (29) and (30)).

**Figure 4.**Autocorrelation function of the original time series ($C\left(r\right)$), of the sign series (${C}_{s}\left(r\right)$) and of the magnitude series (${C}_{m}\left(r\right)$) obtained numerically for synthetic fractional Gaussian noises (fGns) generated with different ${\alpha}_{\mathrm{in}}$ values. (

**a**–

**d**) correspond to situations where the original fGn presents positive correlations (${\alpha}_{\mathrm{in}}>0.5$); (

**e**,

**f**) show examples in which the fGn is anticorrelated (${\alpha}_{\mathrm{in}}<0.5$). As, in this case, both $C\left(r\right)$ and ${C}_{s}\left(r\right)$ are negative, (

**e**,

**f**) show the absolute value of $C\left(r\right)$ and ${C}_{s}\left(r\right)$. In all cases, the lines correspond to the analytical values of ${C}_{s}\left(r\right)$ (solid lines) and ${C}_{m}\left(r\right)$ (dotted lines) obtained from $C\left(r\right)$ using Equations (29) and (30). For any ${\alpha}_{\mathrm{in}}$ value, we generate 100 fGns of length $N={2}^{24}$ and average the corresponding $C\left(r\right)$, ${C}_{s}\left(r\right)$ and ${C}_{m}\left(r\right)$.

**Figure 5.**Magnitude and sign scaling exponents, ${\alpha}_{m}$ and ${\alpha}_{s}$ provided by FA and DFA (symbols), and the correct results for ${\alpha}_{m}$ and ${\alpha}_{s}$ (lines) expected from the corresponding autocorrelation functions.

**Figure 6.**FA and DFA Fluctuation functions for the magnitude series obtained from two fGns with ${\alpha}_{\mathrm{in}}=0.65$ and $0.8$, and $N={2}^{23}$. The numeric results of applying FA and DFA to the corresponding time series are shown in symbols, and the lines correspond to the analytical results obtained from Equations (43) and (46). We also include dashed lines corresponding to the correct scaling ${\ell}^{2{\alpha}_{\mathrm{in}}-1}$, which gives ${\ell}^{0.6}$ and ${\ell}^{0.3}$ for ${\alpha}_{\mathrm{in}}=0.8$ and $0.65$, respectively, and to the spurious scaling ${\ell}^{1/2}$. Note how FA and DFA predict the correct scaling exponent ${\alpha}_{m}=0.6$ for ${\alpha}_{\mathrm{in}}=0.8$ but fail for ${\alpha}_{\mathrm{in}}=0.65$ since, instead of ${\alpha}_{m}=0.3$, both techniques give ${\alpha}_{m}=1/2$.

© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).