Conditional Entropy
ConditionalEntropy: Calculates conditional entropy (in bits) of Y, given X
H = ConditionalEntropy(Y,X)
H = calculated entropy of Y, given X (in bits)
Y = dependent variable (column vector)
X = independent variable(s)
Note 1: Each distinct value is considered a unique symbol.
Note 2: requires 'Entropy' and 'MutualInformation' functions
Example: 'X' (1 bit of entropy), 'Y' (2 bits of entropy)
Given 'X', 'Y's conditional entropy is 1 bit.
Note: Estimated entropy values are slightly less than true, due to finite sample size.
Y = ceil(4 * rand(1e3,1)); X = double(Y <= 2);
ConditionalEntropy(Y,X)
Zitieren als
Will Dwinnell (2024). Conditional Entropy (https://www.mathworks.com/matlabcentral/fileexchange/28693-conditional-entropy), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |