Auto Mutual Information
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)
)
Run an example notebook in Colab:
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
Release files for automutualinformation 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| automutualinformation-0.1.5.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| automutualinformation-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / automutualinformation-0.1.5.tar.gz
| Download URL | automutualinformation-0.1.5.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
477d1d155786db2ddf20fa5198b7905f3b1de2deb046fb1f0c6776f4d6290073
|
|
BLAKE2b-256 checksum How to use checksums |
a8bce6139310156ef421e74bbd2bab9ce78d53f2de57a9d6be790fade3a585d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / automutualinformation-0.1.5-py3-none-any.whl
| Download URL | automutualinformation-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
107d0c5a3b3e37f859518479f8d02a9c2ef39fc74c70bad1acad8e0bfc03b7de
|
|
BLAKE2b-256 checksum How to use checksums |
72fe50096fad687f7b73346896b4b3f29060548f7773af13c155e5936a7ad302
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|