Potential functions as unnormalized conditional distributions
Figure 4.1 : Alternative interpretation of undirected model. The unnormalized distribution represented by the product of potentials in (4.1a ) corresponds to a slice through the normalized distribution represented by the graph in (4.1b ).
Some readers may still find potential functions to be less intuitive than condition distributions as descriptions of the relationships among random variables.
In fact, a direct translation is possible.
To see this, consider the undirected graphical model in Fig. 4.1a , for which the joint distribution is
p ^ ( 𝒙 1 , 𝒙 2 , 𝒙 3 , 𝒙 4 ) ∝ ψ A ( 𝒙 1 , 𝒙 2 ) ψ B ( 𝒙 1 , 𝒙 3 ) ψ C ( 𝒙 2 , 𝒙 4 ) ψ D ( 𝒙 3 , 𝒙 4 ) = 1 Z ψ A ( 𝒙 1 , 𝒙 2 ) ψ B ( 𝒙 1 , 𝒙 3 ) ψ C ( 𝒙 2 , 𝒙 4 ) ψ D ( 𝒙 3 , 𝒙 4 ) , \begin{split}\hat{p}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor%
}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})&{}\propto\psi_%
{A}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}%
\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{2}})\psi_{B}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}})\psi_{C}({\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{4}})\psi_{D}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb%
}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})\\
&{}=\frac{1}{Z}\psi_{A}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}})\psi_{B}({\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{3}})\psi_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb%
}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})\psi_{D}({\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}}),\end%
{split}
for some normalizer Z Z .
The independence statements asserted by this graph—e.g., 𝑿 ^ 1 ⟂ ⟂ 𝑿 ^ 4 | 𝑿 ^ 2 , 𝑿 ^ 3 {\bm{\hat{X}}}_{1}\mathchoice{\mathrel{\hbox to0.0pt{$\displaystyle\perp$\hss}%
\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{$\textstyle\perp$%
\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{$\scriptstyle\perp%
$\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{$%
\scriptscriptstyle\perp$\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}{\bm{\hat{%
X}}}_{4}|{\bm{\hat{X}}}_{2},{\bm{\hat{X}}}_{3} —follow from the usual graph-separation criterion.
Now consider the graphical model in Fig. 4.1b , which we assert to be normalized :
p ˇ ( 𝒙 1 , 𝒙 2 , 𝒙 3 , 𝒙 4 , 𝒚 ) = ψ ˇ A ( 𝒙 1 , 𝒙 2 , 𝒚 ) ψ ˇ B ( 𝒙 1 , 𝒙 3 , 𝒚 ) ψ ˇ C ( 𝒙 2 , 𝒙 4 , 𝒚 ) ψ ˇ D ( 𝒙 3 , 𝒙 4 , 𝒚 ) . \check{p}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{y}})=\check{%
\psi}_{A}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{y}})\check{\psi}_{B}({\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{3}},{\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{y}})\check{\psi}_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}},{\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{y}})\check{\psi}_{D}({%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{3}},{\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{4}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{y}}).
In this graph, 𝑿 ^ 1 {\bm{\hat{X}}}_{1} and 𝑿 ^ 4 {\bm{\hat{X}}}_{4} are no longer independent conditioned on 𝑿 ^ 2 , 𝑿 ^ 3 {\bm{\hat{X}}}_{2},{\bm{\hat{X}}}_{3} , since there is a connecting path through 𝒀 ^ {\bm{\hat{Y}}} .
But conditioning on 𝒀 ^ {\bm{\hat{Y}}} clearly restores all of the independence statements of Fig. 4.1a .
Therefore if, for a particular value 𝒚 ^ \bm{\hat{y}} of 𝒀 ^ {\bm{\hat{Y}}} , we define
ψ ˇ A ( 𝒙 1 , 𝒙 2 , 𝒚 ^ ) \displaystyle\check{\psi}_{A}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},\bm{\hat{y}})
=
.
.
ψ A ( 𝒙 1 , 𝒙 2 ) \displaystyle{}=\mathrel{\vbox{\hbox{.}\hbox{.}
}}\psi_{A}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}})
ψ ˇ B ( 𝒙 1 , 𝒙 2 , 𝒚 ^ ) \displaystyle\check{\psi}_{B}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},\bm{\hat{y}})
=
.
.
ψ B ( 𝒙 1 , 𝒙 3 ) \displaystyle{}=\mathrel{\vbox{\hbox{.}\hbox{.}
}}\psi_{B}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}})
ψ ˇ C ( 𝒙 1 , 𝒙 2 , 𝒚 ^ ) \displaystyle\check{\psi}_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},\bm{\hat{y}})
=
.
.
ψ C ( 𝒙 2 , 𝒙 4 ) \displaystyle{}=\mathrel{\vbox{\hbox{.}\hbox{.}
}}\psi_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})
ψ ˇ D ( 𝒙 1 , 𝒙 2 , 𝒚 ^ ) \displaystyle\check{\psi}_{D}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},\bm{\hat{y}})
=
.
.
ψ D ( 𝒙 3 , 𝒙 4 ) , \displaystyle{}=\mathrel{\vbox{\hbox{.}\hbox{.}
}}\psi_{D}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{3}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}}),
then
p ˇ ( 𝒙 1 , 𝒙 2 , 𝒙 3 , 𝒙 4 , 𝒚 ^ ) = ψ A ( 𝒙 1 , 𝒙 2 ) ψ B ( 𝒙 1 , 𝒙 3 ) ψ C ( 𝒙 2 , 𝒙 4 ) ψ D ( 𝒙 3 , 𝒙 4 ) ⟹ p ˇ ( 𝒙 1 , 𝒙 2 , 𝒙 3 , 𝒙 4 | 𝒚 ^ ) = 1 p ˇ ( 𝒚 ^ ) ψ A ( 𝒙 1 , 𝒙 2 ) ψ B ( 𝒙 1 , 𝒙 3 ) ψ C ( 𝒙 2 , 𝒙 4 ) ψ D ( 𝒙 3 , 𝒙 4 ) = 1 p ˇ ( 𝒚 ^ ) Z p ^ ( 𝒙 1 , 𝒙 2 , 𝒙 3 , 𝒙 4 ) ⟹ Z = p ˇ ( 𝒚 ^ ) . \begin{split}\check{p}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}},\bm{%
\hat{y}})&{}=\psi_{A}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}})\psi_{B}({\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{3}})\psi_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb%
}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})\psi_{D}({\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})\\
\implies\check{p}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{%
rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}}|\bm{\hat{y}})&{%
}=\frac{1}{\check{p}(\bm{\hat{y}})}\psi_{A}({\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}})\psi_%
{B}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}%
\bm{x}_{1}},{\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{3}})\psi_{C}({\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{\color[rgb]{.75,0,.25}\definecolor%
[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{4}})\psi_{D}({\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{3}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{4}})\\
&{}=\frac{1}{\check{p}(\bm{\hat{y}})}Z\hat{p}({\color[rgb]{.75,0,.25}%
\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{1}},{\color[rgb]{%
.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{2}},{%
\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{.75,0,.25}\bm{x%
}_{3}},{\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{4}})\\
\implies Z&{}=\check{p}(\bm{\hat{y}}).\end{split}
The last line follows from summing both sides over all configurations of 𝑿 ^ {\bm{\hat{X}}} .
In fine, the missing normalizer is p ˇ ( 𝒚 ^ ) \check{p}(\bm{\hat{y}}) .
More generally, the product of potentials for any undirected graphical model with nodes 𝑿 ^ 1 , … , 𝑿 ^ N {\bm{\hat{X}}}_{1},\ldots,{\bm{\hat{X}}}_{N} can be interpreted as a slice through some normalized distribution, p ˇ ( 𝒙 1 , … , 𝒙 N , 𝒚 ^ ) \check{p}({\color[rgb]{.75,0,.25}\definecolor[named]{pgfstrokecolor}{rgb}{%
.75,0,.25}\bm{x}_{1}},\ldots,{\color[rgb]{.75,0,.25}\definecolor[named]{%
pgfstrokecolor}{rgb}{.75,0,.25}\bm{x}_{N}},\bm{\hat{y}}) , where the auxiliary random variable 𝒀 ^ {\bm{\hat{Y}}} did not occur in the original graph.
Furthermore, the individual potentials ψ \psi can all be interpreted as unnormalized conditional distributions, or equivalently as slices through the corresponding marginal distributions.
Under this interpretation, computing the partition function is equivalent to computing the marginal probability of 𝒚 ^ \bm{\hat{y}}{} —another instance of inference with Bayes’s theorem.