-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency between nk.entropy_multiscale
and nk_entropy_sample
within a loop of coarse-graining procedures
#1034
Comments
I'm not sure from the top of my head what's the difference, you can inspect the code here: https://github.com/neuropsychology/NeuroKit/blob/master/neurokit2/complexity/entropy_multiscale.py I'd be happy to hear if you find the difference! |
@DominiqueMakowski Sorry for responding late, just getting back to this issue today after working on some other stuffs in the past month. I figured out why, and it's because the When I substitute the tolerance with the global tolerance within every coarse-graining loop, the results are then equal. It's one of the issues raised in Kosciessa et al., (2020), whereas the authors argued that using the global tolerance would introduce a bias. According to them, over 90% of existing studies were using a global tolerance and they investigated comprehensively on that. From my previous plot, the differences are pretty obvious and significant though. Kosciessa, J. Q., Kloosterman, N. A., & Garrett, D. D. (2020). Standard multiscale entropy reflects neural dynamics at mismatched temporal scales: What’s signal irregularity got to do with it? PLOS Computational Biology, 16(5), e1007885. https://doi.org/10.1371/journal.pcbi.1007885 |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hi, thanks a lot for developing the package, I am just exploring the packages and see how it can be used to analyze some EEG signals.
I tried to compare the
nk.entropy_multiscale
andnk_entropy_sample
within a loop of coarse-graining procedures to confirm my understanding of the computation. My codes look like the following:As you can see, it shows striking difference after certain scale. For more information, the signal is a 245-second long recording with sampling rate of 512 Hz.
At first I thought it was because of the mismatch between the default dimension parameter between the two functions, but it remained like this even after I set both dimension to be 3. Please let me know if I am misunderstanding sth, any help is appreciated.
The text was updated successfully, but these errors were encountered: