Let p(x)=1Z∏CψC(xC) factorise over the cliques of an undirected graph G. Prove that if a set S separates A from B in G (every path from A to B passes through S), then A⊥B∣S. Where does the converse need extra assumptions?

Probabilistic models, Markov random fields
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove the global Markov property from clique factorisation, using connected components and the factorisation criterion for conditional independence.

Key idea

Split the nodes outside S into A′ (the components of G∖S that touch A) and B′ (everything else outside S). No edge joins A′ and B′, so every clique lies in A′∪S or B′∪S. Hence p=g(xA′,xS) h(xB′,xS), which gives conditional independence.

Steps

  1. Assume A, B and S are disjoint. Remove S from G. Let A′ be the union of the connected components of G∖S that contain a node of A, and let B′=V∖(A′∪S). Since S separates A from B, no component contains nodes of both, so B⊆B′.
  2. There is no edge between A′ and B′. If there were, the endpoint in B′ would belong to a component touching A, so it would be in A′.
  3. A clique is a set of mutually adjacent nodes, so it cannot contain a node of A′ and a node of B′. Therefore every clique C is contained in A′∪S or in B′∪S. Assign each clique to one of these (a clique inside S can go to either).
  4. Group the factors: p(x)=1Z∏C⊆A′∪SψC⏟g(xA′, xS)  ∏C⊆B′∪SψC⏟h(xB′, xS).
  5. A joint density that factorises as g(xA′,xS) h(xB′,xS) gives xA′⊥xB′∣xS. For a fixed xS the joint is a product of a function of xA′ and a function of xB′, so it factorises after normalising.
  6. Since A⊆A′ and B⊆B′, conditional independence of the larger sets implies A⊥B∣S.
  7. Converse (the Hammersley–Clifford theorem): if p(x)>0 everywhere and p satisfies the separation property of G, then p factorises over the cliques of G. Positivity is essential. With zeros in p (deterministic constraints) the converse can fail.

Common mistakes

How long your answer should be

A page or more. About 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: Show that Bayesian linear regression with features ϕ(x) and weight prior w∼N(0,Σp) is a Gaussian process, and that its predictive mean and variance equal the GP formulas with k(x,x′)=ϕ(x)⊤Σpϕ(x′). What does this imply for the RBF kernel?
Next in Probabilistic models: none