Tutorials › Multivariate Statistics (Graduate) › Markov Properties And Factorization Of Gaussian Graphs

Sparse Precision and Graphical Models · Tutorial 829 of 975

Markov Properties And Factorization Of Gaussian Graphs

Learn how Gaussian graph structure encodes conditional independence and how its density decomposes into factors supported on graph cliques.

Advanced 10 min read

What You'll Learn

  • Define pairwise, local, and global Markov properties for an undirected graph
  • Relate graph separation to conditional independence in a Gaussian model
  • Derive a clique-potential factorization from zeros in the precision matrix
  • Prove that clique factorization implies the global Markov property
  • Distinguish conditional independence from marginal independence in examples

Why Graph Structure Matters

A multivariate Gaussian distribution can involve many variables, but its conditional dependence structure may be sparse. An undirected graph represents that structure: vertices stand for variables, and an edge indicates a possible direct conditional dependence. The graph is useful not only as a picture of precision-matrix zeros, but also because it identifies which variables can be separated by conditioning on a chosen set.

The key connection is between graph separation and conditional independence. For a Gaussian model, the density also decomposes into factors involving only variables in graph cliques. The resulting factorization is the bridge between a matrix representation and the graph’s separation properties.

Graphs and Markov Properties

Let \(G=(V,E)\) be a finite undirected graph with vertex set \(V=\{1,\ldots,p\}\), and let \(X=(X_1,\ldots,X_p)^T\) have a nonsingular Gaussian distribution \(N_p(\mu,\Sigma)\). Its precision matrix is \(K=\Sigma^{-1}\). We consider graphs whose edges include every pair with a nonzero off-diagonal entry of \(K\); equivalently, \(K_{ij}=0\) whenever \(\{i,j\}\notin E\). An edge may be present even if the corresponding entry is zero, so a graph can encode a model with additional zeros.

Definition: A set \(S\subseteq V\) separates disjoint sets \(A,B\subseteq V\setminus S\) if every path in \(G\) from a vertex in \(A\) to a vertex in \(B\) passes through \(S\). The graph has the global Markov property for \(X\) if, whenever \(S\) separates \(A\) and \(B\), \(X_A\perp X_B\mid X_S\). The pairwise Markov property requires \(X_i\perp X_j\mid X_{V\setminus\{i,j\}}\) for every distinct nonadjacent \(i,j\). The local Markov property requires \(X_i\perp X_{V\setminus(\{i\}\cup N(i))}\mid X_{N(i)}\), where \(N(i)\) is the set of neighbors of \(i\).

For a nonsingular Gaussian vector, the standard precision-matrix characterization is \(X_i\perp X_j\mid X_{V\setminus\{i,j\}}\) if and only if \(K_{ij}=0\). Thus the pairwise Markov property is exactly the condition that nonedges correspond to precision-matrix zeros. In a Gaussian model, pairwise, local, and global Markov properties are equivalent. The factorization and separation arguments below explain how the global property follows from a clique factorization.

Cliques and Density Factorization

A clique is a set of vertices in which every pair is joined by an edge. A maximal clique is a clique not contained in a larger clique. A clique potential is a nonnegative function of the variables indexed by a clique. A density factorizes over the cliques of \(G\) when it can be written as a product of such functions, up to a normalizing constant.

Definition: A density \(f\) factorizes over \(G\) if there are measurable nonnegative functions \(\psi_C\), each depending only on \(x_C\) for a clique \(C\), and a constant \(c>0\), such that \(f(x)=c\prod_C\psi_C(x_C)\). It is sufficient to use maximal cliques, since factors for smaller cliques can be included in any maximal clique containing them. The potentials need not themselves integrate to one.

For a Gaussian vector, the density has the form

$$ f(x)=(2\pi)^{-p/2}\det(K)^{1/2} \exp\!\left\{-\frac12(x-\mu)^TK(x-\mu)\right\}. $$

Write \(z=x-\mu\). Expanding the quadratic form gives

$$ -\frac12 z^TKz =-\frac12\sum_{i=1}^pK_{ii}z_i^2 -\sum_{i<j}K_{ij}z_iz_j. $$

