ShannonEntropy

The average surprise of a distribution: how many bits it takes to predict an outcome

Infrastructure · Primitives · brainference 1.0.0

Mechanism

For a discrete distribution P = {p_i} over states i, H(P) = -sum_i p_i log p_i, the expected self-information -log p_i of an outcome. Rare outcomes carry much information, likely ones little. H is maximal (log m for m states) when all states are equally likely and zero when all probability sits on one state. Applied to a system's possible configurations, high H means many weakly constrained configurations (variability, flexibility, exploration) and low H means strong constraints (regularity, coordination). Use log base 2 to measure in bits.

Invariants

Preconditions

Failure modes

Where this came from

Used by

Identity