What is Entropy?
In Turkish: Entropi · Topic: Math foundations
In information theory, a measure of the uncertainty, or amount of surprise, in a probability distribution. The less predictable the outcomes, the higher the entropy.
How does it work?
In information theory, every event carries a degree of surprise: a rare event carries a lot of information and a common one carries little. Entropy is the average of that surprise, weighted by the probabilities. A fair coin flip, where both outcomes are equally likely, is the most uncertain case and each toss carries one bit of information. A coin that always lands heads holds no surprise and has zero entropy. Entropy also gives the lower bound on how many bits, on average, are needed to encode a source's output.
Why does it matter?
Entropy underlies loss functions in machine learning and the splitting criteria used in decision trees. It also summarizes how confident a model is in its predictions. In language models, sampling settings indirectly change the entropy of the output distribution.
Example
Decision tree algorithms can branch on whichever feature splits a dataset so that the mixing of classes, that is, the entropy, drops the most.
FAQ
Is information-theoretic entropy the same as entropy in physics?
Not the same, but closely related. Physical entropy is linked to the number of possible microstates of a system, and the formulas look similar. Information entropy measures the uncertainty of a probability distribution.
Is high entropy good or bad?
It depends on the context. In a classifier, high entropy means the model is unsure. In creative text generation, some entropy is wanted to get variety.