*This is an English version of my previous post (first translated by ChatGPT and checked manually).
Reconstruction of dynamics using time series data
1. Time series data
Time series data is data obtained by observing and measuring a variable in a system over time. For example, if you continue to measure your weight (a variable of interest) every day (in a system of interest), it becomes a proper time series data.
When visualizing time series data, it is common to plot time on the horizontal axis (-axis) and the variable on the vertical axis (-axis). For example, the following graph shows the Nile dataset (a time series of changes in the flow of the Nile River) provided in R. Time is taken on the horizontal axis and the variable is plotted on the vertical axis.
2. Delineating/Reconstructing the dynamics of a system from time series data
“Delineating/Reconstructing the dynamics of a system from time series data” is an important concept in Empirical Dynamic Modeling, a nonlinear time series analysis that will be explained in the next post. Therefore, we will explain this concept using the famous three-variable differential equation called the “Butterfly Attractor” (also known as the Lorenz Attractor) as an example (Lorenz 1963). The Butterfly Attractor refers to the dynamics that appear when the differential equations below have the following parameters: , , and .
In this equation, the time series data generated when , , and are shown in the figure below.
These three time series data alone represent the characteristics of the dynamics. However, is this the only way to represent this dynamics? It is possible to represent the same data in a completely different way. For example, if we plot , , and on the -axis, -axis, and -axis of a three-dimensional space and represent with color, it will look like the following (plotting and while representing with color).
This butterfly-shaped form (= Butterfly Attractor) contains the same information as the original three time series plots (except for time information). The information about which time and which location the points come from is not displayed here, but if we show the movement (temporal behaviour) of the points in this plot with an animation, we can represent the original information without leaving anything out.
Now, this time we drew one dynamics in a three-dimensional space based on three time series data, but we can also say that the three time series data were generated from one dynamics in a three-dimensional space. In other words, if we project the temporal movement of the points on the Butterfly Attractor onto the -axis, we get the time series data of , and if we project it onto the -axis and -axis, we get the time series data of and , respectively. Time series data can be seen as something obtained by projecting the “true dynamics” (assuming we can actually observe it) onto some axis. For example, a person’s weight can be seen as data obtained by projecting the “true dynamics” that involve complex interactions with various factors (such as food intake, physical activity, stress, etc.) onto one axis.
These explanations may be better understood by watching the following animation on YouTube:
Introduction to Empirical Dynamic Modeling
3. State space reconstruction using time-delay embedding
If we can accurately illustrate the dynamics of a system, it is extremely useful. For example, it may be possible to predict what is likely to happen in the near future by investigating to past behavior of the system, or to predict how much external force is needed to return the perturbed system to its original state.
However, if the system of interest is a natural system, it is not easy to accurately delineate its dynamics. This is because, in order to accurately delineate the dynamics, it is necessary to obtain time series data for all variables that are involved in the dynamics of the system, as in the example of the Butterfly Attractor. In the case of a natural system, we do not know how many variables are involved in the dynamics of the system. It could be two, ten, or even a hundred. Also, even if we knew how many variables need to be observed/measured, it could be technically impossible to measure all of them. Considering these factors, it seems almost impossible to measure all variables related to the dynamics of a system and accurately delineate the dynamics of the system of interest.
In such situations, there is a mathematical theorem that can help accurately delineate the state of the system (which we will call reconstruction). The Takens embedding theorem (Takens, 1981; https://en.wikipedia.org/wiki/Takens's_theorem) shows that the dynamics of a system can be reconstructed even from a single variable by taking a time-delay coordinate system.
Let’s take a look at what this means specifically.
First, let’s create a time-delay coordinate system based on . Here, let’s create and . Then, instead of the original , let’s plot in a three-dimensional space. As a result, the dynamics shown on the left of the figure appear. If we do the same for , the dynamics shown in the right of the figure appear.
Please compare the figure where , , and are plotted in a three dimentional space with the plot of the time-delayed time series. You will see that the shape reconstructed by the time-delayed time series plot is very similar to the original shape.
In other words, even if you can only monitor one single variable from a system of interest, it is possible to reconstruct the dynamics of the system using the time-delay embedding.
4. Why can we reconstruct the original dynamics from a single time series?
It may be surprising (especially for empirical researchers) that the dynamics of a system can be reconstructed by taking time delays and plotting them. Why is this possible? Understanding the proof of the Takens’ theorem requires knowledge of differential geometry, which is challenging for empirical ecologists. Here, instead of understanding the theorem, let’s try to interpret the theorem using the procedure introduced by Munch et al. (2019).
First, let’s consider a measurable variable and an unmeasurable variable , whose temporal changes are expressed by the following equations:
That is, is generated by transforming and with a function , and is generated by transforming and with a function . In this situation, Takens’ embedding theorem states that the dynamics can be reconstructed using only .
Now, since , we have . Substituting this into the equation for , we get:
At this point, if we’re lucky, we might be able to express in a different way using . That is, we can go back in time and write , which is an equation involving , , and , so we might be able to solve for . Let’s assume that we can express as . Then, can be expressed as follows:
Now, is expressed in terms of time delays of and , and disappears.
If we cannot solve , we have to try to express in terms of , , and by setting and . By repeating this process, we can express what was originally represented by and in terms of time delays of . For more details, please refer to pages 3-4 of Munch et al. (2019).
In the next post, we will explain how to analyze time series data using the reconstructed dynamics, along with how to use the R package rEDM
.
References
- Lorenz, E. N. (1963) Deterministic Nonperiodic Flow, Journal of Atmospheric Sciences, Vol.20, pp.130-141
- Takens, F. (1981) Detecting strange attractors in turbulence. In D. Rand & L.-S. Young (Eds.), Lecture Notes in Mathematics (Vol. 898, pp. 366–381).
- Munch, S. B., Brias, A., Sugihara, G., Rogers, T. L. (2019) Frequently asked questions about nonlinear dynamics and empirical dynamic modelling. ICES Journal of Marine Science, doi:10.1093/icesjms/fsz209
Written with StackEdit.
0 件のコメント:
コメントを投稿