Entropy (information theory)

H(X) = −∑x∈X p(x) log(p(x))

Image: Balkiss.hamad, CC BY-SA 4.0, via Wikimedia Commons

Entropy (information theory)

H(X) = −∑x∈X p(x) log(p(x))

Information entropy quantifies the average uncertainty or information content associated with a random variable's potential states. It measures the expected amount of information needed to describe the variable's state, considering the probabilities of each state. The formula H(X) = −∑x∈X p(x) log(p(x)) captures this concept by summing the product of the probability of each state and the logarithm of that probability.

Example

For a fair coin (X = {Heads, Tails}), the probabilities are p(Heads) = 0.5 and p(Tails) = 0.5. Using the entropy formula, H(X) = −(0.5 log(0.5) + 0.5 log(0.5)) = 1 bit. This means that, on average, 1 bit of information is needed to describe the outcome of a fair coin toss.

Understanding the formula for information entropy is crucial in fields like data compression, cryptography, and communication systems, as it helps quantify the amount of uncertainty or information in a given set of outcomes.

Related concepts

One email a day: 5 concepts + the 5 stories that matter →

Swipe through 100 ML concepts daily

Open TickerNews