Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2020 Oct 7.
Published in final edited form as: J Comput Graph Stat. 2019 Jun 19;28(4):767–777. doi: 10.1080/10618600.2019.1609976

An Expectation Conditional Maximization approach for Gaussian graphical models

Zehang Richard Li 1, Tyler H McCormick 2
PMCID: PMC7540244  NIHMSID: NIHMS1547739  PMID: 33033426

Abstract

Bayesian graphical models are a useful tool for understanding dependence relationships among many variables, particularly in situations with external prior information. In high-dimensional settings, the space of possible graphs becomes enormous, rendering even state-of-the-art Bayesian stochastic search computationally infeasible. We propose a deterministic alternative to estimate Gaussian and Gaussian copula graphical models using an Expectation Conditional Maximization (ECM) algorithm, extending the EM approach from Bayesian variable selection to graphical model estimation. We show that the ECM approach enables fast posterior exploration under a sequence of mixture priors, and can incorporate multiple sources of information.

Keywords: spike-and-slab prior, sparse precision matrix, copula graphical model

1. Introduction

For high dimensional data, graphical models (Lauritzen, 1996) provide a convenient characterization of the conditional independence structure amongst variables. In settings where the rows in the data matrix X∈Rn×p follow an i.i.d multivariate Gaussian distribution, Normal(0, Σ), the zeros in off-diagonal elements of the precision matrix Ω = Σ−1 correspond to pairs of variables that are conditionally independent. Standard maximum likelihood estimators of the sparse precision matrix behave poorly and do not exist when n < p , leading to extensive work on algorithms (and their properties) for estimating Ω (e.g., Meinshausen and Bühlmann, 2006; Yuan and Lin, 2007; Friedman et al., 2008; Rothman et al., 2008; Friedman et al., 2010; Cai et al., 2010; Witten et al., 2011; Mazumder and Hastie, 2012, etc.).

In the Bayesian literature, structure learning in high-dimensional Gaussian graphical models has also gained popularity in the past decade. Broadly speaking, two main classes of priors have been studied for inference of the precision matrix in Gaussian graphical models, namely the G-Wishart prior, and shrinkage priors. The G-Wishart prior (Roverato, 2002) extends the Wishart distribution by restricting its support to the space of positive definite matrices with zeros specified by a graph. It is attractive in Bayesian modeling due to its conjugacy with the Gaussian likelihood. Posterior inference under the G-Wishart distribution, though computationally challenging, can be carried out via various algorithms, including shotgun stochastic search (Jones et al., 2005), reversible jump MCMC (Lenkoski and Dobra, 2011; Dobra et al., 2011; Wang and Li, 2012), and birth-death MCMC (Mohammadi et al., 2017), etc. More recently, shrinkage priors for precision matrices have gained much popularity, as they provide Bayesian interpretations to some of the widely used penalized likelihood estimators. As a Bayesian analogy to graphical lasso (Yin and Li, 2011; Witten et al., 2011; Mazumder and Hastie, 2012), Bayesian graphical lasso has been proposed in Wang et al. (2012) and Peterson et al. (2013). Wang (2015) later draws the connection between the Bayesian variable selection (George and McCulloch, 1993) and Bayesian graphical model estimation, and proposed a new class of spike-and-slab prior for precision and covariance matrices. This class of priors was also later explored in Peterson et al. (2015) to estimate the dependence structures among regression coefficients, and in Lukemire et al. (2017) to estimate multiple networks. This type of spike-and-slab prior enables a fast block Gibbs sampler that significantly improves the scalability of the model, but such flexibility is at the cost of prior interpretability since the implied marginal distribution of each elements in the precision matrix is intractable due to the positive definiteness constraint. Wang (2015) provides some heuristics and discussions on prior choices, but it is still not clear how to choose the hyperparameters for practical problems or how those choices affect parameter estimation.

In this paper, we introduce a new algorithm to estimate sparse precision matrices with spike-and-slab priors (Wang, 2015) using a deterministic approach, EMGS (EM graph selection), based on the Expectation Conditional Maximization (ECM) algorithm (Meng and Rubin, 1993). We also show that a stochastic variation of the EMGS approach can be extended to copula graphical model estimation. Our work extends the EM approach to variable selection (EMVS) (Ročková and George, 2014) to general graphical model estimation.

The proposed ECM algorithm is closely connected to frequentist penalized likelihood methods. Similar to the algorithms with concave penalized regularization, such as SCAD (Fan et al., 2009), the spike-and-slab prior used in our method yields sparse inverse covariance matrix where large values are estimated with less bias (see Figure 1). Similar work has been concurrently developed by Deshpande et al. (2017) using spike-and-slab lasso prior in the multivariate linear regression models. The proposed approach in this paper differs from Deshpande et al. (2017) in two ways: First, we use a mixture of Gaussian distributions instead of the Laplace distributions as the prior on the off-diagonal elements of the precision matrix, which allows us to construct a closed-form conditional maximization step using coordinate descent, rather than relying on additional algorithms solving a graphical lasso problem at each iteration. Second, and more importantly, our work also differs in scope, as we extended the algorithm to non-Gaussian outcomes, the scenarios where informative priors exist, and to incorporate the imputation of missing values.

Fig. 1.

Fig. 1

Comparing partial correlation path using EMGS and graphical lasso, on a 10-node graph. The red dashed line at 0.5 is the true value for the non-zero negative partial correlations. The non-zero off-diagonal elements are plotted with blue solid lines. The vertical line indicates the tuning parameter selected with cross-validation.

