Mutual Information In probability theory and information theory

Code for marginally and conditional mutual information in probability and information theory
2.8K Downloads
Updated 26 Jan 2010

View License

The definition of mutual information could resort to wiki:
http://en.wikipedia.org/wiki/Mutual_information

For marginal mutual information, we say it is :
I(A,B)=sum sum P(A,B) log[P(A,B)/P(A)P(B)]

For conditional mutual information, we say it is :
I(A,B|C)=sum sum P(A,B|C) log[P(A,B|C)/P(A|C)P(B|C)]

For mutual information matric, we say it is:
the matric saves all pairs of I(A,B)

Please refer to "ControlCentor.m", we have a simple example for you understanding. If there is any question, please let me know, i will help you as soon as possible.

PS: fast mex programming functions are provided for advance users here too

Cite As

Guangdi Li (2024). Mutual Information In probability theory and information theory (https://www.mathworks.com/matlabcentral/fileexchange/23274-mutual-information-in-probability-theory-and-information-theory), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Just for fun in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.0

Add mex programming functions , to improve the efficiency

1.2.0.0

I miss to add one file together, thus ..... Thanks for you help

1.1.0.0

one *.m is missed, I add it again. Thanks.

1.0.0.0