Tutorials › Multivariate Statistics (Graduate) › Comparing Likelihood And Neighborhood Selection

Sparse Precision and Graphical Models · Tutorial 842 of 975

Comparing Likelihood And Neighborhood Selection

See how likelihood-based and regression-based graph estimators differ, when their selected edges agree, and what assumptions support their recovery guarantees.

Advanced 10 min read

What You'll Learn

  • Write the graphical-lasso and nodewise-lasso objectives under a common scaling convention
  • Derive the connection between Gaussian precision entries and conditional-regression coefficients
  • Compare symmetric likelihood estimates with potentially asymmetric neighborhood selections
  • Apply AND and OR rules to combine nodewise supports
  • Interpret the distinct assumptions and typical sample-size regimes for support recovery
  • Recognize why computational cost depends on implementation as well as the estimator

Two Routes to a Sparse Gaussian Graph

For a multivariate Gaussian distribution, a zero in the precision matrix corresponds to conditional independence between two variables given the others. The graphical lasso and neighborhood selection use this same relationship but approach estimation differently. The graphical lasso estimates one symmetric precision matrix by penalized likelihood. Neighborhood selection fits a separate penalized regression for each variable, then combines the resulting supports into a graph.

The distinction matters in practice. Joint likelihood estimation enforces symmetry automatically, whereas separate regressions can disagree about whether an edge is present. Their computational costs and support-recovery guarantees also depend on different features of the problem. Neither method dominates in every setting.

Setup: Let \(X\in\mathbb{R}^p\) have a centered Gaussian distribution with positive-definite precision matrix \(\Theta=\Sigma^{-1}\), and let \(X^{(1)},\ldots,X^{(n)}\) be independent observations. Write \(S=n^{-1}\sum_{i=1}^n X^{(i)}X^{(i)\mathsf T}\) for the sample covariance matrix. An edge joins \(j\) and \(k\) when \(j\ne k\) and \(\Theta_{jk}\ne 0\).

The Objectives Estimate Different Objects Directly

With a common penalty convention, the graphical-lasso estimate minimizes the negative Gaussian log-likelihood, up to constants and a positive factor, plus an \(L_1\) penalty on off-diagonal entries:

$$ \hat{\Theta}_{\mathrm{gl}} = \underset{\Theta\succ 0}{\operatorname{argmin}} \left\{ \operatorname{tr}(S\Theta)-\log\det(\Theta) +\lambda\sum_{j\ne k}|\Theta_{jk}| \right\}. $$

Here \(\Theta\succ0\) means that \(\Theta\) is symmetric positive definite. The sum counts both \((j,k)\) and \((k,j)\); an alternative convention sums only over \(j<k\), changing the numerical penalty scale by a factor of two. Because the optimization variable is one symmetric matrix, the selected edge support is symmetric by construction.

Neighborhood selection instead regresses each variable on all the others. For each \(j\), with centered data, it solves

$$ \hat{\beta}^{(j)} = \underset{\beta\in\mathbb{R}^{p-1}}{\operatorname{argmin}} \left\{ \frac{1}{2n}\sum_{i=1}^n \left(X_j^{(i)}-\sum_{k\ne j}\beta_k X_k^{(i)}\right)^2 +\lambda_j\sum_{k\ne j}|\beta_k| \right\}. $$

The estimate \(\hat{\beta}^{(j)}_k\) describes the fitted contribution of variable \(k\) in the regression for \(j\). In general, \(\hat{\beta}^{(j)}_k\) and \(\hat{\beta}^{(k)}_j\) need not agree in whether they are zero. An edge rule is therefore needed: the OR rule includes an edge if either regression selects it, while the AND rule includes it only if both do.

Theorem: In a centered, nondegenerate multivariate Gaussian distribution, the population regression coefficient of \(X_k\) in the regression of \(X_j\) on \(X_{-j}\) is \(-\Theta_{jk}/\Theta_{jj}\). Consequently, the population regression selects \(k\) as a neighbor of \(j\) exactly when \(\Theta_{jk}\ne0\).

Proof. The Gaussian density is proportional to \(\exp(-x^{\mathsf T}\Theta x/2)\). Fix \(x_{-j}\) and collect the terms involving \(x_j\) in the exponent's quadratic form. Those terms are

