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

Entropy

Entropy[list]
gives the base information entropy of the values in list.
Entropy
gives the base k information entropy.
  • Entropy[string] computes the information entropy of the characters in string.
  • With the option setting SameTest->f, Entropy 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 list of data:
In[1]:=
Click for copyable input
Out[1]=
 
Entropy of a symbolic list:
In[1]:=
Click for copyable input
Out[1]=
 
Entropy of a string:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Entropy of a random list of zeros and ones:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Entropy of a text:
New in 7