19
Effect of trends on detrended fluctuation analysis Kun Hu, 1 Plamen Ch. Ivanov, 1,2 Zhi Chen, 1 Pedro Carpena, 3 and H. Eugene Stanley 1 1 Center for Polymer Studies and Department of Physics, Boston University, Boston, Massachusetts 02215 2 Harvard Medical School, Beth Israel Deaconess Medical Center, Boston, Massachusetts 02215 3 Departamento de Fı ´sica Aplicada II, Universidad de Ma ´laga E-29071, Ma ´laga, Spain ~Received 8 March 2001; published 26 June 2001! Detrended fluctuation analysis ~DFA! is a scaling analysis method used to estimate long-range power-law correlation exponents in noisy signals. Many noisy signals in real systems display trends, so that the scaling results obtained from the DFA method become difficult to analyze. We systematically study the effects of three types of trends — linear, periodic, and power-law trends, and offer examples where these trends are likely to occur in real data. We compare the difference between the scaling results for artificially generated correlated noise and correlated noise with a trend, and study how trends lead to the appearance of crossovers in the scaling behavior. We find that crossovers result from the competition between the scaling of the noise and the ‘‘apparent’’ scaling of the trend. We study how the characteristics of these crossovers depend on ~i! the slope of the linear trend; ~ii! the amplitude and period of the periodic trend; ~iii! the amplitude and power of the power-law trend, and ~iv! the length as well as the correlation properties of the noise. Surprisingly, we find that the crossovers in the scaling of noisy signals with trends also follow scaling laws—i.e., long-range power-law dependence of the position of the crossover on the parameters of the trends. We show that the DFA result of noise with a trend can be exactly determined by the superposition of the separate results of the DFA on the noise and on the trend, assuming that the noise and the trend are not correlated. If this superposition rule is not followed, this is an indication that the noise and the superposed trend are not independent, so that removing the trend could lead to changes in the correlation properties of the noise. In addition, we show how to use DFA appropriately to minimize the effects of trends, how to recognize if a crossover indicates indeed a transition from one type to a different type of underlying correlation, or if the crossover is due to a trend without any transition in the dynamical properties of the noise. DOI: 10.1103/PhysRevE.64.011114 PACS number~s!: 05.40.2a I. INTRODUCTION Many physical and biological systems exhibit complex behavior characterized by long-range power-law correla- tions. Traditional approaches such as the power-spectrum and correlation analysis are not suited to accurately quantify long-range correlations in nonstationary signals—e.g., sig- nals exhibiting fluctuations along polynomial trends. De- trended fluctuation analysis ~DFA!@1–4# is a scaling analy- sis method providing a simple quantitative parameter—the scaling exponent a —to represent the correlation properties of a signal. The advantages of DFA over many methods are that it permits the detection of long-range correlations em- bedded in seemingly nonstationary time series, and also avoids the spurious detection of apparent long-range correla- tions that are an artifact of nonstationarity. In the past few years, more than 100 publications have utilized the DFA as the method of correlation analysis, and have uncovered long- range power-law correlations in many research fields such as cardiac dynamics @5–23#, bioinformatics @1,2,24–34,68#, economics @35–47#, meteorology @48–50#, material science @51#, ethology @52#, etc. Furthermore, the DFA method may help identify different states of the same system according to its different scaling behaviors, e.g., the scaling exponent a for heart interbeat intervals is different for healthy and sick individuals @14,16,17,53#. The correct interpretation of the scaling results obtained by the DFA method is crucial for understanding the intrinsic dynamics of the systems under study. In fact, for all systems where the DFA method was applied, there are many issues that remain unexplained. One of the common challenges is that the correlation exponent is not always a constant ~inde- pendent of scale! and crossovers often exist—i.e., a change of the scaling exponent a for different range of scales @5,16,35#. A crossover usually can arise from a change in the correlation properties of the signal at different time or space scales, or can often arise from trends in the data. In this paper we systematically study how different types of trends affect the apparent scaling behavior of long-range correlated sig- nals. The existence of trends in times series generated by physical or biological systems is so common that it is almost unavoidable. For example, the number of particles emitted by a radiation source in a unit time has a trend of decreasing because the source becomes weaker @54,55#; the density of air due to gravity has a trend at a different altitude; the air temperature in different geographic locations, rainfall and the water flow of rivers have a periodic trend due to seasonal changes @49,50,56–59#; the occurrence rate of earthquakes in certain areas has a trend in different time periods @60#. An immediate problem facing researchers applying a scaling analysis to a time series is whether trends in data arise from external conditions, having little to do with the intrinsic dy- namics of the system generating noisy fluctuating data. In this case, a possible approach is to first recognize and filter out the trends before we attempt to quantify correlations in the noise. Alternatively, trends may arise from the intrinsic dynamics of the system rather than being an epiphenomenon of external conditions, and thus they may be correlated with PHYSICAL REVIEW E, VOLUME 64, 011114 1063-651X/2001/64~1!/011114~19!/$20.00 ©2001 The American Physical Society 64 011114-1

Effect of trends on detrended fluctuation analysis

  • Upload
    uma

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Effect of trends on detrended fluctuation analysis

Kun Hu,1 Plamen Ch. Ivanov,1,2 Zhi Chen,1 Pedro Carpena,3 and H. Eugene Stanley1

1Center for Polymer Studies and Department of Physics, Boston University, Boston, Massachusetts 022152Harvard Medical School, Beth Israel Deaconess Medical Center, Boston, Massachusetts 02215

3Departamento de Fısica Aplicada II, Universidad de Malaga E-29071, Malaga, Spain~Received 8 March 2001; published 26 June 2001!

Detrended fluctuation analysis ~DFA! is a scaling analysis method used to estimate long-range power-lawcorrelation exponents in noisy signals. Many noisy signals in real systems display trends, so that the scalingresults obtained from the DFA method become difficult to analyze. We systematically study the effects of threetypes of trends — linear, periodic, and power-law trends, and offer examples where these trends are likely tooccur in real data. We compare the difference between the scaling results for artificially generated correlatednoise and correlated noise with a trend, and study how trends lead to the appearance of crossovers in thescaling behavior. We find that crossovers result from the competition between the scaling of the noise and the‘‘apparent’’ scaling of the trend. We study how the characteristics of these crossovers depend on ~i! the slopeof the linear trend; ~ii! the amplitude and period of the periodic trend; ~iii! the amplitude and power of thepower-law trend, and ~iv! the length as well as the correlation properties of the noise. Surprisingly, we find thatthe crossovers in the scaling of noisy signals with trends also follow scaling laws—i.e., long-range power-lawdependence of the position of the crossover on the parameters of the trends. We show that the DFA result ofnoise with a trend can be exactly determined by the superposition of the separate results of the DFA on thenoise and on the trend, assuming that the noise and the trend are not correlated. If this superposition rule is notfollowed, this is an indication that the noise and the superposed trend are not independent, so that removing thetrend could lead to changes in the correlation properties of the noise. In addition, we show how to use DFAappropriately to minimize the effects of trends, how to recognize if a crossover indicates indeed a transitionfrom one type to a different type of underlying correlation, or if the crossover is due to a trend without anytransition in the dynamical properties of the noise.

DOI: 10.1103/PhysRevE.64.011114 PACS number~s!: 05.40.2a

I. INTRODUCTION

Many physical and biological systems exhibit complexbehavior characterized by long-range power-law correla-tions. Traditional approaches such as the power-spectrumand correlation analysis are not suited to accurately quantifylong-range correlations in nonstationary signals—e.g., sig-nals exhibiting fluctuations along polynomial trends. De-trended fluctuation analysis ~DFA! @1–4# is a scaling analy-sis method providing a simple quantitative parameter—thescaling exponent a—to represent the correlation propertiesof a signal. The advantages of DFA over many methods arethat it permits the detection of long-range correlations em-bedded in seemingly nonstationary time series, and alsoavoids the spurious detection of apparent long-range correla-tions that are an artifact of nonstationarity. In the past fewyears, more than 100 publications have utilized the DFA asthe method of correlation analysis, and have uncovered long-range power-law correlations in many research fields such ascardiac dynamics @5–23#, bioinformatics @1,2,24–34,68#,economics @35–47#, meteorology @48–50#, material science@51#, ethology @52#, etc. Furthermore, the DFA method mayhelp identify different states of the same system according toits different scaling behaviors, e.g., the scaling exponent afor heart interbeat intervals is different for healthy and sickindividuals @14,16,17,53#.

The correct interpretation of the scaling results obtainedby the DFA method is crucial for understanding the intrinsicdynamics of the systems under study. In fact, for all systems

where the DFA method was applied, there are many issuesthat remain unexplained. One of the common challenges isthat the correlation exponent is not always a constant ~inde-pendent of scale! and crossovers often exist—i.e., a changeof the scaling exponent a for different range of scales@5,16,35#. A crossover usually can arise from a change in thecorrelation properties of the signal at different time or spacescales, or can often arise from trends in the data. In this paperwe systematically study how different types of trends affectthe apparent scaling behavior of long-range correlated sig-nals. The existence of trends in times series generated byphysical or biological systems is so common that it is almostunavoidable. For example, the number of particles emittedby a radiation source in a unit time has a trend of decreasingbecause the source becomes weaker @54,55#; the density ofair due to gravity has a trend at a different altitude; the airtemperature in different geographic locations, rainfall andthe water flow of rivers have a periodic trend due to seasonalchanges @49,50,56–59#; the occurrence rate of earthquakes incertain areas has a trend in different time periods @60#. Animmediate problem facing researchers applying a scalinganalysis to a time series is whether trends in data arise fromexternal conditions, having little to do with the intrinsic dy-namics of the system generating noisy fluctuating data. Inthis case, a possible approach is to first recognize and filterout the trends before we attempt to quantify correlations inthe noise. Alternatively, trends may arise from the intrinsicdynamics of the system rather than being an epiphenomenonof external conditions, and thus they may be correlated with

PHYSICAL REVIEW E, VOLUME 64, 011114

1063-651X/2001/64~1!/011114~19!/$20.00 ©2001 The American Physical Society64 011114-1

the noisy fluctuations generated by the system. In this case,careful consideration should be given if trends should befiltered out when estimating correlations in the noise, sincesuch ‘‘intrinsic’’ trends may be related to the local propertiesof the noisy fluctuations.

Here we study the origin and the properties of crossoversin the scaling behavior of noisy signals, by applying the DFAmethod first on correlated noise and then on noise withtrends, and comparing the difference in the scaling results.To this end, we generate an artificial time series—anticorrelated, white, and correlated noise with standard de-viation equal to one—using the modified Fourier filteringmethod introduced by Makse et al. @63#. We consider thecase when the trend is independent of the local properties ofthe noise ~external trend!. We find that the scaling behaviorof noise with a trend is a superposition of the scaling of thenoise and the apparent scaling of the trend, and we deriveanalytical relations based on the DFA, which we call the‘‘superposition rule.’’ We show how this superposition rulecan be used to determine if the trends are independent of thenoisy fluctuation in real data, and if filtering these trends outwill not affect the scaling properties of the data.