The rest of the paper is organized as follows: In Section 2, we describe the spike-and-slab prior we use for the precision matrix. Section 3 presents the main ECM framework and algorithms for Gaussian graphical model estimation, and Section 4 proposes the extension to the copula graphical model and the modified stochastic ECM algorithm. Then in Section 5 we explore the incorporation of informative prior knowledge into the model. We discuss briefly about single model selection in Section 6. Section 7 examines the performance of our method through numerical simulations. Section 8 and 9 further illustrate our model using two examples from scientific settings. Section 8 compares our method and alternatives in terms of structure learning and prediction of missing values in a dataset of hourly bike/pedestrian traffic volumes along a busy trail in Seattle. Section 9 discusses our method in the context of learning latent structures among binary symptoms from a dataset of Verbal Autopsy (VA) surveys, which are used to estimate a likely cause of death in places where most deaths occur outside of medical facilities. Finally, in Section 10 we discuss the limitations of the approach and provide some future directions for improvements.

2. Spike-and-slab prior for Gaussian graphical model

First, we review the Stochastic Search Structure Learning (SSSL) prior proposed in Wang (2015) for sparse precision matrices. Consider the standard Gaussian graphical model setting, with observed data X∈Rn×p. Each observation follows a multivariate Gaussian distribution, i.e., xi ~ Normal(0, Ω−1) , where xi is the i-th row of the X, and Ω is the precision matrix. Given hyperparameter V0, V1, and πδ, the prior on Ω is defined as:

p(Ω∣δ)=Cδ−1∏j<kNormal(ωjk∣0,vδjk2)∏jExp(ωjj∣λ∕2)1Ω∈M+ (1)
p(δ∣πδ)∝Cδ∏j<kπδδjk(1−πδ)1−δjk (2)

where δjk are latent indicator variables, and πδ is the prior sparsity parameter. The Cδ term is the normalizing constant that ensures the integration of p(Ω ∣ δ) on M+ is one. This formulation places a Gaussian mixture prior on the off-diagonal elements of Ω , similar to the spike-and-slab prior used in the Bayesian variable selection literature. By setting ν1 ≫ ν0, the mixture prior imposes a different strength of shrinkage for elements drawn from the “slab” (V1) and “spike” (V0) respectively. This representation allows us to shrink elements in Ω to 0 if they are small in scale, while not biasing the large elements significantly.

The spike-and-slab formulation of Ω provides an efficient computation strategy via block Gibbs sampling. However, a main limitation is that parameter estimation can be sensitive to the choice of prior parameters. Unlike the variable selection problem in regression, information on the scale of the elements in the precision matrix typically cannot be easily solicited from domain knowledge. As shown in Wang (2015), there is no analytical relationship between the prior sparsity parameter πδ and the induced sparsity from the joint distribution. This complexity results from the positive definiteness constraint on the precision matrix. Thus even if the sparsity of the precision matrix is known before fitting the model, additional heuristics and explorations are required to properly select the prior πδ. Similarly, the induced marginal distribution of the elements in Ω is intractable as well. The supplementary material contains an simple illustration of such differences. Thus although the fully Gibbs sampler is attractive for high dimensional problems, in practice researchers will usually need to evaluate the model fit under multiple prior choices, adding substantially to the computational burden.

3. Fast deterministic algorithm for graph selection

Consider spike-and-slab priors on Ω as described in the previous section and let the hyperprior on the sparsity parameter to be πδ ~ Beta (a, b) , the complete-data posterior distribution can be expressed as

p(Ω,δ,πδ∣X)=p(X∣Ω)p(Ω∣δ,v0,v1,λ)p(δ∣πδ)p(πδ∣a,b),

In order to perform posterior sampling in the fully Bayesian fashion, the block Gibbs algorithm in Wang (2015) reduces the problem to iteratively sampling from (p − 1) -dimensional multivariate Gaussian distributions for each column of Ω , which can still be computationally expansive for large p or if the sampling needs to be repeated for multiple prior setups. Inspired by the EM approach for variable selection proposed in Ročková and George (2014), we propose a EMGS algorithm to identify the posterior mode of p(Ω , πδ ∣ X) directly without the full stochastic search. We iteratively maximize the following objective function

Q(Ω,πδ∣Ω(l),πδ(l))=Eδ∣Ω(l),πδ(l),X(logp(Ω,δ,πδ∣X)∣Ω(l),πδ(l),X)=constant +n2log∣Ω∣−12tr(XTXΩ)−12∑j<kωjk2E⋅∣⋅[1v02(1−δjk)+v12δjk]−λ2∑jωjj+∑j<klog(πδ1−πδE⋅∣⋅[δjk])+p(p−1)2log(1−πδ)+(a−1)log(πδ)+(b−1)log(1−πδ)

where E·∣·[·] denotes Eδ∣Ω(l),πδ(l),X[⋅]. This objective function can be easily estimated using ECM algorithm, and the algorithm can naturally handle missing values in the E-step. We present the details of the proposed algorithm in the next subsection and then compare the algorithm with the coordinate ascent algorithm for solving graphical lasso problem in Section 3.2.

3.1. The ECM algorithm

The E-step

We start by computing the conditional expectations Eδ∣Ω(l),πδ(l),X[δjk] and Eδ∣Ω(l),πδ(l),X[1ν02(1−δjk)+ν12δjk]. This proceeds in the similar fashion as the standard EMVS,

Eδjk∣Ω(l),πδ(l),X[δjk]=pjk∗≡ajkajk+bjk, (3)

where ajk=p(ωjk∣δjk=1)πδ(l) and bjk=p(ωjk∣δjk=0)(1−πδ(l)), and

Eδ∣Ω(l),πδ(l),X[1v02(1−δjk)+v12δjk]=1−pjk∗v02+pjk∗v12≡djk∗. (4)

Modified E-step with missing data

When missing data exists in the data matrix X, the E-step can be easily extended to find the expectation of the missing values as well. In that case, the conditional expectations of δ remains unaffected, and we only need to additionally obtain the expectation for the XT XΩ term as

Eδ,X∣Ω(XTXΩ)=Eδ,X∣Ω((∑inxixiT)Ω)=(∑inExi,m∣xi,o,Ω(xixiT))Ω.

where xi,o and xi,m denote the observed and missing cells in xi respectively. Without loss of generality, if we let xiT=[xi,oT,xi,mT] , we know

