Last chance! 50% off unlimited learning
Sale ends in
Compute Shannon's Conditional-Entropy based on the chain rule
CE(xy, y, unit = "log2")
Shannon's Conditional-Entropy in bit.
a numeric joint-probability vector
a numeric probability vector
a character string specifying the logarithm unit that shall be used to compute distances that depend on log computations.
Hajk-Georg Drost
This function might be useful to fastly compute Shannon's Conditional-Entropy for any given joint-probability vector and probability vector.
Shannon, Claude E. 1948. "A Mathematical Theory of Communication". Bell System Technical Journal 27 (3): 379-423.
H
, JE
CE(1:10/sum(1:10),1:10/sum(1:10))
Run the code above in your browser using DataLab