The coefficient of each cross-product \(z_i z_j\) is zero for a nonedge. Every remaining term involves either one vertex or the two endpoints of an edge. Both are cliques, so these terms can be grouped into clique potentials.

Theorem: Suppose \(X\sim N_p(\mu,\Sigma)\) with \(\Sigma\) positive definite and \(K=\Sigma^{-1}\). If \(K_{ij}=0\) for every nonedge of \(G\), then the Gaussian density factorizes over the cliques of \(G\). Moreover, any such positive clique factorization implies the global Markov property. Consequently, for a nonsingular Gaussian vector, the graph is globally Markov exactly when all nonedges correspond to zeros in \(K\).

Proof of factorization from precision zeros. For each vertex and edge define

$$ \psi_i(z_i)=\exp\!\left(-\frac12K_{ii}z_i^2\right), \qquad \psi_{ij}(z_i,z_j)=\exp(-K_{ij}z_iz_j). $$

Then the density is the normalizing constant times \(\prod_i\psi_i(z_i)\prod_{\{i,j\}\in E}\psi_{ij}(z_i,z_j)\), because the omitted cross-terms have \(K_{ij}=0\). Each vertex factor is supported on a singleton clique and each edge factor on a two-vertex clique. Group factors into maximal cliques to obtain the stated factorization.

Proof that factorization implies global Markov. Suppose \(S\) separates \(A\) and \(B\). Remove the vertices in \(S\); the remaining graph breaks into connected components. A clique can intersect vertices outside \(S\) in at most one such component, since two vertices from different components cannot be joined by an edge. Fix \(x_S\). The product of clique potentials therefore splits into a factor depending on \(x_S\) alone and separate factors, one for each component, depending on that component’s variables and \(x_S\). The conditional density of \(X_{V\setminus S}\) given \(X_S=x_S\) is proportional to this product. Its normalizing integral splits into the product of component integrals by Tonelli’s theorem for nonnegative functions; for almost every \(x_S\) the conditional density is defined and normalized. Thus the components are conditionally independent given \(X_S\). Since no component can contain both a vertex of \(A\) and a vertex of \(B\), integrating out components that meet neither set yields \(X_A\perp X_B\mid X_S\). For a Gaussian vector, this global property implies the pairwise property by taking \(S=V\setminus\{i,j\}\) for each nonedge, and the precision-matrix characterization then gives \(K_{ij}=0\). \(\square\)

Worked Gaussian Graphs

Worked Example: A Three-Variable Chain

Let \(G\) be the chain \(1-2-3\), and take

$$ K=\begin{pmatrix}2&-1&0\\-1&2&-1\\0&-1&2\end{pmatrix}, \qquad \mu=\begin{pmatrix}1\\0\\-1\end{pmatrix}. $$

The leading principal minors of \(K\) are \(2\), \(3\), and \(4\), all positive, so Sylvester’s criterion verifies that \(K\) is positive definite. Its only nonedge is \(\{1,3\}\), and \(K_{13}=0\). Put \(z_i=x_i-\mu_i\). The quadratic form is

$$ z^TKz=2z_1^2+2z_2^2+2z_3^2-2z_1z_2-2z_2z_3. $$

Since \(\det(K)=4\), the density is

$$ f(x)=\frac{2}{(2\pi)^{3/2}} \exp(-z_1^2)\exp(-z_2^2)\exp(-z_3^2) \exp(z_1z_2)\exp(z_2z_3). $$

Each exponential is a vertex or edge potential. Removing vertex 2 separates 1 from 3, so the global Markov property gives \(X_1\perp X_3\mid X_2\).

Worked Example: A Star and Its Separators

Consider a star with center 1 and leaves 2, 3, and 4. Let \(\mu=0\) and

$$ K=\begin{pmatrix} 3&-1/2&-1/2&-1/2\\ -1/2&2&0&0\\ -1/2&0&2&0\\ -1/2&0&0&2 \end{pmatrix}. $$

This matrix is positive definite: for any \(z\), the inequality \(2|z_i z_j|\le z_i^2+z_j^2\) gives \(z^TKz\ge\sum_i(K_{ii}-\sum_{j\ne i}|K_{ij}|)z_i^2\), and the four coefficients on the right are \(3/2,3/2,3/2,3/2\), all positive. Its nonedges are the leaf pairs, whose precision entries are zero.

