Shannon Entropy

Measures uncertainty / information content of a distribution. Foundation of compression, cryptography, and ML decision trees. H(X) = - sum p(x) * log2 p(x) [bits]

Method

For a discrete distribution H=−Σp log2p with 0 log0=0. With at most N outcomes, 0≤H≤log2N and uniformity attains the upper bound; this bound does not apply to differential entropy.

Advantages

Offers a structured approach within the stated model and assumptions.

Limitations

With at most N outcomes, 0≤H≤log2N and uniformity attains the upper bound; this bound does not apply to differential entropy.

Editorial clarification

Scope and assumptions corrected against the cited reference.

Sources

Educational reference only, not professional advice.

All algorithms