Kullback-Leibler Divergence
The cost of using Q when the truth is P. Not symmetric, which is why it is a divergence and not a distance.
The information lost when is used to approximate . Equivalently, the extra bits needed to encode data from using a code optimised for .
Always non-negative, and zero only when the distributions agree.
Not a distance
The asymmetry is not a defect to be worked around. It encodes a genuine difference in what is being penalised, and choosing the direction is a modelling decision.
, forward, "mean-seeking". The expectation is over , so wherever has mass and does not, the penalty is severe. This forces to cover all of , spreading out to avoid assigning near-zero probability anywhere lives.
The rest of this lesson is for subscribers
Unlock every lesson in Advanced Topics in Probability and Statistics, and every other premium course.
Subscribe to continueTest your knowledge
Keep reading Advanced Topics in Probability and Statistics
35 lessons in this course, and every other premium course, on one subscription.
- Every lesson in every course, with the worked examples and interactive simulators
- Graded questions on every lesson, with explanations for the wrong answers as well as the right one
- The trainers, timed assessments and brainteaser library that go with them