
Why can't we just compare two things directly?
Image: Robert Simmon, Public domain, via Wikimedia Commons
Why can't we just compare two things directly?
Imagine you're trying to match your taste in music with a friend's. You both have playlists, but they're not identical. You want to know how similar they are.
Think of it like trying to find the difference in taste between two fruit juices. The more you taste, the more you'll notice what makes them unique. The Kullback–Leibler divergence is like a taste test that tells you how much one juice differs from the other.
Example
If one juice has 10% apple flavor and the other has 15%, the difference is noticeable. If both juices have 10% apple flavor, there's no difference in taste.
Remember this
The Kullback–Leibler divergence measures how much one probability distribution diverges from another, showing the difference between them.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
Kullback–Leibler divergence
KL divergence is not symmetric: D_KL(P||Q) ≠ D_KL(Q||P)
Jensen–Shannon divergence
Jensen-Shannon divergence formula: D_JS(P||Q) = 1/2 * D_KL(P||(M)) + 1/2 * D_KL(Q||(M))
the L1 norm is not differentiable at zero
Absolute value's kink makes it non-differentiable at zero
Chebyshev's inequality says: P(|X-μ| ≥ kσ) ≤ 1/k²
Chebyshev's inequality states P(|X-μ| ≥ kσ) ≤ 1/k²
Cross-entropy H(p,q) = -Σ p(x) log q(x) measures how well q approximates p
Ever wondered how well we can guess the outcome of a random event?
the trace equals the sum of eigenvalues: tr(A) = Σλ_i
How can a vector stay the same after a transformation?
Swipe through 100 ML concepts daily
Open Pocket Polymath