Divergence between discrete probability distributions given the probabilities on their common support
Divergence between discrete probability distributions given the probabilities on their common support
Jensen-Shannon divergence between two discrete probability distributions on the same support (which can be a Cartesian product of q sets), given the probabilities of the states (which are q-tuples) of the support.
ddjensenpar(p1, p2)
Arguments
p1: array (or table) the dimension of which is q. The first probability distribution on the support.
p2: array (or table) the dimension of which is q. The second probability distribution on the support.
Details
The Jensen-Shannon divergence ∣∣p1−p2∣∣ between two discrete distributions p1 and p2 is given by the formula: