Skip to Content
BayesiaLabKey ConceptsMutual InformationComparing Mutual Information and Arc Force

Comparing Mutual Information and Arc Force

Mutual Information

The Mutual Information between two variables XX and YY is defined as follows:

I(X,Y)=∑x∈X∑y∈Yp(x,y)log⁡2p(x,y)p(x)p(y) I(X,Y)=\sum_{x \in X}\sum_{y \in Y} p(x,y)\log_2 \frac{p(x,y)}{p(x)p(y)}

Arc Force

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 as Arc Force.

Formally, the Kullback-Leibler Divergence DKLD_{\mathrm{KL}} measures the difference between two distributions PP and QQ.

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.

Comparing Mutual Information and Arc Force

Mutual Information can be written as the KL divergence between the joint distribution PX,YP_{X,Y} and the product of the marginals PXPYP_XP_Y.

I(X,Y)=DKL(PX,Y∥PXPY)I(X,Y) = D_{\mathrm{KL}}(P_{X,Y}\|P_XP_Y)

Therefore, Mutual Information II and Arc Force DKLD_{\mathrm{KL}} are identical if there are no spouses (co-parents) involved in the relationship of interest.

Example 1

Let’s consider the following network consisting of two nodes, X\mathit{X} and Z\mathit{Z}.

Loading SVG...

The Conditional Probability Table associated with the node Z\mathit{Z} is defined as follows:

Loading SVG...

We now analyze this relationship in terms of Mutual Information in Validation Mode (F5) using Menus > Analysis > Visual > Overall > Arc > Mutual Information and click on the Arc Comments icon in the Toolbar.

Loading SVG...

The top number in the box shows the Mutual Information II.

The bottom number in the box is Symmetric Normalized Mutual Information ISNI_{SN}.

ISN(X,Y)=2×I(X,Y)log⁡2(SX)+log⁡2(SY)I_{SN}(X,Y) = 2 \times \frac{I(X,Y)}{\log_2(S_X) + \log_2(S_Y)}

Next, we now analyze this relationship in terms of Arc Force using Menus > Analysis > Visual > Overall > Arc > Kullback-Leibler and, again, click on the Arc Comments icon in the Toolbar.

Loading SVG...

The top number in the box shows the Arc Force DKLD_{\mathrm{KL}}.

The bottom number, in blue, represents the relative weight of this arc compared to the sum of all Arc Forces in the network. Given that this network consists only of one arc, this arc’s weight accounts for 100%.

So, for now, both analyses return the same value, i.e., 0.3436. As we stated above, Mutual Information II and Arc Force DKLD_{\mathrm{KL}} are identical with regard to an arc if no spouses (co-parents) are involved in the relationship of interest.

Example 2

However, as soon as we have spouses (co-parents) involved, the Arc Force provides a more comprehensive characterization of the relationship.

Let’s consider the following deterministic example, in which node Z\mathit{Z} represents an Exclusive-OR (XOR) gate with regard to its inputs X\mathit{X} and Y\mathit{Y}.

Loading SVG...

The Truth Table associated with the node Z\mathit{Z} is defined as follows:

Loading SVG...

We now analyze this relationship in terms of Mutual Information in Validation Mode (F5) using Menus > Analysis > Visual > Overall > Arc > Mutual Information and click on the Arc Comments icon in the Toolbar.

Loading SVG...

The scenarios below compare the output distribution after observing each input separately.

Loading SVG...
Click to Zoom

In this example, observing X\mathit{X} alone or Y\mathit{Y} alone leaves the distribution of Z\mathit{Z} unchanged. Observing both inputs together determines the state of Z\mathit{Z} through the XOR rule.

Comparison with Arc Force (Kullback-Leibler Divergence)

Next, we now analyze this relationship in terms of Arc Force using Menus > Analysis > Visual > Overall > Arc > Kullback-Leibler and, again, click on the Arc Comments icon in the Toolbar.

Loading SVG...

Arc Force reflects the deterministic relationship between the two inputs and Z\mathit{Z}.