Mutual Information
Estimating differential entropy and mutual information.
Non-parametric computation of differential entropy and mutual-information. Originally adapted by G Varoquaux in a gist for code created by R Brette, itself from several papers (see in the code). These computations rely on nearest-neighbor statistics.
- Kozachenko, L. F. & Leonenko, N. N. 1987 Sample estimate of entropy of a random vector. Probl. Inf. Transm. 23, 95-101
- Evans, D. 2008 A computationally efficient estimator for mutual information, Proc. R. Soc. A 464 (2093), 1203-1215
- Kraskov A, Stogbauer H, Grassberger P. (2004). Estimating mutual information. Phys Rev E 69(6 Pt 2):066138
- F. Perez-Cruz, (2008). Estimation of Information Theoretic Measures for Continuous Random Variables. Advances in Neural Information Processing Systems 21 (NIPS). Vancouver (Canada), December.
See Makefile for example ops.
See https://pypi.org/project/mutual-info
Do not pin packages for now. Let's surf latest and find out when things break.
Install
python setup.py install
or
pip install pypi
Develop install
python setup.py develop
Tests
make test
TODO
- incorporate fixes from @thismartian (see thismartian branch)
- test shift invariance of entropy (not multiplicative)
- test triangle inequality of mutual information
- test symmetry of mutual information
- test scale and shift invariance of mutual information (any smooth invertible transformation)
Metadata
Release files for mutual-info 0.31
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mutual_info-0.31.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mutual_info-0.31-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / mutual_info-0.31.tar.gz
| Download URL | mutual_info-0.31.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da2a472770b2e000f294ee6aceb9f7d3065914764a6f715ba9d4215109affdf2
|
|
BLAKE2b-256 checksum How to use checksums |
5c22f9f2febe56181c155a241862d15ab8a751866d6b059f02eee9e316cea9fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3
|
Release files / mutual_info-0.31-py3-none-any.whl
| Download URL | mutual_info-0.31-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1587960404ee40da37ff9342d5a3a6a2ed4425def82ba1c7ce4e7843f5d1f0b9
|
|
BLAKE2b-256 checksum How to use checksums |
5340dc6efa9f70c21ad67b12de25aad168f3eb69c0e688bc77c7ab7ebb3b2ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3
|