DynamicsAndNeuralSystems / pyspi

Comparative analysis of pairwise interactions in multivariate time series.
https://time-series-features.gitbook.io/pyspi/
GNU General Public License v3.0
199 stars 26 forks source link

directionality of pli_multitaper_max_fs-1_fmin-0_fmax-0-5 #14

Closed anniegbryant closed 4 months ago

anniegbryant commented 2 years ago

Hi Oliver,

Just wondering about the directionality of the SPI "pli_multitaper_max_fs-1_fmin-0_fmax-0-5"? In the pyspi manuscript, it's listed as undirected. However, in my dataset, I found that observation_1 --> observation_2 has a different value from observation_2 --> observation_1. Can you please clarify whether this feature is undirected or directed?

Thank you :)

olivercliff commented 2 years ago

Hi Annie, this measure is derived from the spectral_connectivity toolbox and should be undirected.

Are you able to send the data you're using and I'll double check there's nothing wrong on this end before sending the issue over?

anniegbryant commented 2 years ago

example_dataset.zip

Sure, I've added an example dataset in which the values were different depending on direction here as a zipped .npy matrix.

olivercliff commented 2 years ago

OK I just had a look and you're definitely right -- the PLI statistics (and some related stats) are asymmetric. I'll open an issue on the original repository.