Skip to Content
BayesiaLabKey ConceptsKullback-Leibler Divergence (Arc Force)

Kullback-Leibler Divergence (Arc Force)

Definition

  • In BayesiaLab, the Kullback-Leibler Divergence (or KL Divergence) is used to measure the strength of the relationship between two nodes that are directly connected by an arc.
  • We commonly refer to the KL Divergence also as Arc Force.
  • Formally, the Kullback-Leibler Divergence DKLD_{\mathrm{KL}} compares two distributions PP and QQ on the same set of outcomes X\mathcal{X}.
DKL(P∥Q)=∑x∈XP(x)log⁡2P(x)Q(x)D_{\mathrm{KL}}(P\|Q) = \sum_{x\in\mathcal{X}} P(x)\log_2\frac{P(x)}{Q(x)}
  • For our purposes, we consider PP the Bayesian network that does include the arc for which we wish to compute the Arc Force, and QQ the Bayesian network that does not contain that arc but is otherwise identical.
  • We interpret this difference DKLD_{\mathrm{KL}} as the “force of the arc” or Arc Force.
  • Note that Filtered Values are taken into account for computing the Arc Force.
Loading SVG...

With the arc, outcomes 00 and 11 each have probability 37.5%, and 01 and 10 each have probability 12.5%. Removing the arc gives each pair 25%. Weight each log probability ratio by the probability of its outcome in the model with the arc, then add the contributions.

Throughout this website, we use Kullback-Leibler Divergence, KL Divergence, and Arc Force interchangeably.