The quadratic form is \(3z_1^2+2z_2^2+2z_3^2+2z_4^2-z_1z_2-z_1z_3-z_1z_4\). Hence the density is proportional to

$$ \exp(-3z_1^2/2)\prod_{j=2}^4\exp(-z_j^2) \prod_{j=2}^4\exp(z_1z_j/2). $$

The factors involve only the center or one center-leaf edge. Conditioning on \(X_1\) separates the leaves, so, for example, \(X_2\perp X_3\mid X_1\).

Worked Example: Grouping Terms into Maximal Cliques

Let the graph have a triangle on vertices \(\{1,2,3\}\) and one additional edge \(\{3,4\}\). Set \(\mu=0\) and

$$ K=\begin{pmatrix} 3&-1/2&-1/4&0\\ -1/2&3&-1/2&0\\ -1/4&-1/2&3&-2/5\\ 0&0&-2/5&2 \end{pmatrix}. $$

Each diagonal entry exceeds the sum of the absolute off-diagonal entries in its row: the four differences are \(9/4\), \(2\), \(37/20\), and \(8/5\). The same quadratic-form bound used in the star example therefore verifies positive definiteness. The maximal cliques are \(\{1,2,3\}\) and \(\{3,4\}\). In the exponent, the quadratic form is

$$ 3x_1^2+3x_2^2+3x_3^2+2x_4^2 -x_1x_2-\frac12x_1x_3-x_2x_3-\frac45x_3x_4. $$

A factorization over those maximal cliques is \(f(x)=c\,\psi_{123}(x_1,x_2,x_3)\psi_{34}(x_3,x_4)\), where \(c=(2\pi)^{-2}\det(K)^{1/2}\) and

$$ \psi_{123}=\exp\!\left\{-\frac12\left(3x_1^2+3x_2^2+3x_3^2-x_1x_2-\frac12x_1x_3-x_2x_3\right)\right\}, \quad \psi_{34}=\exp\!\left\{-\frac12\left(2x_4^2-\frac45x_3x_4\right)\right\}. $$

Multiplying the factors recovers every diagonal and cross-product term exactly. Removing vertex 3 separates \(\{1,2\}\) from \(\{4\}\), so \(X_{\{1,2\}}\perp X_4\mid X_3\).

What the Factorization Says—and What It Does Not

A clique factorization is a structural statement about how the joint density is assembled. It does not say that variables in different cliques are independent: maximal cliques can overlap, and their factors share variables. Instead, the factorization guarantees conditional independence when a separator blocks every graph path between two sets.

One common mistake is to interpret a zero precision entry as marginal independence. In the chain example, \(K_{13}=0\) gives independence of \(X_1\) and \(X_3\) conditional on \(X_2\), not necessarily marginal independence. Indeed, direct inversion gives

$$ K^{-1}=\frac14\begin{pmatrix}3&2&1\\2&4&2\\1&2&3\end{pmatrix}, $$

so \(\operatorname{Cov}(X_1,X_3)=1/4\ne0\). The correction is to read a missing edge as a conditional-independence statement given the other variables, and to use graph separators to identify the relevant conditioning set.

This connection matters because a sparse graph makes the dependence structure interpretable and gives a compact representation of a high-dimensional Gaussian density. The graph describes which interactions may appear in the density’s clique factors, while separation identifies conditional independences that hold across groups of variables.

Check Your Understanding

Use the definitions and factorization results to answer these questions.

  1. For a nonedge \(\{i,j\}\), which variables are conditioned on in the pairwise Markov property?
  2. Why can a clique in a Gaussian density factorization contain an edge factor but not a factor involving two nonadjacent vertices?
  3. If \(S\) separates \(A\) and \(B\), what feature of the connected components after removing \(S\) supports the conditional-independence conclusion?
  4. In the three-variable chain, what conditional independence follows from removing vertex 2, and why does it not imply marginal independence?
  5. Explain why potentials in a clique factorization need not be probability densities individually.
Clinical Biostats