Abstract
Gaussian graphical models are a powerful tool for investigating the conditional dependency structure between random variables by estimating sparse precision matrices and can infer networks among variables from multiple classes. Many studies assume that classes of observations are given and use methods to learn the network structures within one level (e.g. pathways or genes). In most cases, however, heterogeneous data may be obtained at different levels. Therefore, in this paper, we consider the learning of multiple connected graphs with multilevel variables from unknown classes. We estimate the classes of the observations from the mixture distributions by evaluating the Bayes factor and learn about the network structures by fitting a neighborhood-selection algorithm. This approach can be used to identify the class memberships and reveal the network structures for lower level and higher level variables simultaneously. Unlike most existing methods, which solve this problem using frequentest approaches, we assess an alternative and novel hierarchical Bayesian approach for incorporating prior knowledge. We demonstrate the unique advantages of our methods through several simulations. A breast cancer application shows that our model’s results can provide insight into biological studies.
Keywords
1. Introduction
Gaussian graphical models have been applied widely in science to describe the conditional dependencies between variables. Learning the graph topology via Gaussian graphical models (GGMs) is equivalent to estimating nonzero entries in the inverse covariance matrix (or precision matrix)
Numerous methods of estimating the covariance matrix in the high-dimensional case have been developed to learn sparse graphs through penalty functions that force zeros in the corresponding precision matrix. Meinshausen and Bühlmann16 proposed doing so by performing lasso regression of all nodes to a target node. A penalized log-likelihood approach can be optimized through a variety of methods.1,19,23 The most popular one is known as graphical lasso (glasso), developed by Friedman et al. 9 An alternative is to form a Bayesian graphical lasso, which uses Laplace priors on off-diagonal entries of the precision matrix. 22 In recent years, researchers have realized that it is more efficient to learn multiple graphs together because the graphs may share certain characteristics. Guo et al. 11 learned multiple graphs jointly by decomposing precision matrices into a multiplication of common factors across groups and unique factors for each group. Danaher et al. 6 generalized this jointly learning multiple graph approach and used two penalty functions: the fused lasso and the group lasso.
However, the standard formulation for learning GGMs assumes that classes of observations are given and that the network structures will be learned within one level (e.g. pathways or genes). However, this assumption might be too optimistic. In some cases, the data at different classes may be heterogeneous. Often, these different classes can have ambiguous categorizations. For example, present-day gene-expression data can involve hundreds of pathway and gene variables while lacking the case–control status. Hence, we propose a technique for inferring multiple connected networks from observations belonging to unknown classes following mixture distributions. For genomic data, it is reasonable that genes can be clustered or grouped into pathways for particular functions. On the other hand, pathways are not isolated either but instead work together to accomplish certain tasks. One may also find it necessary to study their connectivity or relationship patterns. To tackle the problem of multilevel networks, we propose using multiple GGMs for multilevel variables from unknown classes to not only estimate the class membership but also learn the networks at a different level.
In this paper, we develop multiple GGMs for multilevel variables from unknown classes under the Bayesian hierarchical framework in order to infer multiple connected networks from observations belonging to unknown classes following mixture distributions. Our goal is to explore conditional dependency structures among the variables of two levels simultaneously (i.e. the set and element levels) when classes are drawn from the mixture distributions. We investigate a two-step solution to this problem using Bayesian methods. The basic idea of the proposed model is to assess class membership first and then learn the multilevel networks.
Our approach has several novel features: (1) it can reveal networks for multilevel variables simultaneously; (2) it evaluates class membership of the observations from GGMs; and (3) it is fully model based and thus has nice probabilistic interpretations. Clustering data for GGMs is challenging, and only a few works so far have focused on the relevant problems.
The rest of the paper is organized as follows. In Section 2, we first describe Bayesian multiple Gaussian graphical models (denoted as BMGGMs) for multilevel variables from unknown classes. Section 3 proposes a probability model for inferring the high-level variable network from a lower level variable network. Sections 4 and 5 describe the Bayesian generative model and posterior inference, respectively. In Section 6, we illustrate the performance of the proposed model through simulated data. Section 7 demonstrates the model’s application to a case study. Section 8 contains concluding remarks.
2. Multiple Gaussian graphical model for unknown classes
2.1. Problem setup and notation
We start by describing the problem setup and the notation that will be used throughout this paper.
Suppose we are given a data set that has C possible heterogeneous classes with a total of P variables, which belong to K pre-specified groups. Each group has pk variables such that
We index classes by c, where
2.2. Background and general formulation
For a given class c, we have an
Furthermore, we assume that all of the data points are generated from a mixture of C-component Gaussian distributions with unknown class membership for each individual. Following standard practice, we introduce a C-dimensional indicator zi to represent the latent state. Then, the prior distribution of z can be specified in terms of the mixing coefficients πc by
As each base distribution in the mixture is a multivariate Gaussian distribution with mean
2.3. Learning a sparse Gaussian graphical model
Our goal is to infer graphs with a sparse structure so that we can describe the relationships among elements. Equivalently, we can estimate the non-zeros in the inverse matrix
The basic idea of learning a sparse GGM is to represent the inverse covariance matrix with a modified Cholesky decomposition and then apply the neighborhood selection with priors that can lead to sparsity.
Specifically, in order to learn a sparse covariance matrix with statistically interpretable parameterization, we adopt a modified Cholesky decomposition
20
of the precision matrix
For a given element j,
This expression can be expanded further to
Through these formulations, the upper triangular
For simplicity, each dataset is centered such that
The precision matrix obtained from Meinshausen and Bühlmann
16
is not necessarily positive definite. Other approaches1,23 require that a precision matrix be positive definite. Therefore, to avoid these obstacles, we want the estimated precision matrix to be unconstrained and statistically meaningful. The variables of a modified Cholesky decomposition obviously depend on the order in which the variables appear in the data matrix. However, this problem becomes less important when we aim to find meaningful patterns across the classes, while
Note that we explore the ordering problem with a toy example. We generated data based on the following element network and corresponding precision matrix using the approach defined in Section 6.1.1. The diagram is as follows:
(See Figure 1 of the Supplementary Materials.)
Our BMGGMs give an estimation
Now, we switch column 2 to column 3. Then, the true diagram becomes
Our BMGGMs give an estimation.
The modified Cholesky decomposition gives a different estimation of the precision matrix but can detect the correct adjacency matrix, as shown in Figure 2 of the Supplementary Materials.
3. Multilevel network probability model
In this section, we propose a multilevel network probability model. We illustrate how to infer the network structure at the set level. In our example, the sets are high-level variables, and the elements are the lower level variables within the sets. We estimate set-interaction probabilities using element-interaction probabilities, by implementing the idea of Kim et al., 13 who originally proposed set and set interaction estimation through element and element probabilities.
We build a multilevel network model using the following assumption: (A1) two sets will interact if at least one element pair from the two sets interacts.
First, we define some notations. Define
By using (A1), we can calculate the interaction probabilities between two sets using element interaction probabilities
We consider the following four conditions:
If If If If
Because the number of elements in a set varies, we adjust the set probability. The third condition is important for controlling the case in which the set probability (3) becomes larger as the number of element pairs becomes large. By using both equation (3) and this third condition, we can obtain the following equation
Then, ρ can be obtained by
This adjustment is motivated by the observation that the value of equation (3) increases as the number of elements increases. We also compared our result with ρ = 1. The result did not have significant changes. This similar result also was reported by Kim et al. 13
4. Bayesian hierarchical framework
We seek to learn the network (both the set and element) structure for each class in order to obtain the inverse covariance matrix
In this section, we describe how to estimate the parameters under the Bayesian hierarchical framework and the Markov chain Monte Carlo (MCMC) algorithm to fit this model.
4.1. Estimating class membership using Gaussian mixture models
We treat class-membership estimation as a clustering problem. With the distribution of
The cth mixing proportion πc can be viewed as the prior probability that an entity belongs to the cth component of the mixture
Note that a label-switching problem arises if we want samples from the MCMC algorithm. That is, if we calculate
4.2. Prior specification
In this subsection, we provide the specification of the priors in our models.
Let
For each pair of elements
If
To facilitate the design of the MCMC scheme, we would like to require conjugate priors for the rest of the parameters. Thus, the prior distributions of
With these priors, one can easily derive a simple Gibbs sampling scheme, which will be discussed in full in Section 6.
The choice of hyperparameters plays an important role in the performance of our BMGGMs. First, the variance
5. Posterior sampling
In this section, we describe a sampling scheme for BMGGMs. To estimate BMGGMs from unknown classes, we conduct two steps: we first compute class membership probabilities and then estimate the network structure for the elements and infer the network structure for the sets using those elements.
This procedure is model based, with only the data observed and with other parameters unobserved. The unobserved parameters inferred from Section 2 have statistical meanings. The procedure of the first step can be illustrated as a directed graph, as shown in Figure 1. Note that the data