Exi,m∣xi,o,Ω(xi,m)=−Ωoo−1Ωmoxi,oExi,m∣xi,o,Ω(xixiT)=E⋅∣⋅(xi)E⋅∣⋅(xi)T+(0oo0om0moΩmm−1)

where Ωo o, Ωm o and Ωm m are the corresponding submatrices of Ω .

The CM-step

After the E-step is performed, the CM-step performs the maximization of (Ω, πδ) in a coordinate ascent fashion. First, the maximization of πδ has the close-form solution

πδ(l+1)=(a+∑j<kδjk−1)∕(a+b+p(p−1)∕2−2). (5)

The joint maximization of Ω has no closed-form solution, but if we denote

Ω=(Ω11ω12ω12Tω22)XTX=(S11s12s12Ts22),

Wang (2015) showed that the conditional distribution of the last column satisfies

ω12∼Normal(−Cs12,C),C=((s22+λ)Ω−1+diag(vδ12))−1,

where νδ12 are the inclusion indicators for ω12 and

ω22−ω12TΩ11−1ω12∼Gamma(1+n2,λ+s222).

This enables us to perform conditional maximization (Meng and Rubin, 1993) for the last column holding the rest of Ω fixed. That is, starting with Ω(l+1) = Ω(l) , we iteratively permute each column to the last and update it with

ω12(l+1)=((s22+λ)(Ω11(l+1))−1+diag(djk∗))−1s12 (6)

and

ω22(l+1)=(ω12(l+1))T(Ω11(l+1))−1ω12(l+1)+nλ+s22. (7)

Finally, be iterating between the E-step and the CM-steps until convergence, we obtain our estimator of the posterior mode Ω and π^δ .

3.2. Connection to the graphical lasso

This column-wise update resembles the penalized likelihood approach in frequentist settings. In the graphical lasso algorithm (Mazumder and Hastie, 2012) for example, the goal is to minimize the l1-penalized negative log-likelihood:

f(Ω)=−log∣Ω∣+tr(SΩ)+‖Ω‖1,

which can be solved via a block coordinate descent that iteratively solves the lasso problem

ω12=argminα∈Rm−1αTΩ11−1α+αTs12+λ‖α‖1.

The updates at each iteration in the EMGS framework solve the optimization problem for ω12 under an adaptive ridge penalty

ω12=arg minα∈Rm−1αTΩ11−1α+αTs12+∑j=1m−1dj∗αj2.

The penalty parameters dj∗ are the corresponding djk∗ estimated from the E-step and are informed by data. That is, instead of choosing a fixed penalty parameter for all precision matrix elements, the EMGS approach learns the element-wise penalization parameter at each iteration based on the magnitude of the current estimated Ω and the hyperpriors placed on θ. Thus, as long as the signal from data is not too weak, the EMGS procedure can estimate large elements in the precision matrix with much lower bias than graphical lasso, as the adaptive penalties associated with large ω jk are small. To illustrate the diminished bias, we fit the EMGS algorithm to a simple simulated example, where n = 100, p = 10 and Ω is constructed by ω jj = 1, and ω jk = 0.5 if ∣ j − k ∣= 1 . We fix ν1 = 100 and compare the regularization path with various V0 values with graphical lasso, as shown in Figure 1. This simple example illustrates two main advantages of EMGS. First, it identifies the set of non-zero elements quickly and estimates the partial correlations correctly around 0.5 under all values of V0. The clear separation of the truly non-zero edges regardless of V0 also makes it straightforward to threshold ∣ ω jk ∣ to recover the true graph structures. Graphical lasso, on the other hand, shrinks the non-zero partial correlations significantly under large penalties, and thus lead to worse graph selection if the tuning parameter is not properly chosen. Second, In order to select and compare a single model, we also identified the optimal tuning parameter using 5-fold cross validation for both methods, and it can be seen that the graphical lasso estimator suffers from the weak penalty and contains more noise than using EMGS.

4. ECM algorithm for copula graphical models

In this section, we extend the framework to non-Gaussian data with Gaussian copulas (Nelsen, 1999). Denote the observed data X∈Rn×p , and each of the p variables could be either continuous, ordinal, or binary. We model each observation as following a Gaussian copula model, i.e., there exists a set of monotonically increasing transformations f = {f1, . . . , fp} such that Z = f (X) ~ Normal(0, R), where R is a correlation matrix. Following the same setup as before, we let R be the induced correlation matrix from Ω with the spike-and-slab prior defined as before, i.e.,

R[j,k]=Ω[j,k]−1∕Ω[j,j]−1Ω[k,k]−1.

The explicit form of f is typically unknown, thus we impose no restrictions on the class of marginal transformations. Instead, we follow the extended rank likelihood method proposed in Hoff (2007), decomposing the complete data likelihood into

p(X∣R,f)=Pr(Z∈S∣R)p(X∣Z∈S,R,f), (8)

where S is the support of Z induced by the ranking of X defined by

Sij=[max{zi′j′:xi′j′<xij},min{zi′j′:xi′j′>xij}].

Since our goal is to recover the structure in Ω , we can estimate the parameters using only the first part of (8) without estimating the nuisance parameter f. Moreover, since the latent Gaussian variable Z is constructed to be centered at 0 , the rank likelihood remains unchanged when multiplying columns of X by any constant. Thus, inference could be performed without restricting R to be an correlation matrix (Hoff, 2007). In this way, the target function to maximize is the extended rank likelihood function:

p(Ω,δ,πδ,Z∣X)=p(Z∈S∣Ω,S)p(Ω∣δ)p(δ∣πδ).

This is immediately analogous to the EMGS framework with latent Gaussian variable Z as additional missing data. That is, we maximize the objective function defined as

