Why Marginalizing Changes a Graph
A Gaussian graphical model describes conditional relationships through zeros in a precision matrix. But a study may record only some of the variables in the model. If other variables are unobserved and are integrated out, the distribution of the recorded variables remains Gaussian, yet its precision matrix can have a different pattern of zeros. A sparse graph containing latent nodes can therefore correspond to a much denser graph among the observed variables.
The distinction matters when interpreting a fitted graph. An edge in the graph of observed variables represents conditional dependence given the other observed variables. It does not, by itself, establish a direct edge between those variables in a larger model that includes latent variables.
Joint and Marginal Precision Matrices
Let \(X\in\mathbb{R}^p\) be the observed vector and \(Z\in\mathbb{R}^q\) the latent vector. Suppose the centered joint vector \((X^\mathsf{T},Z^\mathsf{T})^\mathsf{T}\) is multivariate Gaussian with positive-definite precision matrix
where \(A\) is \(p\times p\), \(C\) is \(q\times q\), and \(B\) is \(p\times q\). Positive definiteness of \(\Omega\) implies that its principal block \(C\) is positive definite, so \(C^{-1}\) exists.
The block \(A\) has a different interpretation from the observed marginal precision. In the joint Gaussian density, terms depending on \(x\), with \(z\) held fixed, have quadratic part \(x^\mathsf{T}Ax\). Thus \(A\) is the conditional precision of \(X\) given \(Z\). It need not be the precision matrix of \(X\) after \(Z\) has been integrated out.
The Marginal Precision Is a Schur Complement
Proof. Up to its normalizing constant, the joint density has exponent
Complete the square in \(z\):
Integrating over \(z\) integrates a shifted Gaussian kernel with precision \(C\). Its integral is a finite constant independent of \(x\), because \(C\) is positive definite. The remaining density in \(x\) is therefore proportional to \(\exp\{-x^\mathsf{T}Sx/2\}\), where \(S=A-BC^{-1}B^\mathsf{T}\). To check that this is a valid positive-definite precision matrix, take any nonzero \(x\) and set \(z=-C^{-1}B^\mathsf{T}x\). Then
since the vector in the quadratic form is nonzero and \(\Omega\) is positive definite. Hence \(S\) is positive definite, and it is the marginal precision of \(X\). \(\square\)
For the graph, the key entrywise identity is
where \(b_i^\mathsf{T}\) is row \(i\) of \(B\). Thus, even if \(A_{ij}=0\), the marginal precision entry \(S_{ij}\) can be nonzero. Conversely, a nonzero \(A_{ij}\) can be canceled by the second term. Since \(C^{-1}\) is positive definite, \(b_i^\mathsf{T}C^{-1}b_j\) is an inner product under the \(C^{-1}\) metric; it may be zero, positive, or negative.
Worked Example: A Latent Hub Creates a Complete Observed Graph
Let \(X=(X_1,X_2,X_3)^\mathsf{T}\), let \(Z\) be a single latent variable, and consider the joint precision matrix
Here \(A=I_3\), \(B=\mathbf{1}\), and \(C=4\). The matrix is positive definite: its Schur complement with respect to \(A\) is \(4-\mathbf{1}^\mathsf{T}I_3^{-1}\mathbf{1}=4-3=1>0\).
The marginal precision is
Every off-diagonal entry is nonzero, so the observed-variable precision graph is complete. In contrast, the joint precision has zero off-diagonal entries between each pair of \(X\) variables and nonzero entries from each \(X_i\) to \(Z\). Its graph is a star. In fact, the eigenvalue of \(S\) in the \(\mathbf{1}\) direction is \(1-3/4=1/4\), and each eigenvalue in a direction orthogonal to \(\mathbf{1}\) is \(1\), confirming that \(S\) is positive definite.
Induced Edges and Exact Cancellation
The matrix \(BC^{-1}B^\mathsf{T}\) has rank at most \(q\), the number of latent variables. Low rank does not mean sparse: even a rank-one matrix can have a nonzero entry for every pair of variables. Marginalization can therefore add many edges at once. But it does not necessarily add every possible edge: the formula for \(S_{ij}\) allows both zero inner products and exact cancellation.
Worked Example: A Direct Edge Can Be Canceled
Let \(X\in\mathbb{R}^3\), \(Z\in\mathbb{R}\), and choose
The eigenvalues of \(A\) are \(5/4\), \(3/4\), and \(1\), so \(A\) is positive definite. Also,
The Schur complement with respect to \(A\) is \(4-13/5=7/5>0\), so the joint precision is positive definite. Marginalizing \(Z\) gives
The joint model has a direct \(X_1\)--\(X_2\) edge because \(A_{12}=1/4\), as well as links from all three observed variables to \(Z\). But the marginal entry is \(S_{12}=1/4-1/4=0\), so there is no \(X_1\)--\(X_2\) edge in the observed-variable precision graph. The remaining observed edges are \(X_1\)--\(X_3\) and \(X_2\)--\(X_3\).
Conditional and Marginal Graphs Answer Different Questions
The joint graph describes conditional independences among all variables when the other joint variables are conditioned on. The observed-variable graph describes conditional independences among recorded variables when conditioning only on the other recorded variables. Once latent variables are omitted from the conditioning set, they can transmit dependence between observed variables. This is why taking the observed nodes of a joint graph and simply deleting its latent nodes does not generally produce the observed-variable precision graph.
Worked Example: Conditional Independence Does Not Survive Marginalization
Take two observed variables and one latent variable, with
The joint precision is positive definite because \(A\) is positive definite and its Schur complement is \(3-B^\mathsf{T}A^{-1}B=3-1=2>0\). Given \(Z\), the conditional precision of \(X\) is \(A=2I_2\), which is diagonal: \(X_1\) and \(X_2\) are conditionally independent given \(Z\).
After integrating out \(Z\), the precision becomes
Its off-diagonal entry is nonzero, so the two observed variables are not conditionally independent in their marginal distribution. Direct inversion gives
The positive marginal covariance is consistent with their dependence, but the graph edge criterion here is the nonzero off-diagonal entry of the marginal precision, not merely a nonzero covariance.
How to Interpret an Observed Edge
In an observed-variable precision graph, an edge means conditional dependence given the other observed variables under the fitted Gaussian model. It does not tell us whether the dependence arises from a direct interaction, an omitted common influence, or a combination of pathways. In particular, an edge induced by a latent variable is a real edge in the marginal graph, not a computational error; it simply has a different interpretation from an edge in a larger joint graph.
When latent variables are plausible, it is useful to state which graph is being discussed. A sparse joint precision matrix can have a dense observed marginal precision matrix. Conversely, exact cancellations can make a joint edge disappear from the marginal graph. Neither relationship can be inferred by merely inspecting the observed-node subgraph of the joint graph; the Schur complement determines the marginal pattern.
Common Mistake
Check Your Understanding
Use the block-matrix identity and distinguish carefully between conditional and marginal precision.
- In the block precision matrix \(\Omega\), which block is the conditional precision of \(X\) given \(Z\), and which matrix is the marginal precision of \(X\)?
- Why can a single latent variable induce several edges among observed variables even though the adjustment \(BC^{-1}B^\mathsf{T}\) has rank at most one?
- What exact equality produces cancellation of the \(i,j\) entry in the marginal precision?
- In the latent-hub example, why is the joint graph a star while the observed-variable graph is complete?
- Does an edge in an observed-variable precision graph, by itself, establish a direct edge in a model that includes latent variables? Explain.