Recurrence plot: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Disambiguation needed}}
m incorrect comma (via WP:JWB)
 
(20 intermediate revisions by 7 users not shown)
Line 1:
{{Short description|Type of plot in descriptive statistics and chaos theory}}
In descriptive [[statistics]] and [[chaos theory]], a '''recurrence plot''' ('''RP''') is a plot showing, for each moment <math>i</math> in time, the times at which the state of a [[dynamical system]] returns to the previous state at <math>i</math>,
In descriptive [[statistics]] and [[chaos theory]], a '''recurrence plot''' ('''RP''') is a plot showing, for each moment <math>j</math> in time, the times at which the state of a [[dynamical system]] returns to the previous state at <math>i</math>,
i.e., when the [[phase space]] trajectory visits roughly the same area in the phase space as at time <math>j</math>. In other words, it is a plot of
 
Line 8 ⟶ 9:
==Background==
 
Natural processes can have a distinct recurrent behaviour, e.g. periodicities (as [[Seasonality|seasonal]] or [[Milankovich cycle]]s), but also irregular cyclicities (as [[El Niño]] Southern Oscillation, heart beat intervals). Moreover, the recurrence of states, in the meaning that states are again arbitrarily close after some time of [[divergence]], is a fundamental property of [[deterministic]] [[dynamical systems]] and is typical for [[nonlinear]]{{disambiguation needed|date=April 2024}} or [[chaotic system]]s (cf. [[Poincaré recurrence theorem]]). The recurrence of states in nature has been known for a long time and has also been discussed in early work (e.g. [[Henri Poincaré]] 1890).
 
==Detailed description==
 
One way to visualize the recurring nature of states by their trajectory through a [[phase space]] is the recurrence plot, introduced by Eckmann et al. (1987).<ref>{{cite Often, the phase space does not have a low enough dimension (two or three) to be pictured, since higher-dimensional phase spaces can only be visualized by projection into the two or three-dimensional sub-spaces. However, making a recurrence plot enables us to investigate certain aspects of the ''m''-dimensional phase space trajectory through a two-dimensional representation.journal
| author=J. P. Eckmann, S. O. Kamphorst, [[David Ruelle|D. Ruelle]]
| title=Recurrence Plots of Dynamical Systems
| journal=Europhysics Letters
| volume=5
| issue=9
| pages=973–977
| year=1987
| doi=10.1209/0295-5075/4/9/004
| bibcode=1987EL......4..973E
| s2cid=250847435
}}</ref> Often, the phase space does not have a low enough dimension (two or three) to be pictured, since higher-dimensional phase spaces can only be visualized by projection into the two or three-dimensional sub-spaces. One frequently used tool to study the behaviour of such phase space trajectories is then the [[Poincaré map]]. Another tool is the recurrence plot, which enables us to investigate many aspects of the ''m''-dimensional phase space trajectory through a two-dimensional representation.
 
At a '''recurrence''' the trajectory returns to a ___location (state) in phase space it has visited before up to a small error <math>\varepsilon</math> . The recurrence plot represents the collection of pairs of times of such recurrences, i.e., the set of <math>(i,j)</math> with <math>\vec{x}(i) \approx \vec{x}(j)</math>, with <math>i</math> and <math>j</math> discrete points of time and <math>\vec{x}(i)</math> the state of the system at time <math>i</math> (___location of the trajectory at time <math>i</math>).
Mathematically, this can beis expressed by the binary recurrence matrix
 
:<math>R(i,j) = \begin{cases} 1 &\text{if} \quad \| \vec{x}(i) - \vec{x}(j)\| \le \varepsilon \\ 0 & \text{otherwise}, \end{cases}</math>
 