Q(Ω,πδ∣Ω(l),πδ(l))=Eδ,Z∣Ω(l),πδ(l),X(logp(Ω,δ,πδ,Z∣X)∣Ω(l),πδ(l),X)=constant+Q1−12∑j<kωjk2E⋅∣⋅[1ν02(1−δjk)+ν12δjk]−λ2∑iωii+∑j<klog(πδ1−πδE⋅∣⋅[δjk])+p(p−1)2log(1−πδ)+(a−1)log(πδ)+(b−1)log(1−πδ)

where E·∣·[·] denotes Eδ,Z∣Ω(l),πδ(l),X[⋅], and the only term different from the standard EMGS objective function is

Q1=EZ∣Ω(l),πδ(l),X(logp(Z∣Ω,S))=constant+n2log∣Ω∣−12EZ∣Ω(l),X[tr(ZTZΩ)].

Exact computation for this expectation is intractable as z ∣ x is a Gaussian random matrix where each row is conditionally Gaussian and the within column ranks are fixed by S. Alternatively, posterior samples of Z are easy to obtain from the conditional truncated Gaussian distribution (Hoff, 2007), so we can adopt stochastic variants of the EM algorithm (Wei and Tanner, 1990; Delyon et al., 1999; Nielsen, 2000; Levine and Casella, 2001). We present one such algorithm in the subsequent subsection.

The SAE-step for non-Gaussian variables

Among the many variations of the EM with stochastic approximation, we discuss estimation steps using stochastic approximation EM (SAEM) algorithm (Delyon et al., 1999). SAEM calculates the E-step at each iteration as a weighted average of the current objective function and new stochastic samples using a decreasing sequence of weights for the stochastic averages, in a similar fashion as simulated annealing. In the stochastic E-step, we compute an additional term Q(Ω(l)) = EZ∣Ω(l),X[ZT Z] as

Q(Ω(l))=(1−tk)Q(Ω(l))+tkBk∑b=1BkZ(b)TZ(b)

where tk is an decreasing step-size sequence such that ∑tk=∞,∑tk2<∞ ,and Bk is the number of stochastic samples drawn at each iteration. The rank constrained Gaussian variables can be drawn using the same procedure described in Hoff (2007).

The CM-step then proceeds as before, except that the empirical cross-product matrix S is replaced by its expectation Q(Ωk). For the numerical examples in this paper, we set fixed Bk and tk = 1/k. Other weighting schemes could also be explored and may yield different rates of convergence.

5. Incorporating edge-wise informative priors

The exchangeable beta-binomial prior discussed so far assumes no prior structure on Ω and prior sparsity controlled by a single parameter for all off-diagonal elements. For many problems in practice, informative priors may exist for pairwise interactions of the variables. For example, Peterson et al. (2013) infers cellular metabolic networks based on prior information in the form of reference network structures. Bu and Lederer (2017) improve estimation of brain connectivity network by incorporating the distance between regions of the brain. In problems with small sample sizes, such prior information can help algorithms identify the high probability edges more quickly and provide more interpretable model. More generally, we can consider a situation where certain groupings exist among variables. For example, when the variables represent log sales of p products on the market, one might expect that the products within the same brand are more likely to be more strongly correlated. If we define a fixed index function gj ∈ {1, . . . , G}, j ∈ {1, . . . , p}, where G denotes the total number of groups, we can modify the prior into

p(Ω∣δ)=Cδ−1∏j<kNormal(ωjk∣0,νδjk2τgjgk)∏jExp(ωjj∣λ∕2)1Ω∈M+p(δ∣πδ)∝Cδ∏j<kπδδjk(1−πδ)1−δjkp(τ)=∏g<g′Gamma(aτ,bτ)

The block-wise rescaling parameter τgjgk of the variance parameter allows us to model within- and between-block elements of Ω adaptively with different scales. This is particularly useful in applications where block dependence structures have different strengths. Take the example of sales of products for example. Products within the same brand or category are more likely to be conditional dependent, yet the within group sparsity and the scale of the off-diagonal elements may differ for different brands. In the special case where the full edge-level prior probabilities of connection are known, as considered by Peterson et al. (2013) and Bu and Lederer (2017), we can also equivalently let G = P and parameterize p(τ) with the edge-specific priors.

The ECM algorithm discussed above only requires minor modifications to include the additional scale parameter so that the penalties for each block are allowed to vary (e.g., Ishwaran and Rao, 2003; Wakefield et al., 2010). The new objective function could be similarly estimated with ECM algorithm by including this additional update in the CM-step:

τgg′(l+1)=aτ−1+12∑j<k1j,k,g,g′bτ+12∑j<kωjk2djk∗1j,k,g,g′, (9)

where 1j,k,g,g′ = 1 if gj = g,gk = g′, or gj = g′,gk = g. To illustrate the behavior of this block rescaled prior, we simulate data with n = 200, p = 60, with the precision matrix to be block diagonal with three equal-sized blocks. We simulate the three block sub-matrices of Ω to correspond to random graphs with sparsity 0.4, as described in Section 7. Figure 2 shows the effect of the structured prior. It can be seen that the estimated 1∕τ^gg′, are much larger where g = g′, which leads to weaker shrinkage effects for within cluster cells. Accordingly the resulting graph using the structured prior shows fewer false positives for the off-diagonal blocks, and better discovery of the true positives within blocks.

Fig. 2.

Fig. 2

Comparing the estimated and true precision matrix using graphical lasso, EMGS with exchangeable prior, and with structured prior for block-wise rescaling. In each plot of the precision matrix comparison, the upper triangle shows the estimated matrix and the lower triangle shows the true precision matrix. All the tuning parameters are selected by cross-validation. The presented edges are further thresholded to have the same number of edges compared to the true graph. The forth plot shows the change of 1∕τ^gg, over different choices of V0. The blocks are labeled 1 to 3 from top left to bottom right.

6. Posterior summary of the ECM output

