How can I compute the entropy of a probability distribution in Mathematica?
For example,
Entropy[NormalDistribution[m, s]]
does not work, because Entropy
does not compute the entropy of a probability distribution.
On the other hand,
Expectation[Log@PDF[NormalDistribution[m, s], x], Distributed[x, NormalDistribution[m, s]]]
takes forever to run, and I don't think it will give an answer. So it would seem Mathematica does not have symbolic rules in place to compute entropies of probability distributions.
Is there a better way to get the formula of the entropy of probability distributions in Mathematica?
forever
which appears to be around160 secs
. :) $\endgroup$