Auto Mutual Information (Sequential Mutual Information) for temporal data.
Project description
AutoMutualInformation
Auto Mutual Information (Sequential Mutual Information) for temporal data.
Auto mutual information can be treated as the equivalent of autocorrelation for symbolic data.
Installation
The python package is installable via pip.
pip install automutualinformation
Quick Start
from automutualinformation import sequential_mutual_information as smi
(MI, MI_var), (shuff_MI, shuff_MI_var) = smi(
[signal], distances=np.arange(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
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
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
Built Distribution
File details
Details for the file automutualinformation-0.1.3.tar.gz
.
File metadata
- Download URL: automutualinformation-0.1.3.tar.gz
- Upload date:
- Size: 2.9 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.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1260ad6a327a454ff8ac0c078e6a7eb82eaa223f1d180cb4b2fe892b7282bc86 |
|
MD5 | 4c743274384af7f5e9e11576c17628d7 |
|
BLAKE2b-256 | 4d5534b4d07dbab86fd0b29c32229366827a63c8c10f78b1e445596f658dff09 |
File details
Details for the file automutualinformation-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: automutualinformation-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- 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.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c031216dbd1dfc6d46e38b8644ade4f6ae7cc0b3fce68ea4cbbbeafcc1b4c2e |
|
MD5 | bea19959673f5bb26b62e49ba51766ad |
|
BLAKE2b-256 | db417d41c2ffed72c84e0d5293abe255afa81893b9bbf78f24fbbaa99538be9b |