Introduction
When an event has many possible outcomes, knowing that something will happen may tell us very little about what it will be. Entropy measures this uncertainty by considering both how many outcomes are possible and how likely each one is. It is useful in probability, communication, data compression, and science—but its meaning depends on the probabilities and the question being asked.
- What Entropy Measures
- The Basic Formula, in Plain English
- Why Many Possible Outcomes Can Mean More Uncertainty
- How Probability Changes Entropy
- Bits, Nats, and the Meaning of the Units
- Entropy as Expected Information
- Entropy Is Not the Same as Ignorance
- Conditional Entropy: Uncertainty After Some Information
- Where Entropy Is Used
- Reading an Entropy Value Carefully
- Conclusion
What Entropy Measures
In information theory, entropy is a number that summarizes the uncertainty in a probability distribution. A probability distribution assigns a likelihood to each possible outcome. Entropy is higher when the outcomes are harder to predict and lower when one outcome is much more likely than the others.
The central idea is not simply to count possibilities. Entropy also accounts for their probabilities. If a process can produce many outcomes but almost always produces the same one, it may be quite predictable. If its possible outcomes are similarly likely, it is generally harder to guess what will happen.
For example, imagine a box that contains one red card and many blue cards. Drawing a card has more than one possible result, but if blue is overwhelmingly likely, the color of the next card is not very uncertain. A different box in which red and blue are equally likely has greater uncertainty about the color, even though it has the same two possible color outcomes.
The Basic Formula, in Plain English
For a discrete set of outcomes, Shannon entropy is calculated by adding up a contribution from each outcome. Each contribution depends on the outcome’s probability and on how surprising it would be. The standard formula is:
H(X) = −Σ p(x) log₂ p(x)
Here, X represents the uncertain result, and p(x) is the probability of a particular outcome, x. The symbol Σ means to add the contributions from all possible outcomes. The logarithm gives greater weight to outcomes that are less likely, because learning that a rare event occurred is generally more informative than learning that a very likely event occurred.
The formula may look technical, but its logic is straightforward. First, identify every possible result and its probability. Then estimate the information associated with each result using its probability. Finally, average those information amounts according to how often the results are expected to occur. Entropy is that average uncertainty, expressed as information.
Why Many Possible Outcomes Can Mean More Uncertainty
Suppose a fair coin is tossed. There are two equally likely outcomes, so neither is easier to predict. Now imagine a fair six-sided die. There are six equally likely outcomes, and a guess has more ways to be wrong. The die roll therefore has more entropy than the coin toss.
For a uniform distribution—one in which all outcomes are equally likely—entropy grows with the number of possible outcomes. If there are N equally likely outcomes, the entropy is log₂ N bits. A fair coin has one bit of entropy, while a fair die has log₂ 6 bits, or about 2.58 bits.
This does not mean that every situation with six named outcomes is more uncertain than every situation with two. Probabilities matter. A die that is extremely likely to land on one face may be easier to predict than a coin whose two sides are close to equally likely. Entropy compares the full probability distributions, not just the lists of possible results.
How Probability Changes Entropy
Consider a coin that lands on heads most of the time and tails less often. If the bias is strong, a prediction of heads will usually be right. Its entropy is lower than that of a fair coin because the outcomes are less evenly balanced. As the probabilities move closer to equal, uncertainty rises; as one outcome becomes increasingly likely, uncertainty falls.
At the extremes, if an outcome is certain, entropy is zero. There is no uncertainty about what will happen, so learning the result provides no new information. If several outcomes are possible but one is certain in practice, the same reasoning applies: the other possibilities do not contribute to uncertainty if their probabilities are zero.
For a fixed number of possible outcomes, the uniform distribution has the greatest entropy. That is because probability is spread as evenly as possible, leaving no single result especially predictable. This principle is useful when comparing systems with the same set of options, but it should not be used to compare unrelated systems without considering their definitions and context.
Bits, Nats, and the Meaning of the Units
Entropy is measured in units determined by the logarithm used in its formula. With a base-two logarithm, the unit is the bit. One bit corresponds to the uncertainty of a fair choice between two equally likely possibilities. In practical terms, it is the average information associated with resolving that choice.
Using the natural logarithm instead gives entropy in nats. The underlying measure is the same; only the scale changes. Bits are common in computing and digital communication because digital systems use binary representations. Nats often appear in mathematics and some areas of science. A stated entropy value is easiest to interpret when its unit and the probability model are clear.
A bit of entropy is an average, not a promise that every observation will require exactly one binary answer. Some individual outcomes can be more surprising than others. Entropy describes the average uncertainty over repeated outcomes, rather than the information content of one particular result.
Entropy as Expected Information
Entropy connects uncertainty with information. Before an outcome is known, a probability distribution describes what might happen. Once the outcome is observed, some uncertainty is resolved. A rare result tends to carry more information than a common one because it rules out more of what was expected.
For instance, hearing that the sun rose on a particular morning usually provides little surprising information because it was expected. Learning the result of a fair die roll is less predictable in advance. Entropy captures the average information gained from observing outcomes, weighted by their probabilities. This is why it is also described as the expected information content of a source.
The connection is useful in data compression. A message made from highly predictable symbols can often be represented compactly by assigning short codes to common symbols and longer codes to rare ones. A source with higher entropy generally requires more bits, on average, to represent its output without losing information. Entropy sets a theoretical limit for such lossless compression, although real compression systems may not reach that limit exactly.
Entropy Is Not the Same as Ignorance
Entropy is a property of a probability model. It does not automatically tell us whether a person knows enough about a situation, whether a system is chaotic, or whether an outcome is fundamentally random. Two people can assign different probabilities because they have different evidence or assumptions, and therefore calculate different entropies for the same real-world process.
It is also important to distinguish uncertainty from randomness. A process can be governed by a definite rule while still being difficult to predict if relevant information is unavailable. Conversely, a process may involve random outcomes but have low entropy if one result is much more probable than the rest. Entropy measures uncertainty under a specified model; by itself, it does not explain why that uncertainty exists.
Nor is information-theory entropy simply a measure of disorder in everyday language. The word is also used in thermodynamics, where entropy is a physical quantity connected to the number of microscopic arrangements compatible with a system’s macroscopic state. The concepts have mathematical connections, but they are used in different settings and should not be treated as interchangeable without explanation.
Conditional Entropy: Uncertainty After Some Information
Many questions are not about uncertainty in isolation. They ask how uncertain one result remains after another piece of information is known. Conditional entropy measures the remaining average uncertainty about one variable when the value of another variable is given.
Imagine predicting whether a train will arrive on time. Without any other information, you may be uncertain. If you are then told whether the route is experiencing a delay, your prediction may become easier. The information about the route can reduce uncertainty about arrival time. In general, useful information can lower conditional entropy, although the amount depends on how strongly the variables are related.
This idea helps explain why context matters. Knowing that a word follows a particular letter, for example, can make some next letters more likely than others. A sequence of symbols may have high uncertainty when each symbol is considered alone, yet lower uncertainty when its surrounding context is known. Models of language, communication, and prediction use these relationships to describe patterns more accurately.
Where Entropy Is Used
Communication: Engineers use entropy to reason about how efficiently information can be encoded and transmitted. A predictable signal can often be represented with fewer bits on average than a less predictable one, provided the encoding is designed for its probability pattern.
Data compression: Compression methods take advantage of repeated or uneven patterns. Entropy helps describe the lower limit for lossless compression under a given source model. It does not specify a complete compression method or guarantee a particular file size.
Statistics and machine learning: Entropy can describe uncertainty in a model’s predictions. It is also used in methods that select questions or divide data into groups, with the aim of reducing uncertainty about a classification. The result depends on the data, the chosen model, and the task.
Decision-making and experiments: When choosing what to observe next, researchers may compare how much different observations are expected to reduce uncertainty. This can help make an experiment or measurement more informative, though practical constraints and the purpose of the investigation also matter.
Reading an Entropy Value Carefully
An entropy value is meaningful only alongside its assumptions. Ask what the possible outcomes are, how their probabilities were assigned, and which logarithm—and therefore which unit—was used. A result based on an estimated distribution may change if the data or model changes.
It also helps to distinguish entropy from the probability of a specific event. Entropy summarizes the distribution as a whole; it does not say that any one outcome is likely or unlikely by itself. A system can have high overall entropy while still assigning one particular outcome a substantial probability, depending on the number and arrangement of the other outcomes.
Finally, entropy is not a score for whether a system is good, bad, efficient, or valuable. High uncertainty may be desirable in a game designed to be unpredictable, but inconvenient when trying to forecast a process. Low uncertainty may help with prediction, yet it does not automatically make a system useful. Interpretation depends on the question being asked.
Conclusion
Entropy measures the average uncertainty in a set of possible outcomes, taking account of how likely each outcome is. More numerous, evenly balanced possibilities usually mean greater entropy; a highly predictable result means less. Expressed in bits or nats, the measure helps explain information, compression, and prediction. Its value is most useful when the probability model and context are made explicit.

