Mutual Information

Calculates the mutual information between two discrete variables (or a group and a single variable).

You are now following this Submission

MutualInformation: returns mutual information (in bits) of discrete variables 'X' and 'Y'

I = MutualInformation(X,Y);

I = calculated mutual information (in bits)
X = variable(s) to be analyzed (column vector)
Y = variable to be analyzed (column vector)

Note 1: Multiple variables may be handled jointly as columns in
matrix 'X'.
Note 2: Requires the 'Entropy' and 'JointEntropy' functions.

Cite As

Will Dwinnell (2026). Mutual Information (https://in.mathworks.com/matlabcentral/fileexchange/28694-mutual-information), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

I have updated the description to clarify the use of this routine.

1.0.0.0