$$ \Theta_{jj}x_j^2+2x_j\sum_{k\ne j}\Theta_{jk}x_k = \Theta_{jj}\left(x_j+\frac{\sum_{k\ne j}\Theta_{jk}x_k}{\Theta_{jj}}\right)^2 -\frac{\left(\sum_{k\ne j}\Theta_{jk}x_k\right)^2}{\Theta_{jj}}. $$

Thus the conditional distribution of \(X_j\) given \(X_{-j}\) is normal with mean \(-\sum_{k\ne j}(\Theta_{jk}/\Theta_{jj})X_k\) and variance \(1/\Theta_{jj}\). Its regression coefficients are therefore \(-\Theta_{jk}/\Theta_{jj}\). Since \(\Theta_{jj}>0\), a coefficient is zero exactly when the corresponding off-diagonal precision entry is zero. \(\square\)

Worked Example: The Same Three-Variable Chain

Consider a Gaussian model with precision matrix

$$ \Theta= \begin{pmatrix} 2 & -0.6 & 0\\ -0.6 & 2 & -0.5\\ 0 & -0.5 & 2 \end{pmatrix}. $$

This matrix is positive definite: it is symmetric, and each diagonal entry exceeds the sum of the absolute off-diagonal entries in its row (\(2>0.6\), \(2>1.1\), and \(2>0.5\)). Its graph is the chain \(1-2-3\), since \(\Theta_{12}\) and \(\Theta_{23}\) are nonzero but \(\Theta_{13}=0\).

The population regression of \(X_1\) on \(X_2,X_3\) has coefficients \(-\Theta_{12}/\Theta_{11}=0.6/2=0.3\) and \(-\Theta_{13}/\Theta_{11}=0\). The regression of \(X_2\) on \(X_1,X_3\) has coefficients \(0.6/2=0.3\) and \(0.5/2=0.25\). The regression of \(X_3\) on \(X_1,X_2\) has coefficients \(0\) and \(0.5/2=0.25\). Both approaches target the same two population edges, though they parameterize them differently.

Symmetry Is Automatic in One Method, a Decision in the Other

The likelihood estimate has one entry for each unordered pair, so \(\hat{\Theta}_{jk}=\hat{\Theta}_{kj}\). Neighborhood selection has one coefficient from each of two different regressions for a candidate edge. Finite samples, separate tuning choices, and numerical optimization can produce different support decisions in those regressions, even though the corresponding population coefficients are both zero or both nonzero.

The OR and AND rules have a simple set relationship. Let \(A_j\) be the set of variables selected in the regression for \(j\). For each unordered pair \(\{j,k\}\), the OR rule selects it when \(k\in A_j\) or \(j\in A_k\); the AND rule selects it when both conditions hold. Therefore every AND edge is an OR edge, but not conversely. The OR rule is more inclusive; the AND rule is more conservative. Neither rule repairs an incorrect selection made by both regressions.

Worked Example: Combining Unequal Regression Supports

Suppose the three fitted regressions in the chain example give \(\hat{\beta}^{(1)}_2=0.18\), \(\hat{\beta}^{(2)}_1=0\), \(\hat{\beta}^{(2)}_3=0.21\), and \(\hat{\beta}^{(3)}_2=0.16\), with all other fitted coefficients zero. Treat nonzero coefficients as selected.

For edge \(\{1,2\}\), regression 1 selects the edge because \(0.18\ne0\), but regression 2 does not because its coefficient is zero. The OR rule includes \(\{1,2\}\); the AND rule excludes it. For edge \(\{2,3\}\), both regressions select it because \(0.21\ne0\) and \(0.16\ne0\), so both rules include it. Neither rule selects \(\{1,3\}\). The OR support is \(\{\{1,2\},\{2,3\}\}\), while the AND support is \(\{\{2,3\}\}\).

These are illustrative fitted values, not a claim that a particular data set or penalty must produce them. They show precisely how a method that fits separate regressions needs a declared symmetrization rule before it yields an undirected graph.

Computational Trade-Offs

Neighborhood selection solves \(p\) lasso problems, each with \(p-1\) candidate predictors. The regressions can be solved in parallel and can use standard lasso algorithms. This can be attractive when parallel computing is available or when the main goal is a list of candidate neighbors for each node. Its cost is not automatically negligible: for large \(p\), there are many regressions, and a dense implementation may repeatedly process much of the same data.

