1

The KullbackβLeibler (KL) divergence is defined as
$$
D_{\text{KL}}(P\parallel Q)=\sum _{x\in {\mathcal {X}}}P(x)\ \log \left({\frac {\ P(x)\ }{Q(x)}}\right) = \mathbb E_P \left[ \log \left({\frac {\ P(x)\ }{Q(x)}}\right) \right]
$$
where Q is the reference distribution (https://en.wikipedia.org/...