# Shannon Entropy

This online calculator computes Shannon entropy for a given event probability table and for a given message.

This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/2476/. Also, please do not modify any references to the original work (if any) contained in this content.

In information theory, entropy is a measure of the uncertainty in a random variable. In this context, the term usually refers to the Shannon entropy, which quantifies the expected value of the message's information.

Claude E. Shannon introduced the formula for entropy in his 1948 paper "A Mathematical Theory of Communication."

Minus is used because for values less than 1, and logarithm is negative. However, since

,

formula can be expressed as

Expression

is also called an uncertainty or surprise, the lower the probability , i.e. → 0, the higher the uncertainty or the potential surprise, i.e. → ∞, for the outcome .

In this case, the formula expresses the mathematical expectation of uncertainty, which is why information entropy and information uncertainty can be used interchangeably.

This calculator computes Shannon entropy for given probabilities of events

This calculator computes Shannon entropy for symbol frequencies of a given message.

#### Similar calculators

**

**PLANETCALC, Shannon Entropy

## Comments