The graphical lasso solves one coupled positive-definite matrix optimization problem. Its iterates and matrix operations involve \(p\times p\) objects, and enforcing positive definiteness is part of the optimization. Joint estimation can be computationally demanding for large \(p\), although sparse structure, algorithm choice, and warm starts can substantially affect runtime.

A count of the number of regressions versus the number of matrix entries is not a reliable runtime comparison. Sample size, sparsity, stopping tolerances, software, available parallelism, and whether intermediate matrices are dense all matter. The practical comparison should measure runtime and memory for the intended dimensions and implementation.

Worked Example: Comparing Problem Dimensions

Suppose \(p=1000\) and \(n=300\). Neighborhood selection fits 1000 regressions, each with 999 candidate slopes. Across all regressions that is \(1000\times999=999{,}000\) slope positions. If each regression explicitly stores its own \(300\times999\) design matrix, the total number of stored entries would be \(1000\times300\times999=299{,}700{,}000\). An implementation can avoid this duplication by reusing the data matrix.

A dense graphical-lasso computation instead works with matrices having \(1000^2=1{,}000{,}000\) entries. A single double-precision \(1000\times1000\) matrix occupies about \(8{,}000{,}000\) bytes, or 8 MB in decimal units; several such matrices may be needed. These counts do not establish which method is faster: they identify different sources of cost and explain why implementation details matter.

Support-Recovery Guarantees Are Conditional

Support recovery means correctly identifying which off-diagonal entries of \(\Theta\) are zero and which are nonzero. It is distinct from estimating all entries accurately: a small estimation error does not by itself guarantee correct edge decisions when a true nonzero entry is very small. Both methods therefore need a separation condition, commonly expressed as a beta-min condition, as well as assumptions on the design or precision structure.

For the graphical lasso, standard support-consistency results for Gaussian models use conditions that include bounded eigenvalues, sufficiently sparse rows (with maximum degree \(d\)), an appropriate incoherence condition for the likelihood's Hessian, and a minimum nonzero precision entry large enough relative to the estimation error. A common sufficient scaling in such results is \(n\) of order at least \(d^2\log p\), up to constants and problem-specific conditions. The estimate is symmetric, so exact support recovery returns an undirected edge set directly.

For neighborhood selection, support-consistency results are typically applied to each conditional regression. They require suitable design regularity and an irrepresentability condition for the active predictors, along with sparsity and a beta-min condition for the nonzero regression coefficients. Under Gaussian assumptions and appropriate boundedness conditions, a common sufficient sample-size scaling is of order \(d\log p\), with constants depending on the design conditions. Recovery across all nodes also requires controlling errors across the collection of regressions and choosing a rule for combining their supports.

These are representative sufficient regimes, not universal thresholds or a guarantee that neighborhood selection is always more sample-efficient. The assumptions differ, constants can be consequential, and violations can invalidate the guarantees. The regression coefficients are scaled versions of precision entries, \(-\Theta_{jk}/\Theta_{jj}\); translating a minimum-signal condition between the methods requires control of the diagonal entries as well.

Key takeaway: The graphical lasso imposes symmetry through joint precision-matrix estimation; neighborhood selection obtains flexibility from separate regressions but must resolve asymmetric selections. Compare their guarantees under their own assumptions, and compare their computational cost for the actual problem rather than by estimator name alone.

Common Mistake

A common mistake is to say that the two methods must select exactly the same finite-sample graph because they encode the same Gaussian conditional independences. The population relationship does not imply equality of penalized estimates: the likelihood couples all precision entries and enforces positive definiteness, while neighborhood selection penalizes each regression separately. Their tuning parameters and finite-sample errors therefore need not yield identical supports. The correction is to distinguish the shared population graph from the different finite-sample procedures, and to report the neighborhood-selection symmetrization rule whenever that method is used.

Check Your Understanding

Use the objectives and the three-variable chain to answer the following.

  1. Why does the graphical-lasso support have symmetric edge decisions without a separate OR or AND rule?
  2. For the precision matrix in the worked example, what is the coefficient of \(X_3\) in the population regression of \(X_2\) on the other variables? Show the calculation.
  3. If only the regression of \(j\) on the other variables selects \(k\), which symmetrization rule includes the edge \(\{j,k\}\), and which excludes it?
  4. Name two assumptions, beyond sparsity, that commonly appear in support-recovery guarantees for these methods.
  5. Why do the order comparisons \(d\log p\) and \(d^2\log p\) not establish that neighborhood selection will always outperform graphical lasso?
Clinical Biostats