Relative entropy (KL divergence)
A directed measure of discrepancy between two probability distributions, defined by an expectation of a log-likelihood ratio.
A relative entropy (Kullback–Leibler divergence) is an extended real number associated to two probability measures and on the same measurable space, defined (when is absolutely continuous with respect to ) by
where is the Radon–Nikodym derivative (see the Radon–Nikodym theorem). If is not absolutely continuous with respect to , one sets .
In the discrete case with mass functions on a countable set, this becomes
with the convention that terms with contribute , and any with and forces . Relative entropy is always nonnegative by Gibbs' inequality, equals iff (in the appropriate sense), and is not symmetric in general. It is related to other discrepancy notions such as total variation distance (for example via Pinsker's inequality).
Examples
- If and with , then
- If and with the same variance , then