ArticleslgStudy

science

Detrended fluctuation analysis

Detrended fluctuation analysis is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Detrended fluctuation analysis rather than just read about it. In short: In stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analysing time series that appear to be long-memory processes (diverging correlation time, e.g. power-law decaying autocorrelation function) or 1/f noise.

Detrended fluctuation analysis — main illustration
Detrended fluctuation analysis — illustration

Key takeaways

  • Detrended fluctuation analysis belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Detrended fluctuation analysis to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Detrended fluctuation analysis from memory before moving on to harder problems.

Reference excerpt

In stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analysing time series that appear to be long-memory processes (diverging correlation time, e.g. power-law decaying autocorrelation function) or 1/f noise. The obtained exponent is similar to the Hurst exponent, except that DFA may also be applied to signals whose underlying statistics (such as mean and variance) or dynamics are non-stationary (changing with time). It is related to measures based upon spectral techniques such as autocorrelation and Fourier transform. Peng et al. introduced DFA in 1994 in a paper that has been cited over 3,000 times as of 2022 and represents an extension of the (ordinary) fluctuation analysis (FA), which is affected by non-stationarities. Systematic studies of the advantages and limitations of the DFA method were performed by PCh Ivanov et al. in a series of papers focusing on the effects of different types of nonstationarities in real-world signals: (1) types of trends; (2) random outliers/spikes, noisy segments, signals composed of parts with different correlation; (3) nonlinear filters; (4) missing data; (5) signal coarse-graining procedures and comparing DFA performance with moving average techniques (cumulative citations > 4,000). Datasets generated to test DFA are available on PhysioNet.

Definition

Algorithm Given: a time series x1,x2,...,xN. Compute its average value ⟨x⟩=1N∑t=1Nxt. Sum it into a process Xt=∑i=1t(xi−⟨x⟩). This is the cumulative sum, or profile, of the original time series. For example, the profile of an i.i.d. white noise is a standard random walk. Select a set T={n1,...,nk} of integers, such that n1<n2<⋯<nk, the smallest n1≈4, the largest nk≈N/4<ref></ref>, and the sequence is roughly distributed evenly in log-scale: log⁡(n2)−log⁡(n1)≈log⁡(n3)−log⁡(n2)≈⋯. In other words, it is approximately a geometric progression. For each n∈T, divide the sequence Xt into consecutive segments of length n. Within each segment, compute the least squares straight-line fit (the local trend). Let Y1,n,Y2,n,...,YN,n be the resulting piecewise-linear fit. Compute the root-mean-square deviation from the local trend (local fluctuation):F(n,i)=1n∑t=in+1in+n(Xt−Yt,n)2.And their root-mean-square is the total fluctuation:

F(n)=1N/n∑i=1N/nF(n,i)2. (If N is not divisible by n, then one can either discard the remainder of the sequence, or repeat the procedure on the reversed sequence, then take their root-mean-square.) Make the log-log plot log⁡n−log⁡F(n).

Interpretation A straight line of slope α on the log-log plot indicates a statistical self-affinity of form F(n)∝nα. Since F(n) monotonically increases with n, we always have α>0. The scaling exponent α is a generalization of the Hurst exponent, with the precise value giving information about the series self-correlations:

α<1/2: anti-correlated α≃1/2: uncorrelated, white noise α>1/2: correlated α≃1: 1/f-noise, pink noise α>1: non-stationary, unbounded α≃3/2: Brownian noise Because the expected displacement in an uncorrelated random walk of length N grows like N, an exponent of 12 would correspond to uncorrelated white noise. When the exponent is between 0 and 1, the result is fractional Gaussian noise.

Pitfalls in interpretation Though the DFA algorithm always produces a positive number α for any time series, it does not necessarily imply that the time series is self-similar. Self-similarity requires the log-log graph to be sufficiently linear over a wide range of n. Furthermore, a combination of techniques including maximum likelihood estimation (MLE), rather than least-squares has been shown to better approximate the scaling, or power-law, exponent. Also, there are many scaling exponent-like quantities that can be measured for a self-similar time series, including the divider dimension and Hurst exponent. Therefore, the DFA scaling exponent α is not a fractal dimension, and does not have certain desirable properties that the Hausdorff dimension has, though in certain special cases it is related to the box-counting dimension for the graph of a time series.

Generalizations

Generalization to polynomial trends (higher order DFA) The standard DFA algorithm given above removes a linear trend in each segment. If we remove a degree-n polynomial trend in each segment, it is called DFAn, or higher order DFA. Since Xt is a cumulative sum of xt−⟨x⟩, a linear trend in Xt is a constant trend in xt−⟨x⟩, which is a constant trend in xt (visible as short sections of "flat plateaus"). In this regard, DFA1 removes the mean from segments of the time series xt before quantifying the fluctuation. Similarly, a degree n trend in Xt is a degree (n-1) trend in xt. For example, DFA1 removes linear trends from segments of the time series xt before quantifying the fluctuation, DFA1 removes parabolic trends from xt, and so on. The Hurst R/S analysis removes constant trends in the original sequence and thus, in its detrending it is equivalent to DFA1.

Generalization to different moments (multifractal DFA) DFA can be generalized by computing Fq(n)=(1N/n∑i=1N/nF(n,i)q)1/q then making the log-log plot of log⁡n−log⁡Fq(n), If there is a strong linearity in the plot of log⁡n−log⁡Fq(n), then that slope is α(q). DFA is the special case where q=2. Multifractal systems scale as a function Fq(n)∝nα(q). Essentially, the scaling exponents need not be independent of the scale of the system. In particular, DFA measures the scaling-behavior of the second moment-fluctuations. Kantelhardt et al. intended this scaling exponent as a generalization of the classical Hurst exponent. The classical Hurst exponent corresponds to H=α(2) for stationary cases, and H=α(2)−1 for nonstationary cases.

Applications The DFA method has been applied to many systems, e.g. DNA sequences; heartbeat dynamics in sleep and wake, sleep stages, rest and exercise, and across circadian phases; locomotor gate and wrist dynamics, neuronal oscillations, speech pathology detection, and animal behavior pattern analysis.

Relations to other methods, for specific types of signal

For signals with power-law-decaying autocorrelation In the case of power-law decaying auto-correlations, the correlation function decays with an exponent γ: C(L)∼L−γ . In addition the power spectrum decays as P(f)∼f−β . The three exponents are related by:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Detrended fluctuation analysis

Start with the simplest possible case. Write down what Detrended fluctuation analysis claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Detrended fluctuation analysis before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Detrended fluctuation analysis ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Detrended fluctuation analysis

In research
Detrended fluctuation analysis appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Detrended fluctuation analysis in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Detrended fluctuation analysis is common in secondary-school and first-year university syllabi. It links to neighbouring topics Autocorrelation, Fractals, so understanding it makes those chapters shorter.
In everyday life
Look for Detrended fluctuation analysis outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Detrended fluctuation analysis” →

How to study Detrended fluctuation analysis in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Detrended fluctuation analysis means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Detrended fluctuation analysis out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Detrended fluctuation analysis in simple terms?

In stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analysing time series that appear to be long-memory processes (diverging correlation time, e.g. power-law deca…

Why does Detrended fluctuation analysis matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Detrended fluctuation analysis?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Detrended fluctuation analysis.

Tags

  • Autocorrelation
  • Fractals

Keep exploring