This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


gives the base ⅇ information entropy of the values in list.
Entropy[k, list]
gives the base k information entropy.
  • Entropy[string] computes the information entropy of the characters in string.
  • With the option setting SameTest->f, Entropy[list, ...] applies f to pairs of elements in list to determine whether they should be considered equivalent.
Entropy of a list of data:
Entropy of a symbolic list:
Entropy of a string:
Entropy of a random list of zeros and ones:
Entropy of a text:
New in 7