The outline of this paper is as follows. In Sec. II wereview the algorithm of the DFA method, and in Appendix Awe compare the performance of the DFA with the classicalscaling analysis—Hurst’s analysis (R/S analysis!—andshow that the DFA is a superior method to quantify the scal-ing behavior of noisy signals. In Sec. III we consider theeffect of a linear trend and we present an analytic derivationof the apparent scaling behavior of a linear trend in Appen-dix C. In Sec. IV we study a periodic trend, and in Sec. V westudy the effect of a power-law trend. We systematicallystudy all resulting crossovers, their conditions of existence,and their typical characteristics associated with the differenttypes of trends. In addition, we also show how to use DFAappropriately to minimize or even eliminate the effects ofthose trends in cases that trends are not choices of the study,that is, trends do not reflect the dynamics of the system butare caused by some ‘‘irrelevant’’ background. Finally, Sec.VI contains a summary.

II. DFA

To illustrate the DFA method, we consider a noisy timeseries, u(i) (i51, . . . ,Nmax). We integrate the time seriesu(i),

y~ j !5(i51

j

@u~ i !2^u&# , ~1!

where

^u&5

1

Nmax(j51

Nmax

u~ i !, ~2!

and is divided into boxes of equal size n. In each box, we fitthe integrated time series by using a polynomial function,y f it(i), which is called the local trend. For order-l DFA~DFA-1 if l51, DFA-2 if l52, etc.!, the l-order polynomial

function should be applied for the fitting. We detrend theintegrated time series y(i) by subtracting the local trendy f it(i) in each box, and we calculate the detrended fluctua-tion function

Y ~ i !5y~ i !2y f it~ i !. ~3!

For a given box size n, we calculate the root mean square~rms! fluctuation

F~n !5A 1

Nmax(i51

Nmax

@Y ~ i !#2. ~4!

The above computation is repeated for box sizes n ~differentscales! to provide a relationship between F(n) and n. Apower-law relation between F(n) and the box size n indi-cates the presence of scaling: F(n);na. The parameter a ,called the scaling exponent or correlation exponent, repre-sents the correlation properties of the signal: if a50.5, thereis no correlation and the signal is an uncorrelated signal~white noise!; if a,0.5, the signal is anticorrelated; if a.0.5, there are positive correlations in the signal.

III. NOISE WITH LINEAR TRENDS

First we consider the simplest case: correlated noise witha linear trend. A linear trend

u~ i !5ALi ~5!

is characterized by only one variable — the slope of thetrend AL . For convenience, we denote the rms fluctuationfunction for noise without trends by Fh(n), linear trends byFL(n), and noise with a linear trend by FhL(n).

A. DFA-1 on noise with a linear trend

Using the algorithm of Makse et al. @63#, we generate acorrelated noise with a standard deviation one, with a givencorrelation property characterized by a given scaling expo-nent a . We apply DFA-1 to quantify the correlation proper-ties of the noise and find that only in a certain good fit regioncan the rms fluctuation function Fh(n) be approximated by apower-law function ~see Appendix A!

Fh~n !5b0na, ~6!

where b0 is a parameter independent of the scale n. We findthat the good fit region depends on the correlation exponenta ~see Appendix A!. We also derive analytically the rmsfluctuation function for a linear trend only for DFA-1 andfind that ~see Appendix C!

FL~n !5k0ALnaL, ~7!

where k0 is a constant independent of the length of trendNmax , of the box size n, and of the slope of the trend AL .We obtain aL52.

Next we apply the DFA-1 method to the superposition ofa linear trend with correlated noise and we compare the rmsfluctuation function FhL(n) with Fh(n) ~see Fig. 1!. We

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-2

observe a crossover in FhL(n) at scale n5n3 . For n,n3 , the behavior of FhL(n) is very close to the behaviorof Fh(n), while for n.n3 , the behavior of FhL(n) is veryclose to the behavior of FL(n). A similar crossover behavioris also observed in the scaling of the well-studied biasedrandom walk @61,62#. It is known that the crossover in thebiased random walk is due to the competition of the unbiasedrandom walk and the bias ~see Fig. 5.3 of @62#!. We illustratethis observation in Fig. 2, where the detrended fluctuationfunctions @Eq. ~3!# of the correlated noise, Y h(i), and of thenoise with a linear trend, Y hL(i), are shown. For the box sizen,n3 as shown in Figs. 2~a! and 2~b!, Y hL(i)'Y h(i). Forn.n3 as shown in Figs. 2~c! and 2~d!, Y hL(i) has a distin-guishable quadratic background significantly different fromY h(i). This quadratic background is due to the integration ofthe linear trend within the DFA procedure and represents thedetrended fluctuation function Y L of the linear trend. Theserelations between the detrended fluctuation functions Y (i) atdifferent time scales n explain the crossover in the scalingbehavior of FhL(n): from very close to Fh(n) to very closeto FL(n) ~observed in Fig. 1!.

The experimental results presented in Figs. 1 and 2 sug-gest that the rms fluctuation function for a signal which is asuperposition of a correlated noise and a linear trend can beexpressed as

@FhL~n !#25@FL~n !#2

1@Fh~n !#2. ~8!

We provide an analytic derivation of this relation in Appen-dix B, where we show that Eq. ~8! holds for the superposi-tion of any two independent signals—in this particular case

noise and a linear trend. We call this relation the ‘‘superpo-sition rule.’’ This rule helps us understand how the compe-tition between the contribution of the noise and the trend tothe rms fluctuation function FhL(n) at different scales nleads to appearance of crossovers @61#.

Next, we ask how the crossover scale n3 depends on ~i!the slope of the linear trend AL , ~ii! the scaling exponent aof the noise, and ~iii! the length of the signal Nmax . Surpris-ingly, we find that for noise with any given correlation ex-ponent a the crossover scale n3 itself follows a power-lawscaling relation over several decades: n3;(AL)u ~see Fig.3!. We find that in this scaling relation, the crossover expo-nent u is negative and its value depends on the correlationexponent a of the noise—the magnitude of u decreaseswhen a increases. We present the values of the ‘‘crossoverexponent’’ u for different correlation exponents a in Table I.

To understand how the crossover scale depends on thecorrelation exponent a of the noise we employ the superpo-sition rule @Eq. ~8!# and estimate n3 as the intercept betweenFh(n) and FL(n). From Eqs. ~6! and ~7!, we obtain thefollowing dependence of n3 on a:

n35S AL

k0

b0D 1/(a2aL)

5S AL

k0

b0D 1/(a22)

. ~9!

This analytical calculation for the crossover exponent21/(aL2a) is in a good agreement with the observed val-ues of u obtained from our simulations ~see Fig. 3 andTable I!.

AL=2–16

AL=2–12

AL=2–8

Correlated noise withlinear trend: FηL(n)

nx

DFA–1

100

101

102

103

104

105

n

10–6

10–4

10–2

100

102

104

106

F(n

)Correlated noise : Fη(n)linear trends: FL(n)

2

2

FIG. 1. Crossover behavior of the root-mean-square fluctuationfunction FhL(n) for noise ~of length Nmax5217 and correlation ex-ponent a50.1) with superposed linear trends of slope AL

52216,2212,228. For comparison, we show Fh(n) for the noise~thick solid line! and FL(n) for the linear trends ~dot-dashed line!

@Eq. ~7!#. The results show a crossover at a scale n3 for FhL(n).For n,n3 , the noise dominates and FhL(n)'Fh(n). For n.n3 , the linear trend dominates and FhL(n)'FL(n). Note thatthe crossover scale n3 increases when the slope AL of the trenddecreases.

0 150 300–6

0

6

YηL

Correlated noise + linear trend

(b) n < nx

0 500 1000i

–20

0

20

YηL

(d) n > nx

0 150 300–6

0

6

Correlated noise

(a) n < nx

0 500 1000i

–20

0

20

(c) n > nx

FIG. 2. Comparison of the detrended fluctuation function fornoise Y h(i) and for noise with linear trend Y hL(i) at differentscales. ~a! and ~c! are Y h for noise with a50.1; ~b! and ~d! are Y hL

for the same noise with a linear trend with slope AL52212 ~thecrossover scale n35320, see Fig. 1!. ~a! and ~b! For scales n,n3 the effect of the trend is not pronounced and Y h'Y hL ~i.e.,Y h @Y L). ~c! and ~d! For scales n.n3 , the linear trend is domi-nant and Y h!Y hL .

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-3

Finally, since the FL(n) does not depend on Nmax as weshow in Eq. ~7! and in Appendix C, we find that n3 does notdepend on Nmax . This is a special case for linear trends anddoes not always hold for higher-order polynomial trends ~seeAppendix D!.

B. DFA-2 on noise with a linear trend

Application of the DFA-2 method to noisy signals withoutany polynomial trends leads to scaling results identical to thescaling obtained from the DFA-1 method, with the exceptionof some vertical shift to lower values for the rms fluctuationfunction Fh(n) ~see Appendix A!. However, for signalswhich are a superposition of correlated noise and a lineartrend, in contrast to the DFA-1 results presented in Fig. 1,FhL(n) obtained from DFA exhibits no crossovers, and isexactly equal to the rms fluctuation function Fh(n) obtained

from DFA-2 for correlated noise without trend ~see Fig. 4!.These results indicate that a linear trend has no effect on thescaling obtained from DFA-2. The reason for this is that bydesign the DFA-2 method filters out linear trends, i.e.,Y L(i)50 @Eq. ~3!# and thus FhL(n)5Fh(n) due to the su-perposition rule @Eq. ~8!#. For the same reason, polynomialtrends of order lower than l superposed on correlated noisewill have no effect on the scaling properties of the noisewhen DFA-l is applied. Therefore, our results confirm thatthe DFA method is a reliable tool to accurately quantifycorrelations in noisy signals embedded in polynomial trends.Moreover, the reported scaling and crossover features ofF(n) can be used to determine the order of polynomialtrends present in the data.

IV. NOISE WITH SINUSOIDAL TREND

In this section we study the effect of sinusoidal trends onthe scaling properties of noisy signals. For a signal which isa superposition of correlated noise and sinusoidal trend, wefind that based on the superposition rule ~Appendix B! theDFA rms fluctuation function can be expressed as

@FhS~n !#25@Fh~n !#2

1@FS~n !#2, ~10!

where FhS(n) is the rms fluctuation function of noise with asinusoidal trend, and FS(n) is for the sinusoidal trend. Firstwe consider the application of DFA-1 to a sinusoidal trend.Next we study the scaling behavior and the features of cross-overs in FhS(n) for the superposition of a correlated noiseand a sinusoidal trend employing the superposition rule @Eq.~10!#. At the end of this section we discuss the results ob-tained from higher-order DFA.

10–6

10–5

10–4

10–3

10–2

10–1

AL

101

102

103

n x

α=0.1α=0.3α=0.5α=0.7α=0.9

θ

DFA–1

FIG. 3. The crossover n3 of Fh L(n) for noise with a lineartrend. We determine the crossover scale n3 based on the differenceD between logFh ~noise! and logFhL ~noise with a linear trend!. Thescale for which D50.05 is the estimated crossover scale n3 . Forany given correlation exponent a of the noise, the crossover scalen3 exhibits a long-range power-law behavior n3;(AL)u, where thecrossover exponent u is a function of a @see Eq. ~9! and Table I#.

TABLE I. The crossover exponent u from the power-law rela-tion between the crossover scale n3 and the slope of the linear trendAL , n3;(AL)u, for different values of the correlation exponents aof the noise ~Fig. 3!. The values of u obtained from our simulationsare in good agreement with the analytical prediction 21/(22a)@Eq. ~9!#. Note that 21/(22a) are not always exactly equal to ubecause Fh (n) in simulations is not a perfect simple power-lawfunction and the way we determine numerically n3 is just approxi-mated.

a u 21/(22a)

0.1 -0.54 -0.530.3 -0.58 -0.590.5 -0.65 -0.670.7 -0.74 -0.770.9 -0.89 -0.91

100

101

102

103

104

n10

–1

100

101

102

103

F(n

)

α = 0.1α = 0.3α = 0.5α = 0.7α = 0.9Noise

Noise with linear trend (AL=2–12

):

DFA–2

α

optimal fitting range

FIG. 4. Comparison of the rms fluctuation function Fh(n) fornoise with different types of correlations ~lines! and FhL(n) for thesame noise with a linear trend of slope AL52212 ~symbols! forDFA-2. FhL(n)5Fh(n) because the integrated linear trend can beperfectly filtered out in DFA-2, thus Y L(i)50 from Eq. ~3!. Wenote that to estimate accurately the correlation exponents, one hasto choose an optimal range of scales n, where F(n) is fitted. Fordetails see Appendix A.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-4

A. DFA-1 on sinusoidal trend

Given a sinusoidal trend u(i)5ASsin(2pi/T) (i51, . . . ,Nmax), where AS is the amplitude of the signal and Tis the period, we find that the rms fluctuation function FS(n)does not depend on the length of the signal Nmax , and hasthe same shape for different amplitudes and different periods@Fig. 5#. We find a crossover at scale corresponding to theperiod of the sinusoidal trend

n23'T , ~11!

and it does not depend on the amplitude AS . We call thiscrossover n23 for convenience, as we will see later. For n,n23 , the rms fluctuation FS(n) exhibits an apparent scal-ing with the same exponent as FL(n) for the linear trend @seeEq. ~7!#,

FS~n !5k1

AS

TnaS, ~12!

where k1 is a constant independent of the length Nmax , of theperiod T, of the amplitude AS of the sinusoidal signal, and ofthe box size n. As for the linear trend @Eq. ~7!#, we obtainaS52 because at small scales ~box size n) the sinusoidalfunction is dominated by a linear term. For n.n23 , due tothe periodic property of the sinusoidal trend, FS(n) is a con-stant independent of the scale n,

FS~n !5

1

2A2pAST . ~13!

The period T and the amplitude AS also affects the verticalshift of FS(n) in both regions. We note that in Eqs. ~12! and~13!, FS(n) is proportional to the amplitude AS , a behaviorwhich is also observed for the linear trend @Eq. ~7!#.

B. DFA-1 on noise with sinusoidal trend

In this section we study how the sinusoidal trend affectsthe scaling behavior of noise with different types of correla-tions. We apply the DFA-1 method to a signal which is asuperposition of correlated noise with a sinusoidal trend. Weobserve that there are typically three crossovers in the rmsfluctuation Fh S(n) at characteristic scales denoted by n13 ,n23 , and n33 ~Fig. 6!. These three crossovers divide FhS(n)into four regions, as shown in Fig. 6~a! @the third crossovercannot be seen in Fig. 6~b! because its scale n33 is greaterthan the length of the signal#. We find that the first and third

100

101

102

103

104

105

n10

–2

100

102

104

106

FS(

n)AS=64, T=2

11

AS=64, T=212

AS=32, T=211

AS=32, T=212

2

n2x

DFA–1

FIG. 5. Root-mean-square fluctuation function FS(n) for sinu-soidal functions of length Nmax5217 with different amplitude AS

and period T. All curves exhibit a crossover at n23'T/2, with aslope aS52 for n,n23 and a flat region for n.n23 . There aresome spurious singularities at n5 j(T/2) ( j is a positive integer!shown by the spikes.

FIG. 6. Crossover behavior of the root-mean-square fluctuationfunction FhS(n) ~circles! for correlated noise ~of length Nmax

5217) with a superposed sinusoidal function characterized by pe-riod T5128 and amplitude AS52. The rms fluctuation functionFh(n) for noise ~thick line! and FS(n) for the sinusoidal trend ~thinline! are shown for comparison. ~a! FhS(n) for correlated noisewith a50.9. ~b! FhS(n) for anticorrelated noise with a50.9. Thereare three crossovers in FhS(n), at scales n13 , n23 , and n33 @thethird crossover cannot be seen in ~b! because it occurs at scalelarger than the length of the signal#. For n,n13 and n.n33 thenoise dominates and FhS(n)'Fh(n) while for n13,n,n33 thesinusoidal trend dominates and FhS(n)'FS(n). The crossovers atn13 and n33 are due to the competition between the correlatednoise and the sinusoidal trend ~see Fig. 7!, while the crossover atn23 relates only to the period T of the sinusoidal @Eq. ~11!#.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-5

crossovers at scales n13 and n33 , respectively ~see Fig. 6!,result from the competition between the effects on FhS(n) ofthe sinusoidal signal and the correlated noise. For n,n13

~region I! and n.n33 ~region IV!, we find that the noise hasthe dominating effect @Fh(n).FS(n)#, so the behavior ofFhS(n) is very close to the behavior of Fh(n) @Eq. ~10!#. Forn13,n,n23 ~region II! and n23,n,n33 ~region III! thesinusoidal trend dominates @FS(n).Fh(n)#, thus the behav-ior of Fh S(n) is close to FS(n) ~see Figs. 6 and 7!.

To better understand why there are different regions in thebehavior of FhS(n), we consider the detrended fluctuationfunction @Eq. ~3! and Appendix B# of the correlated noiseY h(i), and of the noise with sinusoidal trend Y hS . In Fig. 7we compare Y h(i) and Y hS(i) for anticorrelated and corre-lated noise in the four different regions. For very small scalesn,n13 , the effect of the sinusoidal trend is not pronounced,Y h S(i)'Y h(i), indicating that in this scale region the signalcan be considered as noise fluctuating around a constant

trend which is filtered out by the DFA-1 procedure @Figs.7~a! and 7~b!#. Note that the behavior of Y hS @Fig. 7~b!# isidentical to the behavior of Y hL @Fig. 2~b!#, since both asinusoidal with a large period T and a linear trend with smallslope AL can be well approximated by a constant trend forn,n13 . For small scales n13,n,n23 ~region II!, we findthat there is a dominant quadratic background for Y hS(i)@Fig. 7~d!#. This quadratic background is due to the integra-tion procedure in DFA-1, and is represented by the detrendedfluctuation function of the sinusoidal trend Y S(i). It is similarto the quadratic background observed for linear trend Y hL(i)@Fig. 2~d!#—i.e., for n13,n,n23 the sinusoidal trend be-haves as a linear trend and Y S(i)'Y L(i). Thus in region IIthe ‘‘linear trend’’ effect of the sinusoidal is dominant, Y S

.Y h , which leads to FhS(n)'FS(n). This explains alsowhy FhS(n) for n,n23 ~Fig. 6! exhibits crossover behaviorsimilar to the one of FhL(n) observed for noise with a lineartrend. For n23,n,n33 ~region III! the sinusoidal behavioris strongly pronounced @Fig. 7~f!#, Y S(i)@Y h (i), andY hS(i)'Y S(i) changes periodically with period equal to theperiod of the sinusoidal trend T. Since Y hS(i) is boundedbetween a minimum and a maximum value, FhS(n) cannotincrease and exhibits a flat region ~Fig. 6!. At very largescales, n.n33 , the noise effect is again dominant @Y S(i)remains bounded, while Y h grows when increasing the scale#which leads to FhS(n)'Fh(n) and a scaling behavior thatcorresponds to the scaling of the correlated noise.

First we consider n13 . Surprisingly, we find that fornoise with any given correlation exponent a the crossoverscale n13 exhibits long-range power-law dependence of theperiod T, n13;TuT1, and the amplitude AS , n13;(AS)uA1 ofthe sinusoidal trend @see Figs. 8~a! and 8~b!#. We find thatthe ‘‘crossover exponents’’ uT1 and uA1 have the same mag-nitude but different sign—uT1 is positive while uA1 is nega-tive. We also find that the magnitudes of uT1 and uA1 in-crease for larger values of the correlation exponents a of thenoise. We present the values of uT1 and uA1 for the differentcorrelation exponents a in Table II. To understand thepower-law relations between n13 and T, between n13 andAS , and also how the crossover scale n13 depends on thecorrelation exponent a , we employ the superposition rule@Eq. ~10!# and estimate n13 analytically as the first interceptof Fh(n) and FS(n). From Eqs. ~12! and ~6!, we obtain thefollowing dependence of n13 on T, AS and a:

n135S b0

k1

T

ASD 1/(22a)

~14!

From this analytical calculation we obtain the following re-lation between the two crossover exponents uT1 and uA1 andthe correlation exponent a: uT152uA151/(22a), which isin a good agreement with the observed values of uT1 , uA1obtained from simulations @see Figs. 8~a! and 8~b! and TableII#.

Next we consider n23 . Our analysis of the rms fluctua-tion function FS(n) for the sinusoidal signal in Fig. 5 sug-gests that the crossover scale FS(n) does not depend on the-

0 200 400 600–50

50

(e)

n2x<n<n3x

0 10 20 30 40 50–20

0

20

(c)

n1x<n<n2x

1 2 3 4 5 6 7–2

0

2

Anticorrelated noise

(a)n<n1x

0 200 400 600–50

50Y

ηS

(f)n2x<n<n3x

0 10 20 30 40 50–20

0

20

YηS

(d)

n1x<n<n2x

1 2 3 4 5 6 7–2

0

2

YηS

Anticorrelated noise + sin. trend

(b)n<n1x

0 2000 4000i

–500

0

500

Correlated noise

(g)

n>n3x

0 2000 4000i

–500

0

500

YηS

Correlated noise + sin. trend

(h)

n>n3x

FIG. 7. Comparison of the detrended fluctuation function fornoise Y h(i) and noise with sinusoidal trend Y hS(i) in four regionsas shown in Fig. 6. The same signals as in Fig. 6 are used. Panels~a!–~f! correspond to Fig. 6~b! for anticorrelated noise with expo-nent a50.1, and panels ~g! and ~h! correspond to Fig. 6~a! forcorrelated noise with exponent a50.9. ~a! and ~b! For all scalesn,n13 , the effect of the trend is not pronounced and Y hS(i)'Y h(i) leading to FhS(n)'Fh (n) @Fig. 6~a!#. ~c! and ~d! Forn23.n.n13 the trend is dominant, Y hS(i)@Y h(i) and FhS(n)'FS(n). Since n23'T/2 @Eq. ~11!#, the scale n,T/2 and the sinu-soidal behavior can be approximated as a linear trend. This explainsthe quadratic background in Y hS(i) ~d! @see Figs. 2~c! and 2~d!#. ~e!

and ~f! For n23,n,n33 ~i.e., n@T/2), the sinusoidal trend againdominates—Y hS(i) is periodic function with period T. ~g! and ~h!

For n.n33 , the effect of the noise is dominant and the scaling ofFhS follows the scaling of Fh @Fig. 6~a!#.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-6

amplitude AS of the sinusoidal. The behavior of the rms fluc-tuation function FhS(n) for noise with a superposed sinu-soidal trend in Figs. 6~a! and 6~b! indicates that n23 does notdepend on the correlation exponent a of the noise, since forboth correlated (a50.9) and anticorrelated (a50) noise (T

and AS are fixed!, the crossover scale n23 remains un-changed. We find that n23 depends only on the period T ofthe sinusoidal trend and exhibits a long-range power-law be-havior n23;TuT2 with a crossover exponent uT2'1 @Fig.8~c!# which is in agreement with the prediction of Eq. ~11!.

102

103

104

T

101

102

103

n 1xα=0.1α=0.3α=0.5α=0.7α=0.9

(a) Noise + sin. trend (AS=5.0)

θΤ1

DFA–1

10–1

100

101

102

AS

101

102

103

n 1x

α=0.1α=0.3α=0.5α=0.7α=0.9

(b) Noise + sin. trend (T=211

)

θA1

DFA–1

102

103

104

T

102

103

104

n 2x

(c) Noise + sin. trend

1.0

DFA–1

101

102

T

102

103

104

n 3x

α=0.4α=0.5α=0.6α=0.7α=0.8α=0.9

(d) Noise + sin. trend (AS=2)

θT3

DFA–1

100

101

AS

102

103

104

n 3x α=0.4α=0.5α=0.6α=0.7α=0.8α=0.9

(e) Noise + sin. trend (T=16)

θA3

DFA–1

FIG. 8. Dependence of the three crossovers in FhS(n) for noise with a sinusoidal trend ~Fig. 6! on the period T and amplitude AS of thesinusoidal trend. ~a! Power-law relation between the first crossover scale n13 and the period T for fixed amplitude AS and varying correlationexponent a: n13;TuT1, where uT1 is a positive crossover exponent @see Table II and Eq. ~14!#. ~b! Power-law relation between the firstcrossover n13 and the amplitude of the sinusoidal trend AS for fixed period T and varying correlation exponent a: n13;AS

uA1 where uA1 isa negative crossover exponent @Table II and Eq. ~14!#. ~c! The second crossover scale n23 depends only on the period T: n23;TuT2, whereuT2'1. ~d! Power-law relation between the third crossover n33 and T for fixed amplitude AS and varying a trend: n33;TuT3. ~e! Power-lawrelation between the third crossover n33 and AS for fixed T and varying a: n33;(AS)uA3. We find that uA35uT3 @Table III and Eq. ~15!#.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-7

For the third crossover scale n33 , as for n13 we find apower-law dependence on the period T, n33;TuT3, and onthe amplitude AS , n33;(AS)uA3, of the sinusoidal trend @seeFigs. 8~d! and 8~e!#. However, in contrast to the n13 case,we find that the crossover exponents uTp3 and uA3 are equaland positive with decreasing values for increasing correlationexponents a . In Table III we present the values of these twoexponents for different correlation exponent a . To under-stand how the scale n33 depends on T, AS , and the correla-tion exponent a simultaneously, we again employ the super-position rule @Eq. ~10!# and estimate n33 as the secondintercept n33

th of Fh(n) and FS(n). From Eqs. ~13! and ~6!,we obtain the following dependence:

n335S 1

2A2pb0

AST D 1/a

. ~15!

From this analytical calculation we obtain uT35uA351/awhich is in good agreement with the values of uT3 and uA3observed from simulations ~Table III!. Finally, our simula-tions show that all three crossover scales n13 , n23 , and n33

do not depend on the length of the signal Nmax , since Fh(n)and FS(n) do not depend on Nmax as shown in Eqs. ~6!, ~10!,~12!, and ~13!.

C. Higher-order DFA on pure sinusoidal trend

In Sec. IV B we discussed how sinusoidal trends affectthe scaling behavior of correlated noise when the DFA-1

method is applied. Since DFA-1 removes only constanttrends in data, it is natural to ask how the observed scalingresults will change when we apply DFA of order l designedto remove polynomial trends of order lower than l . In thissection we first consider the rms fluctuation FS for a sinu-soidal signal and then we study the scaling and crossoverproperties of FhS for correlated noise with a superposedsinusoidal signal when higher-order DFA is used.

We find that the rms fluctuation function FS does notdepend on the length of the signal Nmax , and preserves asimilar shape when a different order-l DFA method is used~Fig. 9!. In particular, FS exhibits a crossover at a scale n23

proportional to the period T of the sinusoidal: n23;TuT2

with uT2'1. The crossover scale shifts to larger values forhigher order l ~Figs. 5 and 9!. For the scale n,n23 FSexhibits an apparent scaling: FS;naS with an effective ex-ponent aS5l11. For DFA-1, we have l51 and recoveraS52 as shown in Eq. ~12!. For n.n23 , FS(n) is a con-stant independent of the scale n and of the order l of the DFAmethod in agreement with Eq. ~13!.

Next, we consider FhS(n) when DFA-l with a higher or-der l is used. We find that for all orders l , FhS(n) does notdepend on the length of the signal Nmax and exhibits threecrossovers at small, intermediate, and large scales; similarbehavior is reported for DFA-1 in Fig. 6. Since both thecrossover at small scales n13 and the crossover at large scalen33 result from the ‘‘competition’’ between the scaling ofthe correlated noise and the effect of the sinusoidal trend~Figs. 6 and 7!, by using the superposition rule @Eq. ~10!# wecan estimate n13 and n33 as the intercepts of Fh (n) andFS(n) for the general case of DFA-l .

For n13 we find the following dependence on the periodT, amplitude AS , the correlation exponent a of the noise,and the order l of the DFA-l method:

n13;~T/AS!1/(l112a). ~16!

For DFA-1, we have l51 and we recover Eq. ~14!. In addi-

TABLE II. The crossover exponents uT1 and uA1 characterizingthe power-law dependence of n13 on the period T and amplitude AS

obtained from simulations: n13;TuT1 and n13;(AS)uA1 for differ-ent values of the correlation exponent a of noise @Figs. 8~a! and8~b!#. The values of uT1 and uA1 are in good agreement with theanalytical predictions uT152uA151/(22a) @Eq. ~14!#.

a uT1 -uA1 1/(22a)

0.1 0.55 0.54 0.530.3 0.58 0.59 0.590.5 0.66 0.66 0.670.7 0.74 0.75 0.770.9 0.87 0.90 0.91

TABLE III. The crossover exponents uT3 and uA3 for the power-law relations: n33;TuT3 and n33;(AS)uA3 for different values ofthe correlation exponent a of noise @Figs. 8~c! and 8~d!#. The valuesof up3 and ua3 obtained from simulations are in good agreementwith the analytical predictions uT35uA351/a @Eq. ~15!#.

a uT3 uA3 1/a

0.4 2.29 2.38 2.500.5 1.92 1.95 2.000.6 1.69 1.71 1.670.7 1.39 1.43 1.430.8 1.26 1.27 1.250.9 1.06 1.10 1.11

102

103

104

n10

–2

10–1

100

101

102

103

FS(

n) DFA–1DFA–2DFA–3

2

34

FIG. 9. Comparison of the results of different order DFA on asinusoidal trend. The sinusoidal trend is given by the function64sin(2pi/211) and the length of the signal is Nmax5217. The spu-rious singularities ~spikes! arise from the discrete data we use forthe sinusoidal function.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-8

tion, n13 is shifted to larger scales when higher-order DFA-l is applied, due to the fact that the value of FS(n) decreaseswhen l increases (aS5l11, see Fig. 9!.

For the third crossover observed in FhS(n) at large scalen33 we find for all orders l of the DFA-l the followingscaling relation:

n33;~TAS!1/a. ~17!

Since the scaling function Fh(n) for correlated noise shiftsvertically to lower values when higher-order DFA-l is used~see the discussion in Appendix A and Sec. V B!, n33 ex-hibits a slight shift to larger scales.

For the crossover n23 in FhS(n) at Fh S(n) at intermedi-ate scales, we find n23;T . This relation is independent ofthe order l of the DFA and is identical to the relation foundfor FS(n) @Eq. ~11!#. n23 also exhibits a shift to larger scaleswhen higher-order DFA is used ~see Fig. 9!.

The features reported here of the crossovers in FhS(n)can be used to identify low-frequency sinusoidal trends innoisy data and to recognize their effects on the scaling prop-erties of the data. This information may be useful whenquantifying correlation properties in data by means of a scal-ing analysis.

V. NOISE WITH POWER-LAW TRENDS

In this section we study the effect of power-law trends onthe scaling properties of noisy signals. We consider the caseof correlated noise with a superposed power-law trend u(i)5APil, when AP is a positive constant, i51, . . . ,Nmax , andNmax is the length of the signal. We find that when theDFA-1 method is used, the rms fluctuation function FhP(n)exhibits a crossover between two scaling regions ~Fig. 10!.

This behavior results from the fact that at different scales n,either the correlated noise or the power-law trend is domi-nant, and can be predicted by employing the superpositionrule

@FhP~n !#25@Fh~n !#2

1@FP~n !#2, ~18!

where Fh(n) and FP(n) are the rms fluctuation function ofnoise and the power-law trend, respectively, and FhP(n) isthe rms fluctuation function for the superposition of the noiseand the power-law trend. Since the behavior of Fh(n) isknown @Eq. ~6! and Appendix A#, we can understand thefeatures of FhP(n) if we know how FP(n) depends on thecharacteristics of the power-law trend. We note that the scal-ing behavior of FhP(n) displayed in Fig. 10~a! is to someextent similar to the behavior of the rms fluctuation functionFhL(n) for correlated noise with a linear trend ~Fig. 1!—e.g.,the noise is dominant at small scales n, while the trend isdominant at large scales. However, the behavior FP(n) ismore complex than that of FL(n) for the linear trend, sincethe effective exponent al for FP(n) can depend on thepower l of the power-law trend. In particular, for negativevalues of l , FP(n) can become dominated at small scales@Fig. 10~b!# while Fh (n) dominates at large scales—a situ-ation completely opposite of noise with a linear trend ~Fig. 1!or with a power-law trend with positive values for the powerl . Moreover, FP(n) can exhibit crossover behavior at smallscales @Fig. 10~b!# for negative l which is not observed forpositive l . In addition, FP(n) depends on the order l of theDFA method and the length Nmax of the signal. We discussthe scaling features of the power-law trends in the followingthree sections, V A–V C.

101

103

n10

–2

100

102

104

F(n

)Noise+ positive power–law trend Positive power–law trend: λ= 0.4Correlated noise: α=0.9

αλ=1.9 DFA–1

(a) Positive λ

α=0.9

nx10

110

210

310

4

n

10–2

10–1

100

101

102

103

F(n

)

Noise+negative power–law trendNegative power–law trend: λ= −0.7Correlated noise: α=1.5

DFA–1

(b) Negative λ

αλ=0.8

α=1.5

nx

FIG. 10. Crossover behavior of the rms fluctuation function FhP(n) ~circles! for correlated noise ~of length Nmax5217) with a super-posed power-law trend u(i)5APil. The rms fluctuation function Fh(n) for noise ~solid line! and the rms fluctuation function FP(n) ~dashedline! are also shown for comparison. The DFA-1 method is used. ~a! FhP(n) for noise with correlation exponent al50.9 and the power-lawtrend with amplitude AP51000/(Nmax)0.4 and positive power l50.4. ~b! FhP(n) for Brownian noise ~integrated white noise, al51.5) andthe power-law trend with amplitude AP50.01/(Nmax)20.7 and negative power l520.7. Note that although in both cases there is a ‘‘similar’’crossover behavior for FhP(n), the results in ~a! and ~b! represent completely opposite situations: while in ~a! the power-law trend withpositive power l dominates the scaling of FhP(n) at large scales, in ~b! the power-law trend with negative power l dominates the scalingat small scales. The arrow in ~b! indicates a weak crossover in FP(n) ~dashed lines! at small scales for negative power l .

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-9

A. Dependence of FP„n… on the power l

First we study how the rms fluctuation function FP(n) fora power-law trend u(i)5APil depends on the power l . Wefind that

FP~n !;APnal, ~19!

where al is the effective exponent for the power-law trend.For positive l we observe no crossovers in FP(n) @Fig.10~a!#. However, for negative l there is a crossover in FP(n)at small scales n @Fig. 10~b!#, and we find that this crossoverbecomes even more pronounced with decreasing l or in-creasing the order l of the DFA method, and is also shifted tolarger scales @Fig. 11~a!#.

Next, we study how the effective exponent al for FP(n)depends on the value of the power l for the power-law trend.

We examine the scaling of FP(n) and estimate al for 24,l,4. In the cases when FP(n) exhibits a crossover, inorder to obtain al we fit the range of larger scales to theright of the crossover. We find that for any order l of theDFA-l method there are three regions with different relationsbetween al and l @Fig. 11~b!#. They are as follows:

~i! al'l11 for l.l20.5 ~region I!.~ii! al'l11.5 for 21.5<l<l20.5 ~region II!.~iii! al'0 for l,21.5 ~region III!.Note that for integer values of the power l (l

50,1, . . . ,m21), i.e., polynomial trends of order m21, theDFA-l method of order l.m21 (l is also an integer! leadsto FP(n)'0, since DFA-l is designed to remove polynomialtrends. Thus for integer values of the power l there is noscaling and the effective exponent al is not defined if aDFA-l method of order l.l is used ~Fig. 11!. However, it is

100

101

102

103

104

105

n10

–2

100

102

104

FP(n

)

λ = −0.6λ = −1.6λ = −2.6λ = −3.6

DFA–3

(a)

αλ

–4 –2 0 2 4λ

0

1

2

3

4

α λ

DFA–1DFA–2DFA–3

(b)

100

101

102

103

104

105

n10

–12

10–10

10–8

10–6

10–4

10–2

FP(n

)

λ =1.001λ =1.0001λ =1.00001λ =1.000001

αλ∼2.5

DFA–2

(c)

FIG. 11. Scaling behavior of the rms fluctuation function FP(n) for power-law trends, u(i);il, where i51, . . . ,Nmax and Nmax5217 isthe length of the signal. ~a! For l,0, FP(n) exhibits crossover at small scales which is more pronounced with increasing the order l ofDFA-l and decreasing the value of l . Such crossover is not observed for l.0 when FP(n);nal for all scales n @see Fig. 10~a!#. ~b!

Dependence of the effective exponent al on the power l for different order l51,2,3 of the DFA method. Three regions are observed,depending on the order l of the DFA: region I (l.l20.5), where al'l11; region II (21.5,l,l20.5), where al5l11.5; region III(l,21.5), where al'0. We note that for integer values of the power l50,1, . . . ,l21, where l is the order of DFA we used, there is noscaling for FP(n) and al is not defined, as indicated by the arrows. ~c! Asymptotic behavior near integer values of l . FP(n) is plotted forl→1 when DFA-2 is used. Even for l2151026, we observe at large scales n a region with an effective exponent al'2.5. This region isshifted to infinitely large scales when l51.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-10

of interest to examine the asymptotic behavior of the scalingof FP(n) when the value of the power l is close to an inte-ger. In particular, we consider how the scaling of FP(n) ob-tained from the DFA-2 method changes when l→1 @Fig.11~c!#. Surprisingly, we find that even though the values ofFP(n) are very small at large scales, there is a scaling forFP(n) with a smooth convergence of the effective exponental→2.5 when l→1, according to the dependence al'l11.5 established for region II @Fig. 11~b!#. At smaller scalesthere is a flat region which is due to the fact that the fluctua-tion function Y (i) @Eq. ~3!# is smaller than the precision ofthe numerical simulation.

B. Dependence of FP„n… on the order l of DFA

Another factor that affects the rms fluctuation function ofthe power-law trend FP(n) is the order l of the DFA methodused. We first take into account the following.

~1! For integer values of the power l , the power-law trendu(i)5APil is a polynomial trend which can be perfectlyfiltered out by the DFA method of order l.l , and as dis-cussed in Secs. III B and V A @see Figs. 11~b! and 11~c!#,there is no scaling for FP(n). Therefore, in this section weconsider only noninteger values of l .

~2! For a given value of the power l , the effective expo-nent al can take different values depending on the order l ofthe DFA method we use ~see Fig. 11!—e.g., for fixed l.l20.5,al'l11. Therefore, in this section we consider onlythe case when l,l20.5 ~regions II and III!.

Since higher-order DFA-l provides a better fit for thedata, the fluctuation function Y (i) @Eq. ~3!# decreases withincreasing order l . This leads to a vertical shift to smallervalues of the rms fluctuation function F(n) @Eq. ~4!#. Such avertical shift is observed for the rms fluctuation functionFh(n) for correlated noise ~see Appendix A!, as well as forthe rms fluctuation function of power-law trend FP(n). Herewe ask how this vertical shift in Fh(n) and FP(n) dependson the order l of the DFA method, and if this shift has dif-ferent properties for Fh(n) compared to FP(n). This infor-mation can help identify power-law trends in noisy data, andcan be used to differentiate crossovers separating scaling re-gions with different types of correlations and crossovers thatare due to effects of power-law trends.

We consider correlated noise with a superposed power-law trend, where the crossover in FhP(n) at large scales nresults from the dominant effect of the power-law trend—FhP(n)'FP(n) @Eq. ~18! and Fig. 10~a!#. We choose thepower l,0.5, a range where for all orders l of the DFAmethod the effective exponent al of FP(n) remains thesame, i.e., al5l11.5 @region II in Fig. 11~b!#. For a super-position of an anticorrelated noise and power-law trend withl50.4, we observe a crossover in the scaling behavior ofFhP(n), from a scaling region characterized by the correla-tion exponent a50.1 of the noise, where FhP(n)'Fh (n),to a region characterized by an effective exponent al51.9,where FhP(n)'FP(n), for all orders l51,2,3 of the DFA-lmethod @Fig. 12~a!#. We also find that the crossover ofFhP(n) shifts to larger scales when the order l of DFA-lincreases, and that there is a vertical shift of FhP(n) to lower

values. This vertical shift in FhP(n) at large scales, whereFhP(n)5FP(n), appears to be different in magnitude whendifferent order l of the DFA-l method is used @Fig. 12~a!#.We also observe a less pronounced vertical shift at smallscales where FhP(n)'Fh(n).

Next, we ask how these vertical shifts depend on the orderl of DFA-l . We define the vertical shift D as the y interceptof FP(n): D[FP(n51). We find that the vertical shift D inFP(n) for the power-law trend follows a power law: D;lt(l). We tested this relation for orders up to l510, and wefind that it holds for different values of the power l of thepower-law trend @Fig. 12~b!#. Using Eq. ~19! we can writeFP(n)/FP(n51)5nal, i.e., FP(n);FP(n51). Since FP(n51)[D;lt(l) @Fig. 12~b!#, we find that

FP~n !;lt(l). ~20!

We also find that the exponent t is negative and is a decreas-ing function of the power l @Fig. 12~c!#. Because the effec-tive exponent al which characterizes FP(n) depends on thepower l @see Fig. 11~b!#, we can express the exponent t as afunction of al as we show in Fig. 12~d!. This representationcan help us compare the behavior of the vertical shift D inFP(n) with the shift in Fh(n). For correlated noise with adifferent correlation exponent a , we observe a similarpower-law relation between the vertical shift in Fh(n) andthe order l of DFA-l: D;lt(a), where t is also a negativeexponent that decreases with a . In Fig. 12~d! we comparet(al) for FP(n) with t(a) for Fh(n), and find that for anyal5a , t(al),t(a). This difference between the verticalshift for correlated noise and for a power-law trend can beutilized to recognize effects of power-law trends on the scal-ing properties of data.

C. Dependence of FP„n… on the signal length Nmax

Here we study how the rms fluctuation function FP(n)depends on the length Nmax of the power-law signal u(i)5APil (i51, . . . ,Nmax). We find that there is a vertical shiftin FP(n) with increasing Nmax @Fig. 13~a!#. We observe thatwhen doubling the length Nmax of the signal the vertical shiftin FP(n), which we define as FP

2Nmax/FPNmax , remains the

same, independent of the value of Nmax . This suggests apower-law dependence of FP(n) on the length of the signal:

FP~n !;~Nmax!g, ~21!

where g is an effective scaling exponent.Next, we ask if the vertical shift depends on the power l

of the power-law trend. When doubling the length Nmax ofthe signal, we find that for l,l20.5, where l is the order ofthe DFA method, the vertical shift is a constant independentof l @Fig. 13~b!#. Since the value of the vertical shift whendoubling the length Nmax is 2g @from Eq. ~21!#, the results inFig. 13~b! show that g is independent of l when l,l20.5,and that 2log2g'20.15, i.e. The effective exponent g'20.5.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-11

For l.l20.5, when doubling the length Nmax of the sig-nal, we find that the vertical shift 2g exhibits the followingdependence on l: 2log102

g5log102

l2l, and thus the effec-tive exponent g depends on l — g5l2l . For positive in-teger values of l (l5l), we find that g50, and there is noshift in FP(n), suggesting that FP(n) does not depend on thelength Nmax of the signal, when DFA of order l is used ~Fig.13!. Finally, we note that depending on the effective expo-nent g , i.e., on the order l of the DFA method and the valueof the power l , the vertical shift in the rms fluctuation func-tion FP(n) for the power-law trend can be positive (l.l),negative (l,l), or zero (l5l).

D. Combined effect on FP„n… of l , l , and Nmax

We have seen that by taking into account the effects ofthe power l @Eq. ~19!#, the order l of DFA-l @Eq. ~20!#, andthe effect of the length of the signal Nmax @Eq. ~21!#, wereach the following expression for the rms fluctuation func-tion FP(n) for a power-law trend u(i)5APil:

FP~n !;APnallt(l)~Nmax!g(l). ~22!

For correlated noise, the rms fluctuation function Fh(n) de-

101

102

103

104

n10

–1

100

101

102

103

FηP

(n)

DFA–1DFA–2DFA–3

nx

α=0.1

αλ=1.9

(a) Noise with power–law trend

1 10Order l of the DFA method

10–18

10–14

10–10

10–6

10–2

102

∆ λ=−0.6λ=−0.2λ=0.2λ=0.6λ=1.2λ=1.6

τ(λ)

(b) Dependence of vertical shift ∆ on l

2 3 4 5 6 7 8 9

–1 0 1 2λ

–7

–5

–3

–1

τ(λ)

(c)

0 1 2 3α

–7

–5

–3

–1

1

τ

Power–law trend: τ vs. αλ Correlated noise: τ vs. α

(d)

FIG. 12. Effect of higher-order DFA-l on the rms fluctuation function FhP(n) for correlated noise with a superposed power-law trend.~a! FhP(n) for anticorrelated noise with the correlation exponent a50.1 and a power-law u(i)5APil, where AP525/(Nmax)0.4, Nmax

5217, and l50.4. Results for different order l51,2,3 of the DFA method show ~i! a clear crossover from a region at small scales where thenoise dominates FhP(n)'Fh (n) to a region at larger scales where the power-law trend dominates FhP(n)'FP(n), and ~ii! a vertical shiftD in FhP with increasing l . ~b! Dependence of the vertical shift D in the rms fluctuation function FP(n) for a power-law trend on the orderl of DFA-l for different values of l: D;lt(l). We define the vertical shift D as the y intercept of FP(n): D[FP(n51). Note, that weconsider only noninteger values for l and that we consider the region l,l20.5. Thus, for all values of l the minimal order l that can beused in the DFA method is l.l10.5, e.g., for l51.6 the minimal order of the DFA that can be used is l53 @for details see Fig. 11~b!#.~c! Dependence of t on the power l @error bars indicate the regression error for the fits of D(l) in ~b!#. ~d! Comparison of t(al) for FP(n)and t(a) for Fh(n). Faster decay of t(al) indicates larger vertical shifts for FP(n) compared to Fh(n) with increasing order l of theDFA-l .

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-12

pends on the box size n @Eq. ~6!# and on the order l of DFA-l @Sec. V B and Fig. 12~a!, ~d!#, and does not depend on thelength of the signal Nmax . Thus we have the following ex-pression for Fh(n):

Fh~n !;nalt(a). ~23!

To estimate the crossover scale n3 observed in the appar-ent scaling of FhP(n) for a correlated noise superposed witha power-law trend @Figs. 10~a!, 10~b!, and 12~a!#, we employthe superposition rule @Eq. ~18!#. From Eqs. ~22! and ~23!,we obtain n3 as the intercept between FP(n) and Fh(n),

n3;@Alt(l)2t(a)~Nmax!g#1/(a2al). ~24!

To test the validity of this result, we consider the case ofcorrelated noise with a linear trend. For the case of a lineartrend (l51) when DFA-1 (l51) is applied, we have al

52 @see Appendix C and Sec. V A, Fig. 11~b!#. Since in thiscase l5l51.l20.5 we have g5l2l50 @see Sec.V C,Fig. 13~b!#, and from Eq. ~24! we recover Eq. ~9!.

VI. CONCLUSION AND SUMMARY

In this paper we show that the DFA method performsbetter than the standard R/S analysis to quantify the scalingbehavior of noisy signals for a wide range of correlations,and we estimate the range of scales where the performanceof the DFA method is optimal. We consider different typesof trends superposed on correlated noise, and we study howthese trends affect the scaling behavior of the noise. Wedemonstrate that there is a competition between a trend and anoise, and that this competition can lead to crossovers in the

scaling. We investigate the features of these crossovers, theirdependence on the properties of the noise, and the super-posed trend. Surprisingly, we find that crossovers which area result of trends can exhibit power-law dependences on theparameters of the trends. We show that these crossover phe-nomena can be explained by the superposition of the separateresults of the DFA method on the noise and on the trend,assuming that the noise and the trend are not correlated, andthat the scaling properties of the noise and the apparent scal-ing behavior of the trend are known. Our work may providesome help to differentiate between different types of cross-overs, e.g., crossovers that separate scaling regions with dif-ferent correlation properties may differ from crossovers thatare an artifact of trends. The results we present here could beuseful for identifying the presence of trends and to accuratelyinterpret correlation properties of noisy data. Related workon trends @64# and other forms of nonstationarity @65# will bepublished separately.

ACKNOWLEDGMENTS

We thank NIH/National Center for Research Resources~Grant No. P41RR13622!, NSF, and the Spanish Govern-ment ~Grant No. BIO99-0651-CO2-01! for support, and alsoA. L. Goldberger, C.-K. Peng, and Y. Ashkenazy for helpfuldiscussions.

APPENDIX A: NOISE

The standard signals we generate in our study are uncor-related, correlated, and anticorrelated noise. First we musthave a clear idea of the scaling behaviors of these standardsignals before we use them to study the effects from other

101

102

103

104

105

n10

–6

10–4

10–2

100

102

104

FP(n

)

Nmax=217

Nmax=219

Nmax=221

DFA–1

(a) Power–law trend: λ=0.4

αλ=1.9

–2 0 2 4λ

–0.35

–0.25

–0.15

–0.05

0.05

0.15

0.25

–log

10 [

F2N

max/F

Nm

ax]

DFA–1DFA–2DFA–3

–log102

(b) Vertical shift due to length doubling

FIG. 13. Dependence of the rms fluctuation function FP(n) for a power-law trend u(i)5APil, where i51, . . . ,Nmax , on the length of thetrend Nmax . ~a! A vertical shift is observed in FP(n) for different values of Nmax—N1max and N2max . The figure shows that the vertical shift,defined as FP

N1max(n)/FPN2max(n), does not depend on Nmax but only on the ratio N1max /N2max , suggesting that FP(n);(Nmax)g. ~b!

Dependence of the vertical shift on the power l . For l,l20.5 (l is the order of DFA!, we find a flat ~constant! region characterized withan effective exponent g520.5 and negative vertical shift. For l.l20.5, we find an exponential dependence of the vertical shift on l . Inthis region, g5l2l , and the vertical shift can be negative ~if l,l) or positive ~if l.l). The slope of 2log10@FP

2Nmax(n)/FPNmax(n)# vs l

is 2log102 due to doubling the length of the signal Nmax . This slope changes to 2log10m when Nmax is increased m times while g remainsindependent of Nmax . For l5l there is no vertical shift, as marked with 3 . Arrows indicate integer values of l,l , for which values theDFA-l method filters out completely the power-law trend and FP50.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-13

aspects. We generate noises by using a modified Fourier fil-tering method @63#. This method can efficiently generatenoise u(i) (i51,2,3, . . . ,Nmax), with the desired power-lawcorrelation function that asymptotically behaves as^u( j5i

i1tu( j)u2&;t2a. By default, a generated noise has stan-dard deviation s51. Then we can test DFA and R/S byapplying it on generated noises since we know the expectedscaling exponent a .

Before doing that, we want to briefly review the algorithmof R/S analysis. For a signal u(i) (i51, . . . ,Nmax), it is di-vided into boxes of equal size n. In each box, the cumulativedeparture X i ~for the kth box, i5kn11, . . . ,kn1n) is cal-culated

X i5 (j5kn11

i

@u~ j !2^u&# , ~A1!

where ^u&5n21( i5kn11(k11)n u(i) , and the rescaled range R/S is

defined by

R/S5S21F maxkn11<i<(k11)n

X i2 minkn11<i<(k11)n

X iG , ~A2!

where S5An21( j51n @u( j)2^u&#2 is the standard deviation

in each box. The average of rescaled range in all the boxes ofequal size n, is obtained and denoted by ^R/S&. Repeat theabove computation over different box size n to provide arelationship between ^R/S& and n. According to Hurst’s ex-perimental study @66#, a power-law relation between ^R/S&and the box size n indicates the presence of scaling: ^R/S&;na.

Figure 14 shows the results of R/S , DFA-1, and DFA-2on the same generated noises. Loosely speaking, we can seethat F(n) ~for DFA! and R/S ~for R/S analysis! show apower-law relation with n as expected: F(n);na and R/S;na. In addition, there is no significant difference betweenthe results of different order DFA except for some verticalshift of the curves and the little bend-down for small box sizen. The bend-down for a very small box of F(n) from higher-order DFA is because there are more variables to fit thosefew points.

Ideally, when analyzing a standard noise, F(n) ~DFA!

and R/S (R/S analysis! will be power-law functions with agiven power: a , no matter which region of F(n) and R/S is

100

101

102

103

104

105

n

100

101

102

103

104

R/S

α=0.1α=0.3α=0.5α=0.7α=0.9

1

2 3

α2

(a) R/S analysis

100

101

102

103

104

n10

–1

100

101

102

103

F(n

)

α=0.1α=0.3α=0.5α=0.7α=0.9

1

2 3

(b) DFA–1

α2

100

101

102

103

104

n10

–1

100

101

102

103

F(n

)

α = 0.1α = 0.3α = 0.5α = 0.7α = 0.9

(c) DFA–2

FIG. 14. Scaling behavior of noise with the scaling exponent a . The length of noise Nmax5217. ~a! Rescaled range analysis (R/S). ~b!

Order-1 detrended fluctuation analysis ~DFA-1!. ~c! Order-2 detrended fluctuation analysis ~DFA-2!. We do the linear fitting for the R/Sanalysis and the DFA-1 in three regions as shown and get a1 , a2, and a3 for estimated a , which are listed in Tables IV and V. We find thatthe estimation of a is different in the different regions.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-14

chosen. However, a careful study shows that the scaling ex-ponent a depends on scale n. The estimated a is different forthe different regions of F(n) and R/S as illustrated by Figs.14~a! and 14~b! and by Tables IV and V. It is very importantto know the best fitting region of the DFA and R/S analysis

in the study of real signals. Otherwise, an inaccurate valuefor a will be obtained if an inappropriate region is selected.

In order to find the best region, we first determine thedependence of the locally estimated a , a loc , on the scale n.First, generate a standard noise with given scaling exponent

TABLE V. Estimation of the correlation exponent a for corre-lated noise from DFA-1 in the three regions as shown in Fig. 14~b!.a is the input value of the scaling exponent, a1 is the estimationfrom region 1 (4,n<32), a2 from region 2 (32,n<3162), anda3 from region 3 (3126,n<217).

a a1 a2 a3

0.1 0.28 0.15 0.080.3 0.40 0.31 0.220.5 0.55 0.50 0.350.7 0.72 0.69 0.550.9 0.91 0.91 0.69

100

101

102

103

104

n

0.1

0.3

0.5

0.7

0.9

1.1

α loc

α=0.1α=0.3α=0.5α=0.7α=0.9integrated α=0.1

nmin

(a) R/S Nmax=214

corr

elat

edan

tiun

corr

elat

ed

100

102

104

n

0.1

0.3

0.5

0.7

0.9

1.1

α loc

α=0.1α=0.3α=0.5α=0.7α=0.9integrated α=0.1

nmin

(b) R/S Nmax=220

corr

elat

edan

tiun

corr

elat

ed

100

101

102

103

104

n

0.1

0.3

0.5

0.7

0.9

1.1

α loc

α=0.1α=0.3α=0.5α=0.7α=0.9integrated α=0.1

(c) DFA–1 N max=214

nmin

corr

elat

edun

corr

elat

edan

ti

10–1

101

103

105

n

0.1

0.3

0.5

0.7

0.9

1.1

α loc

α=0.1α=0.3α=0.5α=0.7α=0.9integrated α=0.1

(d) DFA–1 N max=220

nmin

corr

elat

edan

tiun

corr

elat

ed

FIG. 15. The estimated a from the local fit ~a! R/S analysis, the length of signal Nmax5214. ~b! R/S analysis, Nmax5220. ~c! DFA-1,Nmax5214. ~d! DFA-1, Nmax5220. a loc come from the average of 50 simulations. If a technique is working, then the data for the scalingexponent a should be a weakly fluctuating horizontal line centered about a loc5a . Note that such a horizontal behavior does not hold for allthe scales. Generally, such an expected behavior begins from some scale nmin , holds for a range, and ends at a larger scale nmax . For DFA-1,nmin is quite small a.0.5. For the R/S analysis, nmin is small only when a'0.7.

TABLE IV. Estimation of the correlation exponent a for corre-lated noise from the R/S analysis in three regions as shown in Fig.14~a!. a is the input value of the scaling exponent, a1 is the esti-mation from region 1 (4,n<32), a2 from region 2 (32,n<3162), and a3 from region 3 (3126,n<217). The same corre-lated noise is used in Table V.

a a1 a2 a3

0.1 0.44 0.23 0.120.3 0.52 0.37 0.230.5 0.62 0.52 0.470.7 0.72 0.70 0.450.9 0.81 0.87 0.63

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-15

a; then calculate F(n) ~or R/S), and obtain a loc(n) by localfitting of F(n) ~or R/S). The same random simulation isrepeated 50 times for both the DFA and R/S analyses. Theresultant average a loc(n), respectively, is illustrated in Fig.15 for the DFA-1 and R/S analyses.

If a scaling analysis method is working properly, then theresult a loc(n) from simulation with a would be a horizontalline with a slight fluctuation centered about a loc(n)5a . Notefrom Fig. 15 that such a horizontal behavior does not holdfor all the scales n but for a certain range from nmin to nmax .In addition, at small scale, the R/S analysis gives a loc.a ifa,0.7 and a loc,a if a.0.7, which has been pointed outby Mandelbrot @67#, while DFA gives a loc.a if a,1.0 anda loc,a if a.1.0.

It is clear that the smaller the nmin and the larger the nmax ,the better the method. We also perceive that the expectedhorizontal behavior stops because the fluctuations becomelarger due to the undersampling of F(n) or R/S when n getscloser to the length of the signal Nmax . Furthermore, it canbe seen from Fig. 15 that nmax'

110 Nmax independent of a ~if

the best-fit region exists!, which is why one-tenth of the sig-nal length can be considered as the maximum box size whenusing a DFA or R/S analysis.

On the contrary, nmin does not depend on the Nmax sincea loc(n) at small n hardly changes as Nmax varies but it doesdepend on a . Thus, we obtain nmin quantitatively as shownin Fig. 16. For the R/S analysis, nmin is small only whena'0.7. When a.0.7 and a,0.7, nmin becomes very largeand close to nmax , indicating that the best-fit region willvanish and the R/S analysis does not work at all.

Compared to R/S , DFA works better since nmin is quitesmall for correlated signals with a.0.5. However, fora,0.5 nmin is still relatively large. We can improve this

situation by first integrating the correlated noise and thenapplying the DFA to the integrated signal. The resultant ex-ponent a8 for the integrated signal will be a085a11. Wefind that nmin for the integrated signal becomes much smalleras shown in Fig. 16 ~shaded area a.1). Therefore, for cor-related noise with a,0.5, it is best to estimate first the scal-ing exponent a8 of the integrated signal and then to obtain aby a5a821.

APPENDIX B: SUPERPOSITION LAW FOR THE DFA

For two uncorrelated signals f (i) and g(i), their root-mean-square ~rms! fluctuation functions are F f(n) andFg(n), respectively. We want to prove that for the signalf (i)1g(i), its rms fluctuation function

F f 1g~n !5AF f~n !21Fg~n !2. ~B1!

Consider three signals in the same box first. The inte-grated signals for f, g, and f 1g are y f(i), yg(i), and y f 1g(i)and their corresponding trends are y f

f it , ygf it , and y f 1g

f it (i51,2, . . . ,n , n is the box size!. Since y f 1g(i)5y f(i)1yg(i) and combines the definition of the detrended fluctua-tion function Eq. ~3!, we have that for all boxes

Y f 1g~ i !5Y f~ i !1Y g~ i !, ~B2!

where Y f 1g is the detrended fluctuation function for the sig-nal f 1g , Y f(i) is for the signal f, and Y g(i) for g. Further-more, according to the definition of the rms fluctuation, wecan obtain

F f 1g~n !5A 1

Nmax(i51

Nmax

@Y f 1g~ i !#2

5A 1

Nmax(i51

Nmax

@Y f~ i !1Y g~ i !#2, ~B3!

where l is the number of boxes and k means the kth box. Iff and g are not correlated, neither are Y f(i) and Y g(i) and,thus,

(i51

Nmax

Y f~ i !Y g~ i !50. ~B4!

From Eq. ~B4! and Eq. ~B3! we have

F f 1g~n !5A 1

Nmax(i51

Nmax

@Y f~ i !21Y g~ i !2#

5A@F f~n !#21@Fg~n !#2. ~B5!

APPENDIX C: DFA-1 ON LINEAR TREND

Let us suppose a linear time series u(i)5ALi . The inte-grated signal yL(i) is

0 0.5 1 1.5α

100

102

104

106

n min

R/SDFA–1

minimum box size

FIG. 16. The starting point of a good-fit region, nmin , for theDFA-1 and R/S analyses. The results are obtained from 50 simula-tions, in which the length of noise is Nmax5220. The condition for agood fit is Da5ua loc2au,0.01. The data for a.1.0 shown in theshading area are obtained by applying an analysis on the integra-tions of noises with a,1.0. It is clear that the DFA-1 works betterthan the R/S analysis because its nmin is always smaller than that ofthe R/S analysis.

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-16

yL~ i !5(j51

i

AL j5AL

i21i

2. ~C1!

Let as call Nmax the size of the series and n the size of thebox. The rms fluctuation FL(n) as a function of n and Nmaxis

FL~n !

5ALA 1

Nmax(k51

Nmax /n

(i5(k21)n11

kn S i21i

22~ak1bki ! D 2

,

~C2!

where ak and bk are the parameters of a least-squares fit ofthe kth box of size n. ak and bk can be determined analyti-cally, thus giving

ak5121

12 n21

12 n2k1

112 n2

12 k2n2, ~C3!

bk51212 n1kn1

12 . ~C4!

With these values, FL(n) can be evaluated analytically,

FL~n !5AL1

60 A~5n4125n3

125n2225n230! ~C5!

The dominating term inside the square root is 5n4 and thenone obtains

FL~n !'A5

60ALn2, ~C6!

leading directly to an exponent of 2 in the DFA. An impor-tant consequence is that as F(n) does not depend on Nmax ,for linear trends with the same slope, the DFA must giveexactly the same results for series of different sizes. This isnot true for other trends, where the exponent is 2, but thefactor multiplying n2 can depend on Nmax .

APPENDIX D: DFA-1 ON A QUADRATIC TREND

Let us suppose now a series of the type u(i)5AQi2. Theintegrated time series y(i) is

y~ i !5AQ(j51

i

j25AQ

2i313i2

1i

6. ~D1!

As before, let us call Nmax and n the sizes of the series andbox, respectively. The rms fluctuation function FQ(n) mea-suring the rms fluctuation is now defined as

FQ~n !5AQA 1

Nmax(k51

Nmax /n

(i5(k21)n11

kn S 2i313i2

1i

62~ak1bki ! D 2

, ~D2!

where ak and bk are the parameters of a least-squares fit of the kth box of size n. As before, ak and bk can be determinedanalytically, thus giving

ak51

15 n31n3k2

27

15 n3k11730 n2k2

760 n2

11

20 n223 k3n3

212 n2k2

11

15 kn , ~D3!

bk53

10 n21n2k2

2n2k1kn225 n1

110 . ~D4!

Once ak and bk are known, F(n) can be evaluated, giving

FQ~n !5AQ

1

1260A221~n4

15n315n2

25n26 !~32n226n2812210Nmax2140Nmax

2 !. ~D5!

As Nmax.n , the dominant term inside the square root is given by 140Nmax2

321n45AQ2940n4Nmax

2 , and then one hasapproximately

FQ~n !'AQ1

1260 A2940n4Nmax2

5AQ1

90 A15Nmaxn2 ~D6!

leading directly to an exponent 2 in the DFA analysis. An interesting consequence derived from Eq. ~D6! is that FQ(n)depends on the length of the signal Nmax , and the DFA line @ logFQ(n) vs logn# for the quadratic series u(i)5AQi2 of differentNmax does not overlap ~as is the case for linear trends!.

@1# C.-K. Peng, S. V. Buldyrev, S. Havlin, M. Simons, H. E. Stan-ley, and A. L. Goldberger, Phys. Rev. E 49, 1685 ~1994!.

@2# S. V. Buldyrev, A. L. Goldberger, S. Havlin, C.-K. Peng, H. E.Stanley, and M. Simons, Biophys. J. 65, 2673 ~1993!.

@3# S. M. Ossadnik, S. B. Buldyrev, A. L. Goldberger, S. Havlin,

R. N. Mantegna, C.-K. Peng, M. Simons, and H. E. Stanley,Biophys. J. 67, 64 ~1994!.

@4# M. S. Taqqu, V. Teverovsky, and W. Willinger, Fractals 3, 785~1995!.

@5# N. Iyengar, C.-K. Peng, R. Morin, A. L. Goldberger, and L. A.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-17

Lipsitz, Am. J. Physiol. 40, R1078 ~1996!.@6# P. Ch. Ivanov, M. G. Rosenblum, C.-K. Peng, J. E. Mietus, S.

Havlin, H. E. Stanley, and A. L. Goldberger, Nature ~London!

383, 323 ~1996!.@7# K. K. L. Ho, G. B. Moody, C.-K. Peng, J. E. Mietus, M. G.

Larson, D. Levy, and A. L. Goldberger, Circulation 96, 842~1997!.

@8# P. Ch. Ivanov, M. G. Rosenblum, C.-K. Peng, J. E. Mietus, S.Havlin, H. E. Stanley, and A. L. Goldberger, Physica A 249,587 ~1998!.

@9# M. Barbi, S. Chillemi, A. Di Garbo, R. Balocchi, C. Carpeg-giani, M. Emdin, C. Michelassi, and E. Santarcangelo, Chaos,Solitons Fractals 9, 507 ~1998!.

@10# P. Ch. Ivanov, A. Bunde, L. A. Nunes Amaral, S. Havlin, J.Fritsch-Yelle, R. M. Baevsky, H. E. Stanley, and A. L. Gold-berger, Europhys. Lett. 48, 594 ~1999!.

@11# S. M. Pikkujamsa, T. H. Makikallio, L. B. Sourander, I. J.Raiha, P. Puukka, J. Skytta, C.-K. Peng, A. L. Goldberger, andH. V. Huikuri, Circulation 100, 393 ~1999!.

@12# S. Havlin, S. V. Buldyrev, A. Bunde, A. L. Goldberger, P. Ch.Ivanov, C.-K. Peng, and H. E. Stanley, Physica A 273, 46~1999!.

@13# H. E. Stanley, L. Amaral, A. L. Goldberger, S. Havlin, P. C.Ivanov, and C.-K. Peng, Physica A 270, 309 ~1999!.

@14# Y. Ashkenazy, M. Lewkowicz, J. Levitan, S. Havlin, K. Saer-mark, H. Moelgaard, and P. E. B. Thomsen, Fractals 7, 85~1999!.

@15# T. H. Makikallio, J. Koistinen, L. Jordaens, M. P. Tulppo, N.Wood, B. Golosarsky, C.-K. Peng, A. L. Goldberger, and H.V. Huikuri, Am. J. Cardiol. 83, 880 ~1999!.

@16# C.-K. Peng, S. Havlin, H. E. Stanley, and A. L. Goldberger,Chaos 5, 82 ~1995!.

@17# S. Havlin, S. V. Buldyrev, A. L. Goldberger, S. M. Ossad-niksm, C.-K. Peng, M. Simons, and H. E. Stanley, Chaos, Soli-tons Fractals 6, 171 ~1995!.

@18# P. A. Absil, R. Sepulchre, A. Bilge, and P. Gerard, Physica A272, 235 ~1999!.

@19# S. Havlin, L. A. Nunes Amaral, A. L. Goldberger, P. Ch.Ivanov, C.-K. Peng, and H. E. Stanley, Physica A 274, 99~1999!.

@20# D. Toweill, K. Sonnenthal, B. Kimberly, S. Lai, and B. Gold-stein, Crit. Care Med. 28, 2051 ~2000!.

@21# A. Bunde, S. Havlin, J. W. Kantelhardt, T. Penzel, J. H. Peter,and K. Voigt, Phys. Rev. Lett. 85, 3736 ~2000!.

@22# T. T. Laitio, H. V. Huikuri, E. S. H. Kentala, T. H. Makikallio,J. R. Jalonen, H. Helenius, K. Sariola-Heinonen, S. Yli-Mayry,and H. Scheinin, Anesthesiology 93, 69 ~2000!.

@23# Y. Ashkenazy, P. Ch. Ivanov, S. Havlin, C.-K. Peng, A. L.Goldberger, and H. E. Stanley, Phys. Rev. Lett. 86, 1900~2001!.

@24# C.-K. Peng, S. V. Buldyrev, A. L. Goldberger, S. Havlin, M.Simons, and H. E. Stanley, Phys. Rev. E 47, 3730 ~1993!.

@25# H. E. Stanley, S. V. Buldyrev, A. L. Goldberger, S. Havlin, R.N. Mantegna, C.-K. Peng, and M. Simons, Nuovo Cimento D16, 1339 ~1994!.

@26# R. N. Mantegna, S. V. Buldyrev, A. L. Goldberger, S. Havlin,C.-K. Peng, M. Simons, and H. E. Stanley, Phys. Rev. Lett. 73,3169 ~1994!.

@27# C.-K. Peng, S. V. Buldyrev, A. L. Goldberger, S. Havlin, R. N.

Mantegna, M. Simons, and H. E. Stanley, Physica A 221, 180~1995!.

@28# S. Havlin, S. V. Buldyrev, A. L. Goldberger, R. N. Mantegna,C.-K. Peng, M. Simons, and H. E. Stanley, Fractals 3, 269~1995!.

@29# R. N. Mantegna, S. V. Buldyrev, A. L. Goldberger, S. Havlin,C.-K. Peng, M. Simons, and H. E. Stanley, Phys. Rev. Lett. 76,1979 ~1996!.

@30# S. V. Buldyrev, N. V. Dokholyan, A. L. Goldberger, S. Havlin,C.-K. Peng, H. E. Stanley, and G. M. Viswanathan, Physica A249, 430 ~1998!.

@31# S. Blesic, S. Milosevic, D. Stratimirovic, and M. Ljubisavl-jevic, Physica A 268, 275 ~1999!.

@32# H. Yoshinaga, S. Miyazima, and S. Mitake, Physica A 280,582 ~2000!.

@33# C. A. Perazzo, E. A. Fernandez, D. R. Chialvo, and P.l.Willshaw, Fractals 8, 279 ~2000!.

@34# Z. Siwy, S. Mercik, K. Ivanova, and M. Ausloos, Physica A~to be published!.

@35# Y. Liu, P. Cizeau, M. Meyer, C.-K. Peng, and H. E. Stanley,Physica A 245, 437 ~1997!.

@36# N. Vandewalle and M. Ausloos, Physica A 246, 454 ~1997!.@37# N. Vandewalle and M. Ausloos, Phys. Rev. E 58, 6832 ~1998!.@38# Y. Liu, P. Gopikrishnan, P. Cizeau, M. Meyer, C.-K. Peng,

and H. E. Stanley, Phys. Rev. E 60, 1390 ~1999!.@39# I. M. Janosi, B. Janecsko, and I. Kondor, Physica A 269, 111

~1999!.@40# M. Ausloos, N. Vandewalle, P. Boveroux, A. Minguet, and K.

Ivanova, Physica A 274, 229 ~1999!.@41# M. Roberto, E. Scalas, G. Cuniberti, and M. Riani, Physica A

269, 148 ~1999!.@42# N. Vandewalle, M. Ausloos, and P. Boveroux, Physica A 269,

170 ~1999!.@43# P. Grau-Carles, Physica A 287, 396 ~2000!.@44# M. Ausloos, Physica A 285, 48 ~2000!.@45# M. Ausloos and K. Ivanova, Physica A 286, 353 ~2000!.@46# M. Ausloos and K. Ivanova, Phys. Rev. E 63, 047201 ~2001!.@47# M. Ausloos and K. Ivanova, Int. J. Mod. Phys. C ~to be pub-

lished!.@48# K. Ivanova and M. Ausloos, Physica A 274, 349 ~1999!.@49# A. Montanari, R. Rosso, and M. S. Taqqu, Water Resour. Res.

36, ~5!, 1249 ~2000!.@50# C. Matsoukas, S. Islam, and I. Rodriguez-Iturbe, J. Geophys.

Res., @Atmos.# 105, 29 165 ~2000!.@51# J. W. Kantelhardt, R. Berkovits, S. Havlin, and A. Bunde,

Physica A 266, 461 ~1999!.@52# C. L. Alados and M. A. Huffman, Ethology 106, 105 ~2000!.@53# C.-K. Peng, J. E. Mietus, J. M. Hausdorff, S. Havlin, H. E.

Stanley, and A. L. Goldberger, Phys. Rev. Lett. 70, 1343~1993!.

@54# N. Makarenko, L. M. Karimova, B. I. Demchenko, and M. M.Novak, Fractals 6, 359 ~1998!.

@55# G. M. Viswanathan, S. V. Buldyrev, E. K. Garger, V. A. Kash-pur, L. S. Lucena, A. Shlyakhter, H. E. Stanley, and J. Tsch-iersch, Phys. Rev. E 62, 4389 ~2000!.

@56# E. Koscielny-Bunde, A. Bunde, S. Havlin, H. E. Roman, Y.Goldreich, and H. J. Schellnhuber, Phys. Rev. Lett. 81, 729~1998!.

@57# E. Koscielny-Bunde, H. E. Roman, A. Bunde, S. Havlin, and

HU, IVANOV, CHEN, CARPENA, AND STANLEY PHYSICAL REVIEW E 64 011114

011114-18

H. J. Schellnhuber, Philos. Mag. B 77, 1331 ~1998!.@58# K. Ivanova, M. Ausloos, E. E. Clothiaux, and T. P. Ackerman,

Europhys. Lett. 52, 40 ~2000!.@59# P. Talkner and R. O. Weber, Phys. Rev. E 62, 150 ~2000!.@60# Y. Ogata and K. Abe, Issues Sci. Technol. 59, 139 ~1991!.@61# M. F. Shlesinger and G. H. Weiss, The Wonderful World of

Stochastics: A Tribute to Elliott W. Montroll ~North-Holland,New York, 1985!.

@62# D. Stauffer and H. E. Stanley, From Newton to Mandelbrot,2nd ed. ~Springer-Verlag, Berlin, 1996!.

@63# H. A. Makse, S. Havlin, M. Schwartz, and H. E. Stanley, Phys.

Rev. E 53, 5445 ~1996!.@64# J. W. Kantelhardt, E. Koscielny-Bunde, H. H. A. Rego, S.

Havlin, and A. Bunde, Physica A 294, 441 ~2001!.@65# Z. Chen, P. Ch. Ivanov, K. Hu, and H. E. Stanley ~unpub-

lished!.@66# H. E. Hurst, Trans. Am. Soc. Civ. Eng. 116, 770 ~1951!.@67# B. B. Mandelbrot and James R. Wallis, Water Resources Res.

5, No. 2, 321 ~1969!.@68# P. Bernaola Galvan, R. Roman Roldan, and J. L. Oliver, Phys.

Rev. E 53, 5181 ~1996!.

EFFECT OF TRENDS ON DETRENDED FLUCTUATION . . . PHYSICAL REVIEW E 64 011114

011114-19