Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
P(x)P(x)P(x)Maths, module 13: Probability, lesson 6 of 6

Entropy and information

How much uncertainty a distribution holds, measured in bits. It explains where the name cross-entropy comes from and what a loss value is really counting.

8 minute readOne thing to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • An outcome with probability ppp carries −log⁡2p-\log_2 p−log2​p bits.
  • Entropy is the average surprise of a distribution.
  • Cross-entropy is the surprise when you believe qqq and the truth is ppp. It is lowest when they match.

More in Probability

  1. 1Probability and distributions
  2. 2Conditional probability and the next token
  3. 3Softmax and temperature
  4. 4Cross-entropy
  5. 5Bayes' rule
  6. 6Entropy and information