CE {philentropy} | R Documentation |
Shannon's Conditional-Entropy
Description
Compute Shannon's Conditional-Entropy based on the chain rule based on a given joint-probability vector
and
probability vector
.
Usage
CE(xy, y, unit = "log2")
Arguments
xy |
a numeric joint-probability vector |
y |
a numeric probability vector |
unit |
a character string specifying the logarithm unit that shall be used to compute distances that depend on log computations. |
Details
This function might be useful to fastly compute Shannon's Conditional-Entropy for any given joint-probability vector and probability vector.
Value
Shannon's Conditional-Entropy in bit.
Note
Note that the probability vector P(Y) must be the probability
distribution of random variable Y ( P(Y) for which H(Y) is computed ) and
furthermore used for the chain rule computation of .
Author(s)
Hajk-Georg Drost
References
Shannon, Claude E. 1948. "A Mathematical Theory of Communication". Bell System Technical Journal 27 (3): 379-423.
See Also
Examples
CE(1:10/sum(1:10),1:10/sum(1:10))