One of the main computational advantage of the ECM approach over stochastic search is that the posterior mode is fast to obtain. Thus it provides a more efficient alternative to experimenting multiple choices of priors with full MCMC, as discussed before. In practice, we fix V1 to be a large constant and vary the choice of V0 to reflect different levels of shrinkage on the off-diagonal elements of Ω that are close to 0. Intuitively, a larger V0 increases the probability of small parameters being drawn form the spike distribution and thus leads to sparse models. By fitting a sequence of V0, we can create regularization plots, e.g., Figure 1, similar to that used in penalized regression literature to visually examine the influence of the prior choices. Choosing a single tuning parameter V0 is possible with standard model selection criterion, such as AIC (Akaike, 1998), BIC (Schwarz et al., 1978), RIC (Lysen, 2009), StARS (Liu et al., 2010), etc., or K-fold cross validation using the average log-likelihood of the validation sets. In the rest of the paper, we select a single tuning parameter V0 using 5-fold cross validation. In the case of non-Gaussian data or data with missing values, the likelihood on test data can be evaluated by the average of the expected covariance 1m∑ν0EXtest∣Xtrain,ν0(XtestTXtest) under the sequence of m tuning parameters. This term can be easily calculated by plugging in the test data in the E-step of the algorithm. It is worth noting that since the mixture of Gaussian prior does not lead to exact sparsity, in scenarios where graph structure is of direct interest, we further determining the graph structure by thresholding the off-diagonal elements, ∣ ω jk ∣ , as the posterior inclusion probability pjk∗ conditional on ωjk is a monotone function of ωjk.

7. Simulation

We follow a similar simulation setup to Mohammadi et al. (2017) with different graph structures. We compare the performance of our method with graphical lasso for Gaussian data and graphical lasso with nonparanormal transformation (Liu et al., 2009), and the rank-based extension proposed in Xue et al. (2012) for non-Gaussian data. We consider the following sparsity patterns in our simulation:

  • AR(1): A graph with σ jk = 0.7 ∣j−k∣.

  • AR(2): A graph with ω jj = 1, ω j,j−1 = ω j−1,j = 0.5, and ω j,j−2 = ω j−2,j = 0.25, and ω jk = 0 otherwise.

  • Random: A graph in which the edge set E is randomly generated from independent Bernoulli distributions with probability 0.2 and the corresponding precision matrix is generated from Ω ~ WG (3, I p).

  • Cluster: A graph in which the number of clusters is max{2,[p / 20]}. Each cluster has the same structure as a random graph. The corresponding precision matrix is generated from Ω ~ WG (3, I p).

We simulate data with sample size n ∈ {100, 200, 500}, and of dimension p ∈ {50, 100, 200}, using the each types of precision matrices above that are rescaled to have unit variances. We generate both Gaussian and non-Gaussian data for each configuration. For the non-Gaussian case, we perform the marginal transformation of the latent Gaussian variables so that the variables follow a marginal distribution of Poisson(θ), with θ = 10 or 2.

For each generated graph, we fit our ECM algorithm with a sequence of 40 increasing V0’s, and fix ν1 = 100, λ = 1, and a = b = 1. We select the final V0 using 5-fold cross validation. We also select the tuning parameter for graphical lasso using cross-validation (GL-CV). We then evaluate the bias of EMGS and graphical lasso estimator of precision matrices compared to the truth in terms of the matrix Frobenius norm, ‖Ω−Ω‖F=∑j∑k∣ω^jk−ωjk∣2. Because of the excess biased induced by a single penalty parameter, cross-validation tend to choose small penalties for graphical lasso, leading to massive false positives in edge discovery. Thus to allow a fair comparison, we compare the area under the ROC curve (AUC) by increasingly thresholding elements in Ω obtained by cross-validation for both EMGS and graphical lasso. Besides selecting tuning parameter by cross-validation for graphical lasso and the nonparanormal transformed estimator, we also consider Ω selected using two popular model selection criterion: rotation information criterion (GL-RIC) (Lysen, 2009), and stability approach (GL-StARS) (Liu et al., 2010). For the copula graphical model, we also compare the rank-based extension proposed in Xue et al. (2012) of graphical lasso (GL-rank) with the tuning parameter selected with cross validation.

The simulation results are summarized in Figure 3 and 4. Less bias in parameter estimation are indicated by smaller F-norm values and better graph learning is indicated by larger AUC values. In almost all cases of our simulation study, we observe significantly reduced biases in the estimator from EMGS estimators, as well as better graph selection performance in most cases. We also include additional comparisons in the supplementary material that examine the bias in matrix spectral norms, the F1-score for graphical lasso estimators at the selected penalty levels, as well as the F1-score when all estimators are thresholded to have the correct number of edges.

Fig. 3.

Fig. 3

Comparing estimation of the precision matrix for both the Gaussian and Gaussian copula case under different simulation setups. Five estimators are considered: the proposed method (EMGS), Gaussian and nonparanormal graphical lasso with penalty selected by cross validation (GL-CV), RIC (GL-RIC), stability approach (GL-StARS), and rank-based extension of graphical lasso proposed in Xue (2012) selected by cross validation for the copula case (GL-rank). EMGS shows lower bias in almost all cases.

Fig. 4.

Fig. 4

Comparing estimation of the graph structure for both the Gaussian and Gaussian copula case under different simulation setups. EMGS shows higher AUC in almost all cases.

All computation are conducted in the R statistical programming environment (R Core Team, 2018). The graphs are simulated using the R packages BDgraph (Mohammadi and Wit, 2015) and tmvtnorm (Wilhelm and G, 2015). EMGS is implemented with the Rcpp package (Eddelbuettel and François, 2011). The graphical lasso estimation are implemented with the R package huge (Zhao et al., 2012) and glasso (Friedman et al., 2018). Visualizations are created with ggplot2 (Wickham, 2016) and corrplot (Wei and Simko, 2017). The AUC values are calculated with the ROCR package (Sing et al., 2005).

8. Traffic on the Burke Gilman Trail

In this section we consider graph estimation and prediction for the hourly traffic on the Burke Gilman Trail in Seattle. We use the hourly counts of bikes and pedestrians traveling on the trail through north of NE 70th Street using data from the Seattle Open Data program1.

