Adjust two discrete probability distributions P and Q using the sliders. See D_KL(P||Q) and D_KL(Q||P) live — and why asymmetry matters.
When Q(x)=0 but P(x)>0: D_KL(P||Q)=∞ (shown as very large). Jensen-Shannon divergence is always finite and symmetric.