Auto Mutual Information (Sequential Mutual Information) for temporal data.
Project description
autoMI
Auto Mutual Information (Sequential Mutual Information) for temporal data.
Auto mutual information can be treated as the equivalent of autocorrelation for symbolic data.
For more info references see:
- Mutual information functions versus correlation functions. W Li. (1990). Journal of Statistical Physics
- Critical Behavior in Physics and Probabilistic Formal Languages. HW Lin, M Tegmark (2017) Entropy
- Parallels in the sequential organization of birdsong and human speech. T Sainburg, B Thielman, M Thielk, TQ Gentner, (2019) Nature Communications
- Long-range sequential dependencies precede complex syntactic production in language acquisition. T Sainburg, A Mai, TQ Gentner. Proceedings of the Royal Society B
Installation
The python package is installable via pip.
pip install automi
Quick Start
from auto_mi import sequential_mutual_information as smi
(MI, MI_var), (shuff_MI, shuff_MI_var) = smi(
[signal], distances=range(1,100)
)
Documentation
Documentation and usage information is currently available in jupyter notebooks in the notebooks folder.
Citation
If you use this package, please cite the following paper:
@article {NBC2020,
author = {Sainburg, Tim and Mai, Anna and Gentner, Timothy Q.},
title = {Long-range sequential dependencies precede complex syntactic production in language acquisition},
journal = {Proceedings of the Royal Society B},
doi = {https://dx.doi.org/10.1098/rspb.2021.2657},
year = 2022,
}
TODO
- make pypi package
- create tests/travisci
- add additional parameters example
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file automutualinformation-0.1.2.tar.gz
.
File metadata
- Download URL: automutualinformation-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba2aa84ebec9e6a0decec7e41c3da4b35ce91cc2fd8382311f6300f38cbca44 |
|
MD5 | be7103847264579a678b43bc8217b21f |
|
BLAKE2b-256 | 2a979e369e24e8305c0f0a0b5dfd2c9cc3a9b6e3c054253a2e08bb0e88d3834d |