Linear algebra error for conn_te() - highly correlated channels? #61
-
I'm using conn_te() to calculate the transfer entropy between pairs of intracranial EEG channels. However, for certain pairs, the function will throw a linear algebra error, "Matrix is not positive definite". I also get the same error with conn_covgc(). I suspect that highly correlated EEG channels can produce this error due how transfer entropy is computed in FRITES (matrix inversion?). This seems like a major issue to me, because highly correlated channels may be reflecting physiological information transfer -- such channel pairs would throw an error when using this implementation of transfer entropy. Is there something missing in my interpretation? Any thoughts are appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @ErnestJohnston, Yes, indeed, that's one possibility. One idea to test this hypothesis could be to add some random noise to your data to "decorrelate" the channels. If the
|
Beta Was this translation helpful? Give feedback.
-
Highly correlated time-series are very unlikely to have information transfer between them yes. If possible, I would suggest to drop them. Best, |
Beta Was this translation helpful? Give feedback.
Highly correlated time-series are very unlikely to have information transfer between them yes. If possible, I would suggest to drop them.
Best,