The data are captured by sensors that detect both bikes and pedestrians, and their directions of travel. At each hour, the sensors record four counts of travelers: by bike or foot, and towards north or south. We used all the data from 2014 that contain n = 365 observations of 24 × 4 = 96 measurements. We first performed a log transformation on the raw counts, and subtracted the hourly average from the log counts. The data are reformatted from the original format with the R package reshape2 (Wickham, 2007).

We estimated the joint distribution of the 96 measurements using EMGS with both the beta-binomial prior and the group-wise structured priors, with 4 groups defined by the mode of travel/direction pairs. Figure 5 shows the estimated graphs and the induced covariance matrices. Graphical lasso estimates many edges with small ωjk, while EMGS allows us to pick out large ωjk, especially those that correspond to the edges between the number of pedestrians traveling within the same hour in opposite directions, and the number of bikes traveling in adjacent hours in the same direction during morning and afternoon commute hours. In this analysis, the structured priors lead to a slightly more concentrated set of entires, but both priors lead to similar graph estimation for EMGS. We also compare the performance of predicting missing values using Ω^, by randomly removing half of the measurements on half of the days. The missing observations can be imputed by the EMGS algorithm described in Section3, and similarly we can estimate Ω^ by either the empirical covariance matrix or from graphical lasso using only the observed variables. We compare the predictive performance by the Mean Squared Error defined as 1nmiss∑i,j(Xij−X^ij)2.

Fig. 5.

Fig. 5

Comparing the estimated precision matrices from cross validation. The blocks correspond to travel mode and direction pairs. From upper left to lower right: southbound pedestrians, northbound pedestrians, southbound bikes, and northbound bikes. Within each block, the entries correspond to 24 hourly intervals starting from midnight. Top row: estimated covariance matrix. Edges with less than 0.5 probability of being from the slab distributions in EMGS output, and exact zeros in graphical lasso output are marked with gray color. Bottom row: estimated precision matrix with highlighted graph selection.

Intuitively, predictions based on penalized estimators that are over shrunk towards zero is likely to increase bias, while with little penalization, the estimated covariance matrix is more likely to be noisy, as shown in Figure 5. Table 1 shows the average MSE and their standard deviations using different estimators over 100 replications, and it confirms the improved prediction performance from EMGS compared to graphical lasso.

Table 1.

Average and standard deviation of the mean squared errors from 100 cross-validation experiments.

EMGS
exchangeable structured GLasso Empirical
Average MSE 0.2828 0.2809 0.4262 0.4602
Standard deviation of the MSEs 0.0052 0.0050 0.0064 0.0096

9. Symptom structure in Verbal Autopsies

In this section, we use EMGS to learn the latent dependence structure among symptoms reported on verbal autopsy (VA) surveys. VA surveys collect information about a deceased person’s health history through an interview with caregivers or family members of the decedent. VAs are widely used in countries without full-coverage civil registration and vital statistics systems. About 2/3 of deaths worldwide occur in such settings (Horton, 2007). VA data consist primarily of binary indicators of symptoms and conditions leading to the death (e.g. Did the decedent have a fever? Was there pain in the lower belly?).

Several algorithms have been proposed to assign causes of death using such binary input (Byass et al., 2012; Serina et al., 2015; McCormick et al., 2016), but these algorithms typically assume that the binary indicators are independent. We use data from the Physicians Health Metrics Research Consortium (Murray et al., 2011). We created 107 variables from the binary questions in the dataset of 7, 841 adults using the R package openVA (Li et al., 2019), and removed the variables with more than 50% of values missing, leaving us with 90 indicators. There are many missing values even after reducing the number of indicators, so there is only one observation with answers for all 90 indicators. This high proportion of missing data makes it difficult to directly apply different types of rank-based estimators for the latent precision matrix that only uses complete observations. Instead, we focus on exploration of the joint distribution of the binary variables under the latent Gaussian framework described in Section 4. We first rescale the dataset by the marginal means of the indicators to remove the different levels of prevalence among the symptoms. We then apply the EMGS algorithm to the rescaled dataset with the same hyperpriors used in Section 7, and select the final V0 using cross validation. The resulting conditional dependence graph with 46 indicators and 42 edges is shown in Figure 6, where several main symptom pairs (e.g., fever and sweating, stroke and paralysis, etc.) and symptom groups (e.g., indicators related to pregnancy) are discovered, indicating the existence of some symptom clusters that are strongly dependent in the dataset. Further incorporation of the ECM framework into a classification framework could improve accuracy over existing methods for automatic cause-of-death assignment. The visualization of the symptom network is made with R package network (Butts, 2008).

Fig. 6.

Fig. 6

Estimated edges between the indicators in the VA dataset. The width of the edges are proportional to the value of ∣ωjk∣. Red edges correspond to negative values of ωjk, or positive partial correlations. Black edges correspond to positive values of ωjk, or negative partial correlations.

10. Discussion

We propose a deterministic approach for graphical model estimation that builds upon the recently proposed class of spike-and-slab prior for precision matrices. By drawing the connection between the conditional maximization updates under the spike-and-slab prior and the graphical lasso algorithm, we illustrate that EM type algorithm can be used to efficiently obtain posterior modes of the precision matrix under adaptive penalization. It also allows us to build richer class of models that incorporate prior information and extend to copula graphical models. The computational speed of the EGMS algorithm allows us to explore multiple prior choices without fitting many time-consuming MCMC chains. However, it also comes at the price of two potential limitations. First, characterization of posterior uncertainty is nontrivial due to the deterministic nature of the algorithm. As in Ročková and George (2014), one may choose to fit a Bayesian model “locally” from the posterior mode obtained by the ECM procedure, though this may still be challenging in high-dimensional problems. Another limitation is that like the EM algorithm, ECM algorithm also converges only to local modes, thus the precision matrix initialization is critical. In this paper, we used the same initialization as the P-Glasso algorithm described in Mazumder and Hastie (2012). Other heuristics for initialization and warm start may also be explored. Finally, multimodal posteriors are common with spike-and-slab priors. The proposed method could be extended to introduce perturbations in the algorithm, possibly drawing from the variable selection literature (see, e.g., Ročková and George, 2014; Rocková, 2016).

