| Literature DB >> 35784185 |
Yi Zhang1,2,3, Guan Wang1, Ziwen Li4, Mingjun Xie1, Branko Celler5, Steven Su6, Peng Xu2,3, Dezhong Yao2,3.
Abstract
Causality inference has arrested much attention in academic studies. Currently, multiple methods such as Granger causality, Convergent Cross Mapping (CCM), and Noise-assisted Multivariate Empirical Mode Decomposition (NA-MEMD) are introduced to solve the problem. Motivated by the researchers who uploaded the open-source code for causality inference, we hereby present the Matlab code of NA-MEMD Causal Decomposition to help users implement the algorithm in multiple scenarios. The code is developed on Matlab2020 and is mainly divided into three subfunctions: na_memd, Plseries, and cd_na_memd. na_memd is called in the main function to generate the matrix of Intrinsic Mode Functions (IMFs) and Plseries can display the average frequency and phase difference of IMFs of the same order in a matrix which can be used for the selection of the main Intrinsic Causal Component (ICC) and ICCs set. cd_na_memd is called to perform causal redecomposition after removing the main ICC from the original time series and output the result of NA-MEMD Causal Decomposition. The performance of the code is evaluated from the perspective of executing time, robustness, and validity. With the data amount enlarging, the executing time increases linearly with it and the value of causal strength oscillates in an ideally small interval which represents the relatively high robustness of the code. The validity is verified based on the open-access predator-prey data (wolf-moose bivariate time series from Isle Royale National Park in Michigan, USA) and our result is aligned with that of Causal Decomposition.Entities:
Keywords: CCM; Causal Decomposition; Granger causality; NA-MEMD Causal Decomposition; bivariate time series; causality inference; empirical mode decomposition
Year: 2022 PMID: 35784185 PMCID: PMC9243260 DOI: 10.3389/fninf.2022.851645
Source DB: PubMed Journal: Front Neuroinform ISSN: 1662-5196 Impact factor: 3.739
Figure 1Basic workflow for NA-MEMD Causal Decomposition.
Figure 2The workflow of function na_memd.
Parameter configurations for function .
|
|
|
|
|---|---|---|
| Data type: | Two time series data on identical length. | |
| Data type: | With it increasing, the represented cause-effect relationship may be attenuated. | |
| Data type: | With it increasing, the represented cause-effect relationship may be attenuated. | |
| Data type: | With it increasing, the running time will be prolonged dramatically. |
Figure 3The workflow of function PLseries.
Parameter configurations for function .
|
|
|
|
|---|---|---|
| Data type: | Two time series data on identical length. | |
| Data type: | Null | |
|
| Data type: | Null |
|
| Data type: | The first two columns refer to |
Figure 4The workflow of function causal_decomposition.
Parameter configurations for function _.
|
|
|
|
|---|---|---|
| Data type: | The main ICC is the one with the minimal phase difference. | |
|
| Data type: | Null |
| Data type: | Null | |
| Data type: | With it increasing, the represented cause-effect relationship may be attenuated. | |
| Data type: | With it increasing, the represented cause-effect relationship may be attenuated. | |
| Data type: | With it increasing, the running time will be prolonged dramatically. | |
| Data type: | The first two columns represent the relative causal strengths. |
The relationship between noise_channel_num and executing time.
|
|
|
|
|
|
|
|
| |
|---|---|---|---|---|---|---|---|---|
| Executing time(s) | 24.50 | 25.68 | 26.86 | 28.01 | 31.73 | 33.58 | 34.80 | 37.64 |
The relationship between en_num and executing time.
|
|
|
|
|
|
|
|
| |
|---|---|---|---|---|---|---|---|---|
| Executing time(s) | 41.26 | 78.94 | 117.09 | 155.09 | 194.79 | 217.20 | 245.20 | 288.27 |
The relationship between data length and executing time.
|
|
|
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|---|
| Executing time(s) | 16.11 | 22.46 | 31.49 | 37.65 | 44.14 | 50.87 | 62.34 | 70.41 |
Result of robustness and validity test.
|
|
|
|
|
|
|---|---|---|---|---|
| 1 | 0.7168 | 0.2832 | 0.2237 | 0.0884 |
| 2 | 0.5374 | 0.4626 | 0.1927 | 0.1659 |
| 3 | 0.6804 | 0.3196 | 0.2003 | 0.0941 |
| 4 | 0.7594 | 0.2306 | 0.1810 | 0.0542 |
| 5 | 0.6364 | 0.3636 | 0.2048 | 0.1170 |
| 6 | 0.6042 | 0.3958 | 0.1971 | 0.1291 |
| 7 | 0.6398 | 0.3602 | 0.2038 | 0.1148 |
| 8 | 0.6585 | 0.3415 | 0.1974 | 0.1024 |
| 9 | 0.5943 | 0.4057 | 0.1923 | 0.1313 |
| 10 | 0.5473 | 0.4527 | 0.1979 | 0.1637 |