where <math>\| \cdot \|</math> is a norm and <math>\varepsilon</math> the recurrence threshold. TheAn recurrencealternative, plotmore visualisesformal <math>\mathbf{R}</math>expression withis colouredusing (mostlythe black)[[Heaviside dotstep at coordinatesfunction]] <math>R(i,j)</math>=\Theta(\varepsilon if- <math>R(D_{i,j})=1</math>, with time at the <math>x</math>- and <math>y</math>-axes.
with <math>D_{i,j} = \| \vec{x}(i)- \vec{x}(j) \|</math> the norm of distance vector between <math>\vec{x}(i)</math> and <math>\vec{x}(j)</math>.
Alternative recurrence definitions consider different distances <math>D_{i,j}</math>, e.g., [[angular distance]], [[fuzzy set|fuzzy distance]], or [[Levenshtein distance|edit distance]].<ref name="marwan2023">{{cite journal
| author1=N. Marwan | author2=K. H. Kraemer
| title=Trends in recurrence analysis of dynamical systems
| journal=European Physical Journal ST
| volume=232
| year=2023
| issue=1
| pages=5–27
| doi=10.1140/epjs/s11734-022-00739-8
|bibcode = 2023EPJST.232....5M
| s2cid=255630484
| doi-access=free
| arxiv=2409.04110
}}</ref>
 
The recurrence plot visualises <math>\mathbf{R}</math> with coloured (mostly black) dot at coordinates <math>(i,j)</math> if <math>R(i,j)=1</math>, with time at the <math>x</math>- and <math>y</math>-axes.
 
If only a univariate [[time series]] <math>u(t)</math> is available, the phase space can be reconstructed, e.g., by using a time delay embedding (see [[Takens' theorem]]):
 
:<math>\vec{x}(i) = (u(i), u(i+\tau), \ldots, u(i+\tau(m-1)),</math>
 
where <math>u(i)</math> is the time series (with <math>t = i \Delta t</math> and <math>\Delta t</math> the sampling time), <math>m</math> the embedding dimension and <math>\tau</math> the time delay. PhaseHowever, phase space reconstruction is not essential part of the recurrence plot (although often stated in literature), because it is based on phase space trajectories which could be derived from the system's variables directly (e.g., from the three variables of the [[Lorenz system]]) or from multivariate data.
 
The visual appearance of a recurrence plot gives hints about the dynamics of the system. Caused by characteristic behaviour of the phase space trajectory, a recurrence plot contains typical small-scale structures, as single dots, diagonal lines and vertical/horizontal lines (or a mixture of the latter, which combines to extended clusters). The large-scale structure, also called ''texture'', can be visually characterised by ''homogenous'', ''periodic'', ''drift'' or ''disrupted''. For example, the plot can show if the trajectory is strictly periodic with period <math>T</math>, then all such pairs of times will be separated by a multiple of <math>T</math> and visible as diagonal lines.
Line 31 ⟶ 60:
[[Image:Rp examples740.gif|thumb|center|740px|Typical examples of recurrence plots (top row: [[time series]] (plotted over time); bottom row: corresponding recurrence plots). From left to right: uncorrelated stochastic data ([[white noise]]), [[harmonic oscillation]] with two frequencies, chaotic data ([[logistic map]]) with linear trend, and data from an [[autoregressive process|auto-regressive process]].]]
 
The small-scale structures in recurrence plots contain information about certain characteristics of the dynamics of the underlying system. For example, the length of the diagonal lines visible in the recurrence plot are related to the divergence of phase space trajectories, thus, can represent information about the chaoticity.<ref name="marwan2007">{{cite journal
The small-scale structures in RPs are used by the [[recurrence quantification analysis]] (Zbilut & Webber 1992; Marwan et al. 2002). This quantification allows us to describe the RPs in a quantitative way and to study transitions or nonlinear parameters of the system. In contrast to the heuristic approach of the recurrence quantification analysis, which depends on the choice of the embedding parameters, some [[dynamical invariant]]s as [[correlation dimension]], [[K2 entropy]] or [[mutual information]], which are independent on the embedding, can also be derived from recurrence plots. The base for these dynamical invariants are the recurrence rate and the distribution of the lengths of the diagonal lines.
|author1=N. Marwan |author2=M. C. Romano |author3=M. Thiel |author4=J. Kurths | title=Recurrence Plots for the Analysis of Complex Systems
| journal=Physics Reports
| volume=438
| issue=5–6
| year=2007
| doi=10.1016/j.physrep.2006.11.001
| pages=237
|bibcode = 2007PhR...438..237M | arxiv=2501.13933}}</ref> Therefore, the [[recurrence quantification analysis]] quantifies the distribution of these small-scale structures.<ref>{{cite journal
| author1=J. P. Zbilut | author2=C. L. Webber
| title=Embeddings and delays as derived from quantification of recurrence plots
| journal=Physics Letters A
| volume=171
| issue=3–4
| year=1992
| pages=199–203
| doi=10.1016/0375-9601(92)90426-M
| bibcode = 1992PhLA..171..199Z
| s2cid=122890777
}}</ref><ref>{{cite journal
| author1=C. L. Webber | author2=J. P. Zbilut
| title=Dynamical assessment of physiological systems and states using recurrence plot strategies
| journal=Journal of Applied Physiology
| volume=76
| issue=2
| year=1994
| pages=965–973
| doi=10.1152/jappl.1994.76.2.965
| pmid=8175612
| s2cid=23854540
}}</ref><ref name="marwan2008">{{cite journal
| author=N. Marwan
| title=A historical review of recurrence plots
| journal=European Physical Journal ST
| volume=164
| issue=1
| year=2008
| pages=3–12
| url= https://zenodo.org/record/996840
| doi=10.1140/epjst/e2008-00829-1
|bibcode = 2008EPJST.164....3M | arxiv=1709.09971
| s2cid=119494395
}}</ref> This quantification can be used to describe the recurrence plots in a quantitative way. Applications are classification, predictions, nonlinear parameter estimation, and transition analysis. In contrast to the heuristic approach of the recurrence quantification analysis, which depends on the choice of the embedding parameters, some [[dynamical invariant]]s as [[correlation dimension]], [[K2 entropy]] or [[mutual information]], which are independent on the embedding, can also be derived from recurrence plots. The base for these dynamical invariants are the recurrence rate and the distribution of the lengths of the diagonal lines.<ref name="marwan2007"/> More recent applications use recurrence plots as a tool for time series imaging in machine learning approaches and studying spatio-temporal recurrences.<ref name="marwan2023"/>
 
Close returns plots are similar to recurrence plots. The difference is that the relative time between recurrences is used for the <math>y</math>-axis (instead of absolute time).<ref name="marwan2008"/>
 
The main advantage of recurrence plots is that they provide useful information even for short and non-stationary data, where other methods fail.
Line 41 ⟶ 112:
Multivariate extensions of recurrence plots were developed as '''cross recurrence plots''' and '''joint recurrence plots'''.
 
Cross recurrence plots consider the phase space trajectories of two different systems in the same phase space:<ref>{{cite (Marwan & Kurths 2002):journal
|author1=N. Marwan |author2=J. Kurths | title=Nonlinear analysis of bivariate data with cross recurrence plots
| journal=Physics Letters A
| volume=302
| issue=5–6
| year=2002
| doi=10.1016/S0375-9601(02)01170-2
| pages=299–307
|bibcode = 2002PhLA..302..299M
| s2cid=8020903 | arxiv=physics/0201061
}}</ref>
 
:<math>\mathbf{CR}(i,j) = \Theta(\varepsilon - \| \vec{x}(i) - \vec{y}(j)\|), \quad \vec{x}(i),\, \vec{y}(i) \in \mathbb{R}^m, \quad i=1, \dots, N_x, \ j=1, \dots, N_y.</math>
 
The dimension of both systems must be the same, but the number of considered states (i.e. data length) can be different. Cross recurrence plots compare the occurrences of ''similar states'' of two systems. They can be used in order to analyse the similarity of the dynamical evolution between two different systems, to look for similar matching patterns in two systems, or to study the time-relationship of two similar systems, whose time-scale differ.<ref>{{cite (Marwan & Kurths 2005).journal
|author1=N. Marwan |author2=J. Kurths | title=Line structures in recurrence plots
| journal=Physics Letters A
| volume=336
| issue=4–5
| year=2005
| doi=10.1016/j.physleta.2004.12.056
| pages=349–357
|bibcode = 2005PhLA..336..349M
| s2cid=931165 | arxiv=nlin/0410002
}}</ref>
 
Joint recurrence plots are the [[Matrix product#Hadamard product|Hadamard product]] of the recurrence plots of the considered sub-systems (Romano et al. 2004), e.g. for two systems <mathref>\vec{x}</math> and <math>\vec{y}</math> the joint recurrence plotcite isjournal
|author1=M. C. Romano |author2=M. Thiel |author3=J. Kurths |author4=W. von Bloh
| title=Multivariate Recurrence Plots
| journal=Physics Letters A
| volume=330
| issue=3–4
| year=2004
| doi=10.1016/j.physleta.2004.07.066
| pages=214–223
|bibcode = 2004PhLA..330..214R
| s2cid=5746162 }}
</ref> e.g. for two systems <math>\vec{x}</math> and <math>\vec{y}</math> the joint recurrence plot is
 
:<math>\mathbf{JR}(i,j) = \Theta(\varepsilon_x - \| \vec{x}(i) - \vec{x}(j)\|) \cdot \Theta(\varepsilon_y - \| \vec{y}(i) - \vec{y}(j)\|), \quad \vec{x}(i) \in \mathbb{R}^m, \quad \vec{y}(i) \in \mathbb{R}^n,\quad i,j=1, \dots, N_{x,y}.</math>
Line 66 ⟶ 168:
 
==References==
{{reflist}}
* {{cite journal
| author=J. P. Eckmann, S. O. Kamphorst, [[David Ruelle|D. Ruelle]]
| title=Recurrence Plots of Dynamical Systems
| journal=Europhysics Letters
| volume=5
| issue=9
| pages=973–977
| year=1987
| doi=10.1209/0295-5075/4/9/004
|bibcode = 1987EL......4..973E | s2cid=250847435
}}
* {{cite journal
|author1=N. Marwan |author2=M. C. Romano |author3=M. Thiel |author4=J. Kurths | title=Recurrence Plots for the Analysis of Complex Systems
| journal=Physics Reports
| volume=438
| issue=5–6
| year=2007
| doi=10.1016/j.physrep.2006.11.001
| pages=237
|bibcode = 2007PhR...438..237M }}
* {{cite journal
| author=N. Marwan
| title=A historical review of recurrence plots
| journal=European Physical Journal ST
| volume=164
| issue=1
| year=2008
| pages=3–12
| url= https://zenodo.org/record/996840
| doi=10.1140/epjst/e2008-00829-1
|bibcode = 2008EPJST.164....3M | arxiv=1709.09971
| s2cid=119494395
}}
 
== External links==