Replication code for the numerical examples in this article is available at https://github.com/richardli/EMGS.

Supplementary Material

Supp 1

Acknowledgments

We would like to thank Jon Wakefield, Sam Clark, Johannes Lederer, Adrian Dobra, Daniela Witten, and Matt Taddy for helpful discussions and feedback. The authors gratefully acknowledge grants SES-1559778 and DMS-1737673 from the National Science foundation, and grant number K01 HD078452 and R01 HD086227 from the National Institute of Child Health and Human Development (NICHD).

Footnotes

Contributor Information

Zehang Richard Li, Department of Biostatistics, Yale School of Public Health.

Tyler H. McCormick, Departments of Statistics & Sociology, University of Washington

References

  1. Akaike H (1998). Information theory and an extension of the maximum likelihood principle In Selected Papers of Hirotugu Akaike, pages 199–213. Springer. [Google Scholar]
  2. Bu Y and Lederer J (2017). Integrating additional knowledge into estimation of graphical models. arXiv preprint arXiv: 1704.02739. [DOI] [PubMed] [Google Scholar]
  3. Butts CT (2008). network: a package for managing relational data in r. Journal of Statistical Software, 24(2). [Google Scholar]
  4. Byass P, Chandramohan D, Clark SJ, D’Ambruoso L, Fottrell E, Graham WJ, Herbst AJ, Hodgson A, Hounton S, Kahn K, et al. (2012). Strengthening standardised interpretation of verbal autopsy data: The new InterVA-4 tool. Global Health Action, 5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Cai TT, Zhang CH, and Zhou HH (2010). Optimal rates of convergence for covariance matrix estimation. Annals of Statistics, 38(4):2118–2144. [Google Scholar]
  6. Delyon B, Lavielle M, and Moulines E (1999). Convergence of a stochastic approximation version of the EM algorithm. Annals of Statistics, 27(1):94–128. [Google Scholar]
  7. Deshpande SK, Rockova V, and George EI (2017). Simultaneous variable and covariance selection with the multivariate spike-and-slab lasso. arXiv preprint arXiv: 1708.08911. [Google Scholar]
  8. Dobra A, Lenkoski A, and Rodriguez A (2011). Bayesian inference for general Gaussian graphical models with application to multivariate lattice data. Journal of the American Statistical Association, 106(496): 1418–1433. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Eddelbuettel D and François R (2011). Rcpp: Seamless R and C++ integration. Journal of Statistical Software, 40(8):1–18. [Google Scholar]
  10. Fan J, Feng Y, and Wu Y (2009). Network exploration via the adaptive lasso and scad penalties. The Annals of Applied Statistics, 3(2):521. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Friedman J, Hastie T, and Tibshirani R (2008). Sparse inverse covariance estimation with the graphical lasso. Biostatistics, 9(3):432–441. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Friedman J, Hastie T, and Tibshirani R (2010). Applications of the lasso and grouped lasso to the estimation of sparse graphical models. Technical Report, pages 1–22. [Google Scholar]
  13. Friedman J, Hastie T, and Tibshirani R (2018). glasso: Graphical Lasso: Estimation of Gaussian Graphical Models. R package version 1.10. [Google Scholar]
  14. George EI and McCulloch RE (1993). Variable selection via Gibbs sampling. Journal of the American Statistical Association, 88(423):881–889. [Google Scholar]
  15. Hoff PD (2007). Extending the rank likelihood for semiparametric copula estimation. The Annals of Applied Statistics, pages 265–283. [Google Scholar]
  16. Horton R (2007). Counting for health. Lancet, 370(9598):1526. [DOI] [PubMed] [Google Scholar]
  17. Ishwaran H. and Rao JS (2003). Detecting differentially expressed genes in microarrays using bayesian model selection. Journal of the American Statistical Association, 98(462):438–455. [Google Scholar]
  18. Jones B, Carvalho C, Dobra A, Hans C, Carter C, and West M (2005). Experiments in stochastic computation for high-dimensional graphical models. Statistical Science, pages 388–400. [Google Scholar]
  19. Lauritzen SL (1996). Graphical models, volume 17 Clarendon Press. [Google Scholar]
  20. Lenkoski A and Dobra A (2011). Computational aspects related to inference in Gaussian graphical models with the G-Wishart prior. Journal of Computational and Graphical Statistics, 20(1):140–157. [Google Scholar]
  21. Levine RA and Casella G (2001). Implementations of the Monte Carlo EM algorithm. Journal of Computational and Graphical Statistics, 10(3):422–439. [Google Scholar]
  22. Li ZR, McCormick T, and Clark S (2019). openVA: Automated Method for Verbal Autopsy. R package version 1.0.8. [Google Scholar]
  23. Liu H, Lafferty J, and Wasserman L (2009). The nonparanormal: Semiparametric estimation of high dimensional undirected graphs. Journal of Machine Learning Research, 10:2295–2328. [PMC free article] [PubMed] [Google Scholar]
  24. Liu H, Roeder K, and Wasserman L (2010). Stability approach to regularization selection (StARS) for high dimensional graphical models. In Advances in Neural Information Processing Systems, pages 1432–1440. [PMC free article] [PubMed] [Google Scholar]
  25. Lukemire J, Kundu S, Pagnoni G, and Guo Y (2017). Bayesian joint modeling of multiple brain functional networks. arXiv preprint arXiv:1708.02123. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Lysen S (2009). Permuted inclusion criterion: a variable selection technique. Publicly accessible Penn Dissertations, page 28. [Google Scholar]
  27. Mazumder R and Hastie T (2012). The graphical lasso: New insights and alternatives. Electronic journal of statistics, 6:2125. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. McCormick TH, Li ZR, Calvert C, Crampin AC, Kahn K, and Clark SJ (2016). Probabilistic cause-of-death assignment using verbal autopsies. Journal of the American Statistical Association, 111(515):1036–1049. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Meinshausen N and Bühlmann P (2006). High-dimensional graphs and variable selection with the lasso. The Annals of Statistics, pages 1436–1462. [Google Scholar]
  30. Meng X-L and Rubin DB (1993). Maximum likelihood estimation via the ECM algorithm: A general framework. Biometrika, 80(2):267–278. [Google Scholar]
  31. Mohammadi A, Abegaz F, van den Heuvel E, and Wit EC (2017). Bayesian modelling of Dupuytren disease by using Gaussian copula graphical models. Journal of the Royal Statistical Society: Series C (Applied Statistics), 66(3):629–645. [Google Scholar]
  32. Mohammadi A and Wit EC (2015). BDgraph: An R package for Bayesian structure learning in graphical models. arXiv preprint arXiv: 1501.05108. [Google Scholar]
  33. Murray CJ, Lopez AD, Black R, Ahuja R, Ali SM, Baqui A, Dandona L , Dantzer E, Das V, Dhingra U, et al. (2011). Population health metrics research consortium gold standard verbal autopsy validation study: design, implementation, and development of analysis datasets. Population health metrics, 9(1):27. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Nelsen RB (1999). An introduction to copulas, volume 139 of lecture notes in statistics. [Google Scholar]
  35. Nielsen SF (2000). The stochastic EM algorithm: estimation and asymptotic results. Bernoulli, 6(3):457–489. [Google Scholar]
  36. Peterson C, Vannucci M, Karakas C, Choi W, Ma L, and Meletić-Savatić M (2013). Inferring metabolic networks using the Bayesian adaptive graphical lasso with informative priors. Statistics and its Interface, 6(4):547. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Peterson CB, Stingo FC, and Vannucci M (2015). Joint Bayesian variable and graph selection for regression models with network-structured predictors. Statistics in Medicine, (October). [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. R Core Team (2018). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. [Google Scholar]
  39. Rocková V (2016). Particle EM for variable selection. Submitted manuscript. [Google Scholar]
  40. Ročková V and George EI (2014). EMVS: The EM approach to Bayesian variable selection. Journal of the American Statistical Association, 109(506):828–846. [Google Scholar]
  41. Rothman AJ, Bickel PJ, Levina E, Zhu J, et al. (2008). Sparse permutation invariant covariance estimation. Electronic Journal of Statistics, 2:494–515. [Google Scholar]
  42. Roverato A (2002). Hyper inverse Wishart distribution for non-decomposable graphs and its application to Bayesian inference for gaussian graphical models. Scandinavian Journal of Statistics, 29(3):391–411. [Google Scholar]
  43. Schwarz G et al. (1978). Estimating the dimension of a model. The Annals of Statistics, 6(2):461–464. [Google Scholar]
  44. Serina P, Riley I, Stewart A, Flaxman AD, Lozano R, Mooney MD, Luning R, Hernandez B, Black R, Ahuja R, et al. (2015). A shortened verbal autopsy instrument for use in routine mortality surveillance systems. BMC medicine, 13(1): 1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Sing T, Sander O, Beerenwinkel N, and Lengauer T (2005). Rocr: visualizing classifier performance in r. Bioinformatics, 21(20):7881. [DOI] [PubMed] [Google Scholar]
  46. Wakefield J, De Vocht F, and Hung RJ (2010). Bayesian mixture modeling of gene-environment and gene-gene interactions. Genetic Epidemiology, 34(1):16–25. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Wang H (2015). Scaling it up: Stochastic search structure learning in graphical models. Bayesian Analysis, 10(2):351–377. [Google Scholar]
  48. Wang H et al. (2012). Bayesian graphical lasso models and efficient posterior computation. Bayesian Analysis, 7(4):867–886. [Google Scholar]
  49. Wang H and Li SZ (2012). Efficient Gaussian graphical model determination under G-Wishart prior distributions. Electronic Journal of Statistics, 6:168–198. [Google Scholar]
  50. Wei GC and Tanner MA (1990). A Monte Carlo implementation of the EM algorithm and the poor man’s data augmentation algorithms. Journal of the American statistical Association, 85(411):699–704. [Google Scholar]
  51. Wei T and Simko V (2017). R package ”corrplot”: Visualization of a Correlation Matrix. (Version 0.84). [Google Scholar]
  52. Wickham H (2007). Reshaping data with the reshape package. Journal of Statistical Software, 21(12):1–20. [Google Scholar]
  53. Wickham H (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag; New York. [Google Scholar]
  54. Wilhelm S and G MB (2015). tmvtnorm: Truncated Multivariate Normal and Student t Distribution. R package version 1.4–10. [Google Scholar]
  55. Witten DM, Friedman JH, and Simon N (2011). New insights and faster computations for the graphical lasso. Journal of Computational and Graphical Statistics, 20(4):892–900. [Google Scholar]
  56. Xue L (2012). Regularized Learning of High-dimensional Sparse Graphical Models. PhD thesis, university of minnesota. [Google Scholar]
  57. Xue L, Zou H, et al. (2012). Regularized rank-based estimation of high-dimensional nonparanormal graphical models. The Annals of Statistics, 40(5):2541–2571. [Google Scholar]
  58. Yin J and Li H (2011). A sparse conditional Gaussian graphical model for analysis of genetical genomics data. The Annals of Applied Statistics, 5(4):2630. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Yuan M and Lin Y (2007). Model selection and estimation in the Gaussian graphical model. Biometrika, 94(1):19–35. [Google Scholar]
  60. Zhao T, Liu H, Roeder K, Lafferty J, and Wasserman L (2012). The huge package for high-dimensional undirected graph estimation in R. Journal of Machine Learning Research, 13(April):1059–1062. [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supp 1

RESOURCES