📊 Information Entropy ml3x.com

Shannon · Cross‑entropy · KL · Mutual info · Perplexity

⚡ Shannon Entropy H(X)

bits · nats · efficiency
H = – Σ p·log₂(p)

📊 Distribution & interpretation

Interpretation
Max entropy (uniform): —

🔁 Cross‑entropy H(P,Q)

H(P) · KL divergence
H(P,Q) = – Σ p·log₂(q)

📈 Comparison

KL(P||Q) =

🌀 KL Divergence

asymmetry
KL(P||Q) = Σ p·log(p/q)

⚖️ Asymmetry

KL(P||Q) vs KL(Q||P)

🔗 Mutual Information I(X;Y)

bits
I = Σ p(x,y)·log(p(x,y)/(p(x)p(y)))

📊 Marginals

P(X) and P(Y) displayed

🌀 Perplexity

2^H / e^H
PP = 2^H (bits) or e^H (nats)

📌 Note

If probabilities given, entropy is computed first. Perplexity = 2^H.

Recommended by our team

BeLikeNative.com

The #1 AI writing tool for freelancers — perfect grammar in any language, instantly.