WOLFRAM

Entropy[list]

gives the base information entropy of the values in list.

Entropy[k,list]

gives the base k information entropy.

Details and Options

  • Entropy[string] computes the information entropy of the characters in string.
  • Entropy can handle symbolic data.
  • With the option setting SameTest->f, Entropy[list,] applies f to pairs of elements in list to determine whether they should be considered equivalent.
  • The default setting for SameTest is SameQ.

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

Entropy of a list of data:

Out[1]=1

Entropy of a symbolic list:

Out[1]=1

Entropy of a string:

Out[1]=1
Out[2]=2

Entropy of a random list of zeros and ones:

Out[1]=1
Out[2]=2

Scope  (1)Survey of the scope of standard use cases

Calculate the entropy of an EventSeries:

Out[3]=3
Out[4]=4

Applications  (1)Sample problems that can be solved with this function

Calculate the entropy for a path of a TelegraphProcess:

Out[7]=7
Out[8]=8
Out[9]=9

Neat Examples  (1)Surprising or curious use cases

Entropy of a text:

Out[2]=2
Out[3]=3
Wolfram Research (2008), Entropy, Wolfram Language function, https://reference.wolfram.com/language/ref/Entropy.html.
Wolfram Research (2008), Entropy, Wolfram Language function, https://reference.wolfram.com/language/ref/Entropy.html.

Text

Wolfram Research (2008), Entropy, Wolfram Language function, https://reference.wolfram.com/language/ref/Entropy.html.

Wolfram Research (2008), Entropy, Wolfram Language function, https://reference.wolfram.com/language/ref/Entropy.html.

CMS

Wolfram Language. 2008. "Entropy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Entropy.html.

Wolfram Language. 2008. "Entropy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Entropy.html.

APA

Wolfram Language. (2008). Entropy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Entropy.html

Wolfram Language. (2008). Entropy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Entropy.html

BibTeX

@misc{reference.wolfram_2025_entropy, author="Wolfram Research", title="{Entropy}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Entropy.html}", note=[Accessed: 04-June-2025 ]}

@misc{reference.wolfram_2025_entropy, author="Wolfram Research", title="{Entropy}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Entropy.html}", note=[Accessed: 04-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_entropy, organization={Wolfram Research}, title={Entropy}, year={2008}, url={https://reference.wolfram.com/language/ref/Entropy.html}, note=[Accessed: 04-June-2025 ]}

@online{reference.wolfram_2025_entropy, organization={Wolfram Research}, title={Entropy}, year={2008}, url={https://reference.wolfram.com/language/ref/Entropy.html}, note=[Accessed: 04-June-2025 ]}