Directed acyclic graphical model representing the Bayesian mixture of Gaussians model, Only the
Regarding the second step, the procedure for estimating element networks is described in Section 2.3. The procedure of learning set networks is demonstrated in the block array below. According to the notation from Section 3,
5.1. Full conditional distribution
Let the following denote the parameters of interest in a vectorized fashion:
We let
Because all of the prior distributions are conjugate distributions, the full conditional distributions have the closed forms summarized as follows:
The full conditional distribution of
One can show that The full conditional distribution of
and sample The full conditional distribution of
where
We now present MCMC algorithm 1 for solving BMGGMs with unknown classes in greater detail.
Algorithm 1. MCMC algorithm for Bayesian multiple GGMs with unknown classes
Initialize Select the prior. Evaluate the data class membership by Update Update Compute the estimated precision matrix for each class using
Return: posterior samples of
Our R package implementing BMGGMs with unknown classes is available on our GitHub repository.
5.2. Posterior inference
In this subsection, we represent two ways of estimating the posterior of the edge inclusion (i.e.
For the first practical approach, we obtained the posteriors of the edge inclusion after the burn-in. Then, we chose the edges whose posteriors of inclusion were larger than 0.5, which was the threshold used by Barbieri et al. 3 and Peterson et al. 18 We refer to this approach as BMGGM1.
The second approach is based on testing. We treat the edges selection as a hypothesis testing problem for a Bernoulli distribution in which
Then, the approximate
Furthermore, we may compare differential networks among different classes. Here, we define differential element networks if the value of
Thus, the test statistic is
Then, the approximate
Likewise, we claim that the edge is differential if the corresponding confidence interval does not contain 0. A similar idea can be extended to more than two differential networks by using multiple comparisons.
In the later experiments, we found that the first approach (BMGGM1), with a fixed threshold of 0.5, resulted in better performance than the second approach (BMGGM2) did. We will focus on the first approach throughout this paper unless otherwise specified.
6. Simulation
In this section, we present two simulation studies to evaluate the performance of our BMGGMs. In the first experiment, we estimated all of the parameters of interest and infer GGMs, assuming that the class labels of the observations are given. We also compared our BMGGM approach to the existing methods. The second experiment was similar to the first one, except that we assumed that the class labels were unknown. We evaluated the model’s ability to make predictions by learning differential graphs across classes.
6.1. Simulation study for known classes
6.1.1. Simulation setting
In this subsection, we run a simulation to evaluate the performance of our BMGGMs when the class is given. We start by drawing n = 100 samples independently and identically from multivariate Gaussian distribution
The inverse covariance matrix Step S.1: We first created K = 6 set networks based on one of the network types (an AR(2) network, chain network, or scale-free network). Each set network had pk = 10 elements. Thus, we could have corresponding adjacency matrices on the diagonal block of Step S.2: For the off-diagonal block of
For the elements, we considered three types of simulated networks – AR(2), chain, and scale-free networks-as shown in Figure 2. We explain how to generate these networks in detail:

Three types of simulated networks in the simulation study: (a) AR(2) network. (b) Chain network. (c) Scale-free network.
AR(2) network: This is also called a second-order autoregression model. For a given set, the corresponding precision matrix
Chain network: This network structure corresponds to a band matrix, which can be created by adding nonzero entries to a diagonal matrix. It resembles a tridiagonal precision matrix. 8
Scale-free network: We generate set networks using the Barabasi-Albert algorithm,
2
each with a power-law degree distribution. That is, for a given set, the degree distribution is
where α is some prefixed parameter. Power-law degree distributions can mimic the network structure of biological data 4 and are usually more difficult to learn than the other types of network structures. 17
To create a symmetric and positive-definite covariance matrix Step C.1: Convert the network structure to the corresponding adjacency matrix (i.e. a (0, 1) matrix with zeros on its diagonal). Step C.2: Replace the first entries with other nonzero entries Step C.3: Make the matrix positive definite by dividing each off-diagonal entry by the sum of the absolute values of the off-diagonal entries in its row; then, average the matrix with its transpose. Step C.4: Each observation is drawn independently and identically from the multivariate Gaussian distribution
6.2. Evaluation metrics
Following the standard practice for the Gaussian graphical model, we assess the performance of the Gaussian graphical model by focusing on the estimation of the adjacency matrix or network structure for each set ks, (where
Several metrics are worth assessing: the true positive rate (TPR), true negative rate (TNR), and accuracy (ACC). To calculate these metrics, we first define the false positive (FP), true positive (TP), false negative (FN), and true negative (TN) for the edge status of a pair of nodes
Accordingly, we can calculate the TPR, TNR, and ACC for each higher level variable and average them
Because the inverse covariance matrix is rather sparse, we have far more non-edges than edges for a given graph. We also introduce precision and recall, which are widely used in information retrieval and binary classification. We can define them as follows
Precision measures how many selected items are relevant, and recall measures how many relevant items are selected.
6.3. Simulation results
We implemented the Bayesian MCMC procedure described in Section 5 to obtain samples from the posterior probabilities. To make inferences, we ran our Gibbs sampler for 10,000 iterations, with another 10,000 as burn-in. We compared our method with the other three methods using the same dataset. First, we applied the graphical lasso by Friedman et al. 9 (referred as Glasso). Then, we apply the group graphical lasso (referred to GGL) and fused graphical lasso (referred to FGL) proposed by Danaher et al. 6 All of the tuning parameters were selected to give the lowest average cross-validation error.
We began by assessing whether the MCMC procedure could converge to the stationary distribution. For the scale-free network case, Figure 3 of the Supplementary Materials demonstrates the trace plots of the number of edges for each set network, which indicates good mixing rates of Markov chains. To estimate the adjacency matrix, we obtained the posterior probability of edge inclusion by calculating the average for the MCMC samples of

Inferred networks for set and element variable under scale-free network case in simulation study.
We compared our method with the other three methods – Glasso, GGL, and FGL on the same data set. The results of the estimated network structure are summarized in Table 1. We assessed the accuracy of the estimated network structure via precision, recall, and ACC together, instead of ACC alone, because the graphs we obtained are rather sparse. We averaged these results over six set networks to make comparisons with other methods.
Comparison of five methods in terms of four measures with standard error (SE) over 100 simulated runs under scale-free, AR(1), and AR(2) network case.
GLasso: graphical lasso9; GGL: group graphical lasso6; FGL: fused graphical lasso6; BMGGM1: our proposed method with thresholding; BMGGM2: our proposed method with testing.
The results suggest that our BMGGMs had the best accuracy overall. GGL performed slightly better than FGL, which was implied by Danaher et al. 6 Glasso has the lowest accuracy because it learns each graph individually without considering the connections between the set networks. With these simulation settings, our BMGGMs will overestimate the edges, as compared to joint glasso, which led to relatively higher TPR and recall, and relatively lower TNR and precision.
Lastly, our BMGGMs could identify the connections between the sets, as we can clearly see in Figure 3, where there is an edge across sets 1 and 2.
6.4. Simulation study for unknown classes
6.4.1. Simulation setting
In this subsection, we run a simulation to evaluate the performance of our algorithm when the class is not given. For each class, we started by drawing samples independently and identically from the multivariate Gaussian distribution
For the covariance matrices, we considered K = 10 sets and pk = 10 elements each.
6.4.2. Evaluation metrics
The evaluation criteria were the same as those used in Section 6.2. Likewise, we redefined the FP, TP, FN, TN, and ACC for the class of observations
6.4.3. Performance when the unknown class size is 2
Because this was a clustering problem, a label-switching problem may arise in each iteration. We solved this by adding the constraint

Posterior predictions of the number of cases and controls by Bayesian multiple Gaussian graphical model in simulation study.
6.4.4. Results for unknown classes with different sizes
We also conducted an additional simulation when C was 3 with a scale-free network. We calculated ACC and the standard deviation (SD) of ACC obtained from 100 simulations. The rest of the settings were same as those used in Section 6.4.1. The experiments showed that the performance of the BMGGM in terms of ACC decreased as C increased. Table 2 represents the performance of BMGGM when C varied from 1 to 3 with the scale-free network. As expected, the value of ACC decreases as C increases from 1 to 3. In addition, we observed that the BMGGM improved, as the sample size among classes became more unbalanced. A BMGGM does not break down even if the sample is small, such as 50. When C = 2 and the sample sizes of the two classes are (n1,
The performance of BMGGM1 in terms of accuracy (ACC) and its the standard deviation (SD) of ACC obtained from 100 simulations when C varies from 1 to 3.
7. Application
In this section, we apply our BMGGMs to reveal the dependence structure for the breast cancer gene expression data, in which genes can be viewed as elements and sets can be viewed as sets.
According to the literature, American white women are slightly more likely to develop breast cancer than African American women are.
5
Therefore, our goal was to compare differential networks among racial groups to better understand the genetic differences. These differential networks included not only the pathway network but also the gene network with each pathway. Specifically, we considered a gene–gene pair to be differential if the true value of
The human breast cancer data set was collected from the University of Texas M.D. Anderson Cancer Center
21
and contains 22,283 gene-expression measurements across 176 white patients and 102 non-white patients. Furthermore, the genes were mapped into 1320 pathways using the canonical pathways (CP) from the Molecular Signatures Database (MsigDB), with the number of genes within each pathway ranging from 4 to 778. We applied our method to the top three most significant pathways (P711, P717, and P956) expressed between white and non-white women breast cancer patients. In this data set, we had n = 278 samples, c = 2 classes, and K = 3 sets. The numbers of genes in these three pathways (P711: REACTOME ORC1 REMOVAL FROM CHROMATIN, P717: REACTOME SIGNALING BY ERBB2, and P956: REACTOME DOWNSTREAM SIGNAL TRANSDUCTION) were
We normalized all of the genes with the mean of 0 and standard deviation of 1 for each class. Because goals were to generate meaningful patterns and create a hypothesis, we set the hyperparameters to yield a sparse pathway network and a gene network. We chose the beta hyperparameters for
In Figures 5 and 6, we present the gene networks for white women and non-white women, in which the colors represent the pathways (because the genes could be grouped into pathways). The results show that the element structures for these two groups were very different. Furthermore, the graph of white women had more edges (144 edges) than that of non-white women (114 edges), and only 51 edges overlapped. In comparing the vertex degrees (i.e. the number of nearest neighbors for a vertex) of the two networks, we found that the white women network had more genes with large degrees (see Figure 18 of the Supplementary Materials).

Estimated biological gene pathway for American white women in breast cancer gene expression application data.

Estimated biological gene pathway for non-white women in breast cancer gene expression application data.
At the pathway level, we identified pathway P956 as being conditionally dependent on pathway P717 among white women, while P956 and P711 were conditionally independent. The adjacency matrix for these two groups are summarized below
Analysis of the gene and pathway networks reveals resulted consistent with the breast cancer genomics, 12 suggesting that American white women are slightly more likely to develop breast cancer than African American women are. Overall, the novel application of our BMGGMs to understand breast cancer networks yielded results consistent with the known literature and has identified potential biomarkers and pathways for future research.
On the other hand, we are also interested in applying BMGGMs when the class is unknown. We treated race (i.e. white and non-white women) as a class and evaluated its performance in terms of prediction rate.
We applied the same settings as the previous section. That is, we chose the P956, P711, and P717 pathways. We normalized all of the genes with means of 0 and 1 standard deviation of 1. The hyperparameters were also the same to yield sparse pathway and gene networks. We set the beta hyperparameters on
In addition, we forced a constraint (
8. Discussion
We have proposed the BMGGMs as a framework for learning the network structure of multiple groups that could be possibly connected to each other. Given a data set with a hierarchical structure, these models can uncover the network structure for sets and elements simultaneously. Furthermore, our approach can be used to evaluate the Bayes factor to decide the class membership for each class. We designed and employed a simple Gibbs sampling scheme to solve the BMGGMs.
Our method is comparable to the existing methods in terms of the accuracy of adjacency matrix estimation. Our method also provides good statistical interpretations through posterior probabilities for each parameter because our generative model is more explainable and interpretable than deterministic models. We defined the model by explaining the generative mechanism in a top-down fashion.
In this paper, we made several novel contributions: we (1) developed BMGGMs that can reveal set and element networks simultaneously; (2) established a Bayesian factor approach to evaluate class membership for observations from GGMs; and (3) estimated the models by using a Bayesian rather than a frequentist approach. This Bayesian formulation is fully model based and thus has nice probabilistic interpretations. Clustering the data for the GGMs is very difficult, and only a few works have focused on the relevant problems so far.
There are several potentials for future work. For instance, when it comes to clustering the observations, one could discuss the convergence properties of the Bayesian method. Another possibility is to extend our model to allow discrete data.
We focused on network estimation. However, it is difficult to estimate the non-zero off-diagonal entries of precision matrix accurately. Because these entries play an important role in making statistical inferences on test hypotheses regarding networks as well as predictions, it will be worthwhile to develop statistical procedures to estimate them accurately in order to we can conduct better statistical inferences regarding networks.
Notably we investigated the performance of our BMGGM as the cluster size increased. As expected, the performance decreased as the cluster size increased. However, we also observed that the performance improved as the sample size increased. Also, the more unbalanced the sample size among classes, the better the BMGGMs performance. If some cluster has extremely small size such as 1, the BMGGM might not able to detect it. Hence, it is important to study the relationship between the optimal sample size and the class size. This will require intensive theoretical derivation and also simulation studies for future research.
Supplemental Material
sj-pdf-1-smm-10.1177_09622802211022405 - Supplemental material for Bayesian multiple Gaussian graphical models for multilevel variables from unknown classes
Supplemental material, sj-pdf-1-smm-10.1177_09622802211022405 for Bayesian multiple Gaussian graphical models for multilevel variables from unknown classes by Jiali Lin and Inyoung Kim in Statistical Methods in Medical Research
Footnotes
Acknowledgements
We are grateful to the associate editor and reviewer for their valuable suggestion and constructive input.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Supplemental Materials
Supplementary materials are available in a separate file as part of the article. An R package implementing BMGGMs with unknown classes is available on the author’s GitHub repository.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
