(Information) Entropy of a distribution
entropy(object, base = 2)
Distribution.
base of the entropy logarithm, default = 2 (Shannon entropy)
Entropy with given base as a numeric.
$entropy(base = 2)
The entropy of a (discrete) distribution is defined by
If an analytic expression isn't available, returns error. To impute a numerical expression, use the
CoreStatistics
decorator.