Hammersley–Clifford theorem explained

The Hammersley–Clifford theorem is a result in probability theory, mathematical statistics and statistical mechanics that gives necessary and sufficient conditions under which a strictly positive probability distribution (of events in a probability space) can be represented as events generated by a Markov network (also known as a Markov random field). It is the fundamental theorem of random fields.[1] It states that a probability distribution that has a strictly positive mass or density satisfies one of the Markov properties with respect to an undirected graph G if and only if it is a Gibbs random field, that is, its density can be factorized over the cliques (or complete subgraphs) of the graph.

The relationship between Markov and Gibbs random fields was initiated by Roland Dobrushin and Frank Spitzer in the context of statistical mechanics. The theorem is named after John Hammersley and Peter Clifford, who proved the equivalence in an unpublished paper in 1971. Simpler proofs using the inclusion–exclusion principle were given independently by Geoffrey Grimmett, Preston and Sherman in 1973, with a further proof by Julian Besag in 1974.

Proof outline

It is a trivial matter to show that a Gibbs random field satisfies every Markov property. As an example of this fact, see the following:

In the image to the right, a Gibbs random field over the provided graph has the form

\Pr(A,B,C,D,E,F)\proptof1(A,B,D)f2(A,C,D)f3(C,D,F)f4(C,E,F)

. If variables

C

and

D

are fixed, then the global Markov property requires that:

A,B\perpE,F|C,D

(see conditional independence), since

C,D

forms a barrier between

A,B

and

E,F

.

With

C

and

D

constant,

\Pr(A,B,E,F|C=c,D=d)\propto[f1(A,B,d)f2(A,c,d)][f3(c,d,F)f4(c,E,F)]=g1(A,B)g2(E,F)

where

g1(A,B)=f1(A,B,d)f2(A,c,d)

and

g2(E,F)=f3(c,d,F)f4(c,E,F)

. This implies that

A,B\perpE,F|C,D

.

To establish that every positive probability distribution that satisfies the local Markov property is also a Gibbs random field, the following lemma, which provides a means for combining different factorizations, needs to be proved:

Lemma 1

Let

U

denote the set of all random variables under consideration, and let

\Theta,\Phi1,\Phi2,...,\Phin\subseteqU

and

\Psi1,\Psi2,...,\Psim\subseteqU

denote arbitrary sets of variables. (Here, given an arbitrary set of variables

X

,

X

will also denote an arbitrary assignment to the variables from

X

.)

If

\Pr(U)=

n
f(\Theta)\prod
i=1

gi(\Phii)=

m
\prod
j=1

hj(\Psij)

for functions

f,g1,g2,...gn

and

h1,h2,...,hm

, then there exist functions

h'1,h'2,...,h'm

and

g'1,g'2,...,g'n

such that

\Pr(U)=

m
(\prod
j=1

h'j(\Theta\cap\Psij))(\prod

n
i=1

g'i(\Phii))

In other words,

m
\prod
j=1

hj(\Psij)

provides a template for further factorization of

f(\Theta)

.

In order to use

m
\prod
j=1

hj(\Psij)

as a template to further factorize

f(\Theta)

, all variables outside of

\Theta

need to be fixed. To this end, let

\bar{\theta}

be an arbitrary fixed assignment to the variables from

U\setminus\Theta

(the variables not in

\Theta

). For an arbitrary set of variables

X

, let

\bar{\theta}[X]

denote the assignment

\bar{\theta}

restricted to the variables from

X\setminus\Theta

(the variables from

X

, excluding the variables from

\Theta

).

Moreover, to factorize only

f(\Theta)

, the other factors

g1(\Phi1),g2(\Phi2),...,gn(\Phin)

need to be rendered moot for the variables from

\Theta

. To do this, the factorization

\Pr(U)=

n
f(\Theta)\prod
i=1

gi(\Phii)

will be re-expressed as

\Pr(U)=

n
(f(\Theta)\prod
i=1

gi(\Phii\cap\Theta,\bar{\theta}[\Phii]))(\prod

n
i=1
gi(\Phii)
gi(\Phii\cap\Theta,\bar{\theta

[\Phii])})

For each

i=1,2,...,n

:

gi(\Phii\cap\Theta,\bar{\theta}[\Phii])

is

gi(\Phii)

where all variables outside of

\Theta

have been fixed to the values prescribed by

\bar{\theta}

.

Let

f'(\Theta)=

n
f(\Theta)\prod
i=1

gi(\Phii\cap\Theta,\bar{\theta}[\Phii])

and

g'i(\Phii)=

gi(\Phii)
gi(\Phii\cap\Theta,\bar{\theta

[\Phii])}

for each

i=1,2,...,n

so

\Pr(U)=

n
f'(\Theta)\prod
i=1

g'i(\Phii)=

m
\prod
j=1

hj(\Psij)

What is most important is that

g'i(\Phii)=

gi(\Phii)
gi(\Phii\cap\Theta,\bar{\theta

[\Phii])}=1

when the values assigned to

\Phii

do not conflict with the values prescribed by

\bar{\theta}

, making

g'i(\Phii)

"disappear" when all variables not in

\Theta

are fixed to the values from

\bar{\theta}

.

Fixing all variables not in

\Theta

to the values from

\bar{\theta}

gives

\Pr(\Theta,\bar{\theta})=f'(\Theta)

n
\prod
i=1

g'i(\Phii\cap\Theta,\bar{\theta}[\Phii])=

m
\prod
j=1

hj(\Psij\cap\Theta,\bar{\theta}[\Psij])

Since

g'i(\Phii\cap\Theta,\bar{\theta}[\Phii])=1

,

f'(\Theta)=

m
\prod
j=1

hj(\Psij\cap\Theta,\bar{\theta}[\Psij])

Letting

h'j(\Theta\cap\Psij)=hj(\Psij\cap\Theta,\bar{\theta}[\Psij])

gives:

f'(\Theta)=

m
\prod
j=1

h'j(\Theta\cap\Psij)

which finally gives:

\Pr(U)=

m
(\prod
j=1

h'j(\Theta\cap\Psij))(\prod

n
i=1

g'i(\Phii))

Lemma 1 provides a means of combining two different factorizations of

\Pr(U)

. The local Markov property implies that for any random variable

x\inU

, that there exists factors

fx

and

f-x

such that:

\Pr(U)=fx(x,\partialx)f-x(U\setminus\{x\})

where

\partialx

are the neighbors of node

x

. Applying Lemma 1 repeatedly eventually factors

\Pr(U)

into a product of clique potentials (see the image on the right).

End of Proof

See also

Notes and References

  1. Book: Lafferty, John D. . Mccallum . Andrew . 2001 . Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data . http://repository.upenn.edu/cis_papers/159/ . Proc. of the 18th Intl. Conf. on Machine Learning (ICML-2001) . Morgan Kaufmann . 9781558607781 . by the fundamental theorem of random fields . 14 December 2014.