Skip to content
Formal Sciences
Information Theory
1948
Intermediate

Shannon Entropy

H=ipilog2piH = -\sum_{i} p_i \log_2 p_i

Measures the average information (surprise) in a random variable—how many bits needed to encode it.

By Claude Shannon

Formal Sciences
Shannon Entropy
1948 · Claude Shannon
Expert Reviewed
89%

Rabbit Hole Mode

Five doors into the universe behind this equation. Choose your path.

Launch collection — full story, visual, sound & share card
Why it matters: Defined limits of compression, communication, and laid groundwork for the internet and AI.

Discoverers: Claude Shannon (1948)

What does it mean?

Measures the average information (surprise) in a random variable—how many bits needed to encode it.

Why should I care?

Defined limits of compression, communication, and laid groundwork for the internet and AI.

Equation Compass

North — Prerequisites

West — History

South — Derivations

Variables & Units

SymbolNameUnitMeaning
HHEntropybitsAverage information
pip_iProbabilityProbability of outcome i

Worked Example

Fair coin: H = -0.5·log₂(0.5) - 0.5·log₂(0.5) = 1 bit per flip.

AI Guide (Pro)

Ask questions about equations and get answers grounded in the Equation Universe catalog.

Pictures & video

Photograph of Claude Shannon
Claude Shannon, founder of information theory (1948).Konrad Jacobs / Archives of the Mathematisches Forschungsinstitut Oberwolfach · CC BY-SA 2.0 DE

Share this equation

Equation Universe

Shannon Entropy

H=ipilog2piH = -\sum_{i} p_i \log_2 p_i

Real-world impact

Wireless technology

Electromagnetic waves carry information worldwide.

Photo: Unsplash — network infrastructure

Measures the average information (surprise) in a random variable—how many bits needed to encode it.

equation-universe.vercel.app

Post