1 Introduction

Graphical models provide a compact and efficient representation of the association structure of a multivariate distribution by means of a graph and have become a popular tool for representing network structures in many applied contexts; see Maathuis et al. (2019) for a recent review of the state of art of graphical models. If \(X_{V}\) is a vector of continuous random variables then an undirected network, called a concentration graph of \(X_{V}\), is constructed in such a way that every vertex is associated with a variable and a missing edge between two vertices implies that the corresponding partial correlation is equal to zero (Lauritzen 1996). In this way, the association structure of \(X_{V}\) is encoded by the paths connecting the variables. Paths are the main tools used in the definition of separation criteria and therefore of the Markov properties characterizing these statistical models. More concretely, an edge joining two vertices can be regarded as a single-edge path and encodes a direct association between the corresponding variables, whereas a path made up of two or more edges represents an indirect association mediated by the intermediate variables in the path. It follows that the collection of all the paths joining a pair of vertices provides a full description of the association structure between the corresponding variables.

Example 1

The upper triangle of Table 1 contains the entries of the variance and covariance matrix of a random vector \(X_{V}\) with \(V=\{x, 1, 2, 3, 4, 5, y\}\). From the covariance matrix one can compute the partial correlations for every pair of variables given the remaining variables (lower triangle), and Fig. 1 shows a concentration graph of \(X_{V}\). One can see, for instance, that the analysis of the association structure of \(X_{x}\) and \(X_{y}\) can be carried out by investigating the role played by the six different paths joining x and y in the graph; these are detailed in Table 2.

Fig. 1
figure 1

Concentration graph for the covariance matrix of Table 1

Table 1 Instance of covariance matrix whose inverse is adapted to the graph of Fig. 1

In models for directed acyclic graphs the well-established theory of path analysis (Wright 1921) provides a method that allows one to quantify the relevance of a directed path. On the other hand, in models for undirected graphs the problem of quantifying the strength of the association encoded by paths has been investigated only more recently. Jones and West (2005) considered the measure of association between two variables provided by the covariance and showed that this quantity can be decomposed in terms of additive weights associated with the paths joining the corresponding vertices. Roverato and Castelo (2020) provided an analysis of the properties of the covariance path weights introduced by Jones and West (2005) and showed that inflation factors play a key role in the interpretation of these quantities; see also Roverato and Castelo (2017, 2018); Peeters et al. (2020).

The comparison of paths with different endpoint requires the use of normalized measures of association and, to this aim, Roverato and Castelo (2020) considered the weights obtained for the decomposition of correlation coefficients. Furthermore, they introduced a novel normalized measure of linear association, named the inflated correlation coefficient, and showed that the weights obtained from the decomposition of this quantity satisfy useful properties that, as far as the strength of paths is of concern, make them an appealing alternative to the classical correlation coefficients.

Here, we focus on the weights obtained from the decomposition of inflated correlations. A path weight quantifies the relevance of the corresponding path. A path can be seen as an ordered sequence of vertices and edges, and we show that every inflated correlation weight can be factorized into terms, each of which is associated either with a vertex or to an edge of the path. More specifically, every vertex is associated with an inflation factor quantifying the contribution of the variable to the path. Furthermore, every edge is associated with a partial correlation quantifying the contribution to the path of the corresponding pairwise association. This factorization allows one to gain insight into the role played by a path in the network by highlighting the contribution to the weight of each of the building blocks forming the path. This is of special interest in the comparison of paths. Moreover, it provides a theoretical justification for the use of these weights because it shows that inflated correlations can be decomposed into the sum of weights which can themselves be interpreted as inflated (partial) correlations, thereby conferring consistency between the weights and the association measure they decompose. We then show how this factorization can be used to construct betweenness centrality measures specifically designed to suit the graphical model framework. Finally, an application in the context of dietary pattern analysis is provided.

This paper is organized as follows. Background on inflation factors, inflated correlation matrices, concentration graph models and path weighs is given in Sect. 2. In Sect. 3 we establish a connection between inflation factors and the determinant of inflated correlation matrices, whereas Sect. 4 deals with inflated correlation weights and describes their decompostion. The betweenness centrality measures based on path weights and their decomposition are introduced in Sect. 5, where an application to the analysis of the eating behaviour of a group of subject is also given. Finally, Sect. 6 contains a brief discussion.

2 Background and notation

2.1 Inflation factors and the inflated correlation matrix

Let \(X= X_{V}\) be a random vector indexed by a finite set \(V=\{u,v,\ldots , z\}\) with covariance matrix \(\varSigma =\{\sigma _{uv}\}_{u,v\in V}\). We denote by \(K=\{\kappa _{uv}\}_{u,v\in V}\) the concentration matrix of \(X_{V}\) and recall that \(K=\varSigma ^{-1}\). For two subsets \(A,B\subseteq V\), such that \(A\cap B=\emptyset \), we consider the subvectors \(X_{A}\) and \(X_{B}\) of \(X_{V}\) and denote by \(X_{A}\mid X_{B}\) the residual vector deriving from the linear least square predictor of \(X_{A}\) on \(X_{B}\) (see Whittaker 1990, p. 134). It follows that the covariance matrices of \(X_{A}\) and \(X_{A}\mid X_{B}\) are \(\varSigma _{AA}\) and \(\varSigma _{AA\cdot B}=\varSigma _{AA}-\varSigma _{AB}\varSigma _{BB}^{-1}\varSigma _{BA}\), respectively, where we use the convention that \(\varSigma _{AA}^{-1}=(\varSigma _{AA})^{-1}\) and, similarly, \(\varSigma _{AA\cdot B}^{-1}=(\varSigma _{AA\cdot B})^{-1}\). We denote by \(\sigma _{uv\cdot B}\), for \(u,v\in A\), the entries of \(\varSigma _{AA\cdot B}\) and recall that, in the Gaussian case, \(\varSigma _{AA\cdot B}\) coincides with the covariance matrix of the conditional distribution of \(X_{A}\) given \(X_{B}\). We write \({\bar{A}}\) to denote the complement of A relative to V, that is \({\bar{A}}=V\setminus A\) and remark that the concentration matrix of \(X_{A}\mid X_{{\bar{A}}}\) is the submatrix of K with entries indexed by A because it follows from the rule for the inversion of a partitioned matrix that \(\varSigma _{AA\cdot {\bar{A}}}^{-1}=K_{AA}\).

In linear regression diagnostics, the effect of multicollinearity may be quantified by means of the variance inflation factor. The inflation factor of \(X_{v}\) on \(X_{V\setminus \{v\}}\) is defined as \({\text {IF}}_{v}=1/(1-\rho ^{2}_{(v)(V\setminus \{v\})})\) where \(\rho _{(v)(V\setminus \{v\})}\) is the multiple correlation of \(X_{v}\) on \(X_{V\setminus \{v\}}\). \({\text {IF}}_{v}\) takes values in the interval \([1, +\infty )\); it is equal to one if and only if \(X_{v}\) and \(X_{V\setminus \{v\}}\) are uncorrelated and its value increases as \(\rho _{(v)(V\setminus \{v\})}\) increases (see Belsley et al. 2005; Chatterjee and Hadi 2012).

Fox and Monette (1992) considered the case where one is concerned with sets of regressors rather than with individual regressors and introduced a generalized version of the variance inflation factor; specifically, for a pair of subsets \(A,B\subseteq V\), with \(A\cap B=\emptyset \) this is given by,

$$\begin{aligned} {\text {IF}}_{A}^{B}=\frac{|\varSigma _{AA}||\varSigma _{BB}|}{|\varSigma _{A\cup B A\cup B}|}, \end{aligned}$$
(1)

so that \({\text {IF}}_{A}^{B}={\text {IF}}_{v}\) when \(A=\{v\}\) and \(B=V\setminus \{v\}\). We will refer to \({\text {IF}}_{A}^{B}\) as the inflation factor of A on B and in order to simplify the notation we will write \({\text {IF}}_{A}\) when \(B={\bar{A}}\). Throughout this paper, the covariance matrices we consider are assumed to be positive definite and, furthermore, we use the convention that the determinant of a submatrix whose rows and columns are indexed by the empty set is equal to one. In this way, the inflation factor in (1) is always well-defined with \({\text {IF}}_{A}^{B}=1\) whenever either \(A=\emptyset \) or \(B=\emptyset \).

Fox and Monette (1992) also suggested a generalization (1) to the case where \(X_{V}\) is partitioned into k sets, \(A_{1},\ldots , A_{k}\). In the special case where \(k=p\) so that every set contains a single variable, such inflation factor becomes a global measure of association and it is equal to \(1/|\varOmega |\), where \(\varOmega ={\text {diag}}(\varSigma )^{-\frac{1}{2}}\varSigma {\text {diag}}(\varSigma )^{-\frac{1}{2}}\) is the correlation matrix of \(X_{V}\), with entries \(\rho _{uv}\), for \(u,v\in V\). This result is consistent with the usual interpretation of the determinant of \(\varOmega \) as common global measure of collinearity, justified by noting that \(|\varOmega |=1\) for mutually uncorrelated variables and \(|\varOmega |=0\) for perfectly collinear variables.

Roverato and Castelo (2020) introduced the matrix

$$\begin{aligned} \varOmega ^{V}={\text {diag}}(K)^{\frac{1}{2}}\varSigma {\text {diag}}(K)^{\frac{1}{2}}, \end{aligned}$$
(2)

and named \(\varOmega ^{V}\) the inflated correlation matrix because its entries are given by \(\varrho _{vv}^{V}={\text {IF}}_{v}\) for every \(v\in V\) and by \(\varrho _{uv}^{V} =\rho _{uv} \sqrt{{\text {IF}}_{u}\, {\text {IF}}_{v}}\) for every \(u,v\in V\) with \(v\ne u\). Note that for \(|V|=2\) the inflated correlation \(\varrho _{uv}^{V}\) becomes \(\varrho ^{\{u,v\}}_{uv}=\rho _{uv}/(1-\rho _{uv}^{2})\). Furthermore, they showed that the determinant of \(\varOmega ^{V}\) can be computed as

$$\begin{aligned} |\varOmega ^{V}|=\frac{|\varSigma |}{\prod _{v\in V}\sigma _{vv\cdot V\setminus \{v\}}} \end{aligned}$$

and that this determinant provides an alternative global measures of linear association which, like \(1/|\varOmega |\), takes values in the interval \([1, +\infty )\) and is equal to one if and only if \(\varSigma \) is diagonal.

The quantities defined in this section can also be computed with respect to the distribution of \(X_{A}\mid X_{B}\). More specifically, we will denoted by \(\varOmega ^{V}_{AA\cdot B}=\{\varrho ^{V}_{uv\cdot B}\}_{u,v\in A}\) the inflated correlation matrix of \(X_{A}\mid X_{B}\) and we remark that if \(A\cup B=V\) then, similarly to the covariance matrix \(\varSigma _{AA\cdot {\bar{A}}}\), the matrix \(\varOmega ^{V}_{AA\cdot B}\) can be computed as \(\varOmega ^{V}_{AA\cdot B}=\varOmega ^{V}_{AA}-\varOmega ^{V}_{AB}(\varOmega ^{V}_{BB})^{-1}\varOmega ^{V}_{BA}\).

2.2 Concentration graph models

An undirected graph with vertex set V is a pair \(\mathcal {G}=(V, \mathcal {E})\) where \(\mathcal {E}\) is a set of edges, which are unordered pairs of vertices; formally \(\mathcal {E}\subseteq V\times V\). The graphs we consider have no self-loops, that is \(\{v, v\}\not \in \mathcal {E}\) for any \(v\in V\). A path of length \(k\ge 2\) between x and y in \(\mathcal {G}\) is a sequence \(\pi =\langle x=v_{1},\ldots ,v_{k}=y\rangle \) of distinct vertices such that \(\{v_{i},v_{i+1}\}\in \mathcal {E}\) for every \(i=1,\ldots ,k-1\). We denote by \(V(\pi )\subseteq V\) and \(\mathcal {E}(\pi )\subseteq \mathcal {E}\) the set of vertices and edges of the path \(\pi \), respectively. We write \(\pi _{xy}\) when we want to make more explicit which are the endpoints of the path and, furthermore, when clear from the context we will set \(P\equiv V(\pi )\) thereby improving the readability of sub- and super-scripts. For a pair of vertices \(x,y\in A\) we denote by \(\varPi ^{V}_{xy}\equiv \varPi _{xy}\) the collection of all paths between x and y in \(\mathcal {G}\).

If K is the concentration matrix of \(X_{V}\) then for every \(u,v\in V\) it holds that

$$\begin{aligned} \sigma _{vv\cdot V\setminus \{v\}}=\frac{1}{\kappa _{vv}} \quad \text{ and }\quad \rho _{uv\mid V\setminus \{u,v\}}=\frac{-\kappa _{uv}}{\sqrt{\kappa _{uu}\kappa _{vv}}} \end{aligned}$$

where \(\rho _{uv\mid V\setminus \{u,v\}}\) is the partial correlation coefficient of \(X_{u}\) and \(X_{v}\) given \(X_{V\setminus \{u,v\}}\); see Whittaker (1990, section 5.7). It follows that \(\rho _{uv\mid V\setminus \{u,v\}}=0\) if and only if \(\kappa _{uv}=0\) and we say that K is adapted to a graph \(\mathcal {G}=(V, \mathcal {E})\) if for every \(\kappa _{uv}\ne 0\), with \(u\ne v\), it holds that \(\{u,v\}\in \mathcal {E}\) and, accordingly, we call \(\mathcal {G}\) a concentration graph of \(X_{V}\).

The concentration graph model (Cox and Wermuth 1996) with graph \(\mathcal {G}=(V, \mathcal {E})\) is the family of multivariate normal distributions whose concentration matrix is adapted to \(\mathcal {G}\). The latter model has also been called a covariance selection model (Dempster 1972) and a graphical Gaussian model (Whittaker 1990); we refer the reader to Lauritzen (1996) for details and discussion.

2.3 Decomposition of association measures over \(\varvec {\mathcal {G}}\)

In the analysis of concentration graph models, Jones and West (2005) showed that the covariance between two variables can be computed as the sum of weights associated with the paths joining the two variables. More specifically, if the concentration matrix K of \(X_{V}\) is adapted to the graph \(\mathcal {G}=(V, \mathcal {E})\) then for every \(x,y\in V\) it holds that

$$\begin{aligned} \sigma _{xy} =\sum _{\pi \in \varPi _{xy}} \omega (\pi , \varSigma ) \end{aligned}$$
(3)

where

$$\begin{aligned} \omega (\pi , \varSigma ) = (-1)^{|P|+1}\;\frac{|K_{{\bar{P}} {\bar{P}}}|}{|K|}\;\prod _{\{u,v\}\in \mathcal {E}(\pi )} \kappa _{uv}. \end{aligned}$$
(4)

The quantity \(\omega (\pi , \varSigma )\) in (4) represents the contribution of the path \(\pi \) to the covariance \(\sigma _{xy}\) and for this reason we call it the covariance weight of \(\pi \) relative to \(X_{V}\). More generally, we will refer to (3) with the name of the covariance decomposition over \(\mathcal {G}\).

An issue concerning the covariance decomposition in (3) is the interpretation of the values taken by the weights of a path. From this perspective, Roverato and Castelo (2020) showed that every covariance weight can be factorized as \(\omega (\pi , \varSigma )=\omega (\pi , \varSigma _{PP\cdot {\bar{P}}})\times {\text {IF}}_{P}\), with the two factors which provide two clearly distinct pieces of information. More specifically, the first term, \(\omega (\pi , \varSigma _{PP\cdot {\bar{P}}})\), is the covariance weight computed on the distribution of \(X_{P}\mid X_{{\bar{P}}}\) and captures the strength of the path, after adjusting for all the variables outside the path, while the inflation factor \({\text {IF}}_{P}\) captures the connectivity of the vertices of the path with the rest of the multivariate system.

Example 2

Table 1 gives the entries of a covariance matrix, \(\varSigma \), whose inverse K is adapted to the graph \(\mathcal {G}\) of Fig. 1. There are \(|\varPi _{xy}|=6\) paths between x and y in \(\mathcal {G}\) and these are given in Table 2, together with the corresponding weights. The covariance of \(X_{x}\) and \(X_{y}\) is equal to \(\sigma _{xy}=2.411\), and it can be readily checked that \(\sum _{\pi \in \varPi _{xy}} \omega (\pi , \varSigma )=\sum _{i=1}^{6} \omega (\pi _{i}, \varSigma )=\sigma _{xy}\). Because the six weights have the same sign (they are actually all positive) it makes sense to include in Table 2 a column with the relative contribution of every path to the covariance. This shows, for example, that almost 50% of the value of \(\sigma _{xy}\) is due to path \(\pi _{3}\). The decomposition of covariance weights into partial weighs and inflation factor is given in the last two columns of Table 2. One can see that the relevance of path \(\pi _{3}\) with respect to the other paths is mainly due to its partial weight because its inflation factor is only slightly larger than those of the other paths.

Table 2 All the paths between x and y in the graph of Fig. 1 with the corresponding weights, proportion of covariance due to the weight, partial weight and inflation factor, where \(P_{i}=V(\pi _{i})\)

It can be shown that the value of a covariance weight depends on the scale of the variables which are endpoint of the path. Hence, in order to compare paths with different endpoints it is necessary to deal with normalized quantities. Roverato and Castelo (2020) noticed that the decomposition in (3) is not restricted to covariance matrices but it can be straightforwardly extended to any positive definite matrix \(\varGamma =\{\gamma _{uv}\}_{u,v\in V}\) obtained as \(\varGamma =\varDelta \varSigma \varDelta \) where \(\varDelta =\{\delta _{uv}\}_{u,v\in V}\) is a diagonal matrix with nonzero diagonal entries. More specifically, both \(\varOmega \) and \(\varOmega ^{V}\) are specific instances of this general setting with \(\varDelta ={\text {diag}}(\varSigma )^{-\frac{1}{2}}\) and \(\varDelta ={\text {diag}}(K)^{\frac{1}{2}}\), respectively. Indeed, both correlations and inflated correlations are normalized measures of association and for this reason the corresponding weights are of interest. More specifically, Roverato and Castelo (2020) provided the following decomposition of inflated correlations,

$$\begin{aligned} \varrho ^{V}_{xy} =\sum _{\pi \in \varPi _{xy}} \omega (\pi , \varOmega ^{V}) \end{aligned}$$
(5)

where

$$\begin{aligned} \omega (\pi , \varOmega ^{V})= |\varOmega ^{V}_{PP}| \prod _{\{u.v\}\in \mathcal {E}(\pi )}\rho _{uv\mid V\setminus \{u,v\}}; \end{aligned}$$
(6)

we refer to Roverato and Castelo (2020) for details on the properties of inflated correlation weights. Here we remark that, as well as the weight in (4) also inflated correlation weights can be factorized into a partial weight and an inflation factor, \(\omega (\pi , \varOmega ^{V})=\omega (\pi , \varOmega ^{V}_{PP\cdot {\bar{P}}})\times {\text {IF}}_{P}\) and, furthermore, all the factors in (6) are feasible of a clear interpretation because it is the product of the partial correlations corresponding to the edges of the path and of \(|\varOmega ^{V}_{PP}|\ge 1\) which “inflates” the partial correlations.

3 On the relationship between inflation factors and inflated correlation matrices

In the theory of path weights a key role is played by both inflation factors and inflated correlation matrices. The inflation factor \({\text {IF}}_{A}^{B}\) provides a well-established way to quantify the linear association between two random vectors \(X_{A}\) and \(X_{B}\). On the other hand, the inflated correlation matrix \(\varOmega ^{V}\) was firstly introduced by Roverato and Castelo (2020) who showed that the determinant of this matrix can be regarded as multivariate generalization of the inflation factor, and therefore as a global measure of linear association of \(X_{V}\). As well as the inflation factor, also \(|\varOmega ^{V}|\) takes values in the interval \([1; +\infty )\) where the value 1 represents absence of linear association, and in this section we formally establish a connection between these two quantities. The stated relationship between inflation factors and inflated correlation matrices will be exploited in the next section to the computation and interpretation of path weights. However, it is also of theoretical interest because it provides a clear way to interpret the value of \(|\varOmega ^{V}|\), thereby allowing us to gain insight into the type of information conveyed by this quantity.

We first need to prove the following lemma.

Lemma 1

Let \(X_{V}\) be a random vector indexed by a finite set V and let \(\varOmega ^{V}\) be its inflated correlation matrix. If \(A,B\subseteq V\) is a pair of subsets of V with \(A\ne \emptyset \), then for every \(v\in A\) the following factorizations hold true,

  1. (i)

    \({\text {IF}}_{A}^{B}={\text {IF}}_{v\mid A^{\prime }}^{B}\times {\text {IF}}_{A^{\prime }}^{B}\);

  2. (ii)

    \(|\varOmega ^{V}_{AA}|=|\varOmega ^{V}_{A^{\prime }A^{\prime }\cdot \{v\}}| \times {\text {IF}}_{v}\);

  3. (iii)

    \(|\varOmega ^{V}_{AA\cdot B}|=|\varOmega ^{V}_{A^{\prime }A^{\prime }\cdot B\cup \{v\}}| \times {\text {IF}}_{v|B}\).

where \(A^{\prime }=A\setminus \{v\}\). Note that in the case where \(A=\{v\}\) and \(B=V\setminus \{v\}\) the identity (iii) becomes \(|\varOmega ^{V}_{\{v\}\{v\}\cdot V\setminus \{v\}}| =\varOmega ^{V}_{\{v\}\{v\}\cdot V\setminus \{v\}} =1.\)

Proof

In the case where \(A=\{v\}\), so that \(A^{\prime }=\emptyset \), the results (i) and (ii) are trivially true because the identity (i) becomes \({\text {IF}}_{A}^{B}={\text {IF}}_{v\mid \emptyset }^{B}\) whereas the identity (ii) is \(|\varOmega ^{V}_{AA}|=\varOmega ^{V}_{\{v\}\{v\}}={\text {IF}}_{v}\). Furthermore, in (iii) \(|\varOmega ^{V}_{AA\cdot {\bar{A}}}|=\varOmega ^{V}_{\{v\}\{v\}\cdot {\bar{A}}}=\sigma _{vv\cdot {\bar{A}}}\times \kappa _{vv}=\frac{\sigma _{vv\cdot {\bar{A}}}}{\sigma _{vv\cdot {\bar{A}}}}=1\).

The identity (i) can be shown by using the alternative formulation of the inflation factor given in Roverato and Castelo (2020, eqn. (4)) and then applying the Schur’s determinant identity formula as follows,

$$\begin{aligned} {\text {IF}}_{A}^{B} =\frac{|\varSigma _{AA}|}{|\varSigma _{AA\cdot B}|} =\frac{\sigma _{vv\cdot A^{\prime }}}{\sigma _{vv\cdot A^{\prime }\cup B}} \times \frac{|\varSigma _{A^{\prime }A^{\prime }}|}{|\varSigma _{A^{\prime }A^{\prime }\cdot B}|} = {\text {IF}}_{v\mid A^{\prime }}^{B}\times {\text {IF}}_{A^{\prime }}^{B}; \end{aligned}$$
(7)

notice that (7) is still valid if either \(A^{\prime }\) or B are equal to the empty set because if \(A^{\prime }=\emptyset \) then, by convention, \(|\varSigma _{A^{\prime }A^{\prime }}|=|\varSigma _{A^{\prime }A^{\prime }\cdot B}|={\text {IF}}_{A^{\prime }}^{B}\) and, similarly, if \(B=\emptyset \) then \({\text {IF}}_{v\mid A^{\prime }}^{B}={\text {IF}}_{A^{\prime }}^{B}=1\).

In order to show (iii) we first apply the Schur’s determinant identity formula to \(|\varOmega ^{V}_{AA\cdot B}|\) as follows,

$$\begin{aligned} |\varOmega ^{V}_{AA\cdot B}|=|\varOmega ^{V}_{A^{\prime }A^{\prime }\cdot B\cup \{v\}}| \times |\varOmega ^{V}_{\{v\}\{v\}\cdot B}| \end{aligned}$$

with

$$\begin{aligned} |\varOmega ^{V}_{\{v\}\{v\}\cdot B}|=\varOmega ^{V}_{\{v\}\{v\}\cdot B}=\kappa _{vv}\times \sigma _{vv\cdot B} =\frac{\sigma _{vv\cdot B}}{\sigma _{vv\cdot V\setminus \{v\}}}={\text {IF}}_{v|B} \end{aligned}$$
(8)

where \(k_{vv}\) is the relevant entry of the concentration matrix K of \(X_{V}\). We also notice that in the case where \(A=\{v\}\) and \(B={\bar{A}}=V\setminus \{v\}\) then (8) becomes

$$\begin{aligned} |\varOmega ^{V}_{\{v\}\{v\}\cdot V\setminus \{v\}}| =\varOmega ^{V}_{\{v\}\{v\}\cdot V\setminus \{v\}} =1. \end{aligned}$$

Finally, (ii) is a special case of (iii) obtained by setting \(B=\emptyset \). \(\square \)

It is worth remarking that, in order to apply Lemma 1 in the case where either \(A^{\prime }\) or B are empty, one has to recall that in this paper we use the convention that the determinant of matrices indexed by the empty set are equal to one and this also implies, for instance, that \({\text {IF}}_{\emptyset }^{B}={\text {IF}}_{v}^{\emptyset }=1\).

For a nonempty set \(A\subseteq V\) consider a numbering of the elements of \(A=\{v_{1},\ldots , v_{|A|}\}\). Then the predecessors of a vertex \(v_{i}\in A\), denoted by \({\text {pr}}(v_{i})\), are those vertices that have lower number than \(v_{i}\), formally \({\text {pr}}(v_{i})=\{v_{1},\ldots , v_{i-1}\}\); hence, \({\text {pr}}(v_{1})=\emptyset \).

Theorem 2

Let \(X_{V}\) be a random vector indexed by a finite set V with \(|V|=p\), and let \(\varOmega ^{V}\) be its inflated correlation matrix. Then for any nonempty subset \(A\subseteq V\) and any numbering of the elements of \(A=\{v_{1},\ldots , v_{|A|}\}\) it holds that,

$$\begin{aligned} |\varOmega ^{V}_{AA}|=\prod _{i=1}^{|A|} {\text {IF}}_{v_{i}\mid {\text {pr}}(v_{i})}. \end{aligned}$$
(9)

Furthermore, when \(A=V\) the last term of the factorization (11) is equal to one, that is \({\text {IF}}_{v_{p}\mid {\text {pr}}(v_{p})}=1\).

Proof

If \(|A|=1\) then (9) is equivalent to point (ii) of Lemma 1. Hence we assume \(|A|=q\) with \(q\ge 2\) and consider an arbitrary numbering \(A=\{v_{1},\ldots , v_{q}\}\) of the elements of A. Hence, we can first apply the factorization (ii) of Lemma 1 to obtain \(|\varOmega ^{V}_{AA}|=|\varOmega ^{V}_{A^{\prime }A^{\prime }\cdot \{v_{1}\}}| \times {\text {IF}}_{v_{1}}\), where \(A^{\prime }=A\setminus \{v_{1}\}\) and then we can apply (iii) iteratively to \(v_{2},\dots , v_{q-1}\) to obtain the factorization in (9). \(\square \)

This theorem deals with an arbitrary submatrix of \(\varOmega ^{V}\) and shows that its determinant can be written as the product of inflation factors. On the right side of (9) the elements of A are taken one at the time and the term relative to \(v_{i}\), for \(i=1,\ldots ,|A|\), captures the additional contribution of \(X_{v_{i}}\) to \(|\varOmega ^{V}_{AA}|\) with respect to the previous variables considered. Concretely, this is given by \({\text {IF}}_{v_{i}\mid {\text {pr}}(v_{i})}\), the inflation factor of \(X_{v_{i}}\) computed on the distribution of \(X_{V\setminus {\text {pr}}(v_{i})}\mid X_{{\text {pr}}(i)}\), that is the inflation factor of \(X_{v_{i}}\) on all the remaining variables linearly adjusted for \(X_{{\text {pr}}(v_{i})}\). It is worth noting that the contribution of the last variable in the numbering is \({\text {IF}}_{v_{|A|}\mid {\text {pr}}(v_{|A|})}\), that is the inflation factor of \(X_{v_{|A|}}\) on \(X_{{\bar{A}}}\) adjusted for \(X_{A\setminus \{v_{|A|}\}}\), and in the case where \(A=V\) this is equal to 1 and therefore uninfluential. In turn, this implies that \(|\varOmega ^{V}|=|\varOmega ^{V}_{V\setminus \{v\}}|\) for every \(v\in V\). It is also useful to compare (9) with the following factorization of \({\text {IF}}_{A}\).

Theorem 3

Let \(X_{V}\) be a random vector indexed by a finite set V. Then for any nonempty subset \(A\subseteq V\) and any numbering of the elements of \(A=\{v_{1},\ldots , v_{|A|}\}\) it holds that,

$$\begin{aligned} {\text {IF}}_{A}=\prod _{i=1}^{|A|} {\text {IF}}_{v_{i}\mid {\text {pr}}(v_{i})}^{{\bar{A}}}. \end{aligned}$$
(10)

Proof

The result follows from the iterative application of the factorization (i) of Lemma 1. \(\square \)

In a similar fashion to (9), each term of the factorization (10) captures the additional contribution of \(X_{v_{i}}\) to \({\text {IF}}_{A}\). In order to understand the different type of information provided by \(|\varOmega ^{V}_{AA}|\) with respect to \({\text {IF}}_{A}\) it is useful to compare every term on the right hand side of (9) with the corresponding term in (10). In this way we see that both \({\text {IF}}_{v_{i}\mid {\text {pr}}(v_{i})}^{{\bar{A}}}\) and \( {\text {IF}}_{v_{i}\mid {\text {pr}}(v_{i})}\) are computed on the distribution of \(X_{V\setminus {\text {pr}}(v_{i})}\mid X_{{\text {pr}}(i)}\), however the former inflation factor only involves the linear association between \(X_{v_{i}}\) and the variables not in A, \(X_{{\bar{A}}}\), whereas the latter inflation factor involves the linear association between \(X_{v_{i}}\) and both the variables not in A and the remaining variables in A, that is both \(X_{{\bar{A}}}\) and \(X_{A\setminus {\text {pr}}(v_{i})\cup \{v_{i}\}}\). The following result gives an additional relationship between \({\text {IF}}_{A}\) and \(|\varOmega ^{V}_{AA}|\).

Corollary 4

Let \(X_{V}\) be a random vector indexed by a finite set V and let \(\varOmega ^{V}\) be its inflated correlation matrix. If \(A,B\subseteq V\) is a pair of subsets of V with \(A\ne \emptyset \), then for any numbering of the elements of \(A=\{v_{1},\ldots , v_{|A|}\}\) it holds that,

$$\begin{aligned} |\varOmega ^{V}_{AA\cdot B}|=\prod _{i=1}^{|A|} {\text {IF}}_{v_{i}\mid B\cup {\text {pr}}(v_{i})}. \end{aligned}$$
(11)

Furthermore, when \(A\cup B=V\) so \(B={\bar{A}}\) the last term of the factorization (11) is equal to one, that is \({\text {IF}}_{v_{|A|}\mid {\bar{A}}\cup {\text {pr}}(v_{ |A|})}={\text {IF}}_{v_{|A|}\mid V\setminus \{v\}}=1\) and, furthermore it holds that

$$\begin{aligned} |\varOmega ^{V}_{AA}|={\text {IF}}_{A} \times |\varOmega ^{V}_{AA\cdot {\bar{A}}}|. \end{aligned}$$
(12)

Proof

The equality (11) follows from the iterative application of the factorization in (iii) of Lemma 1. The equality (12) follows by noticing that \({\text {IF}}_{v_{i}\mid {\text {pr}}(v_i)}/{\text {IF}}_{v_{i}\mid {\bar{A}}\cup {\text {pr}}(v_i)}={\text {IF}}_{v_{i}\mid {\text {pr}}(v_i)}^{{\bar{A}}}\), for every \(i=1\ldots , |A|\), so that it follows from (9) and (11) that \(|\varOmega ^{V}_{AA}|/|\varOmega ^{V}_{AA\cdot {\bar{A}}}|={\text {IF}}_{A}\) in (10) \(\square \)

Equation (12) show that \(|\varOmega ^{V}_{AA}|\) can be computed as the product of two quantities, \(|\varOmega ^{V}_{AA\cdot {\bar{A}}}|\) and \({\text {IF}}_{A}\). The former, \(|\varOmega ^{V}_{AA\cdot {\bar{A}}}|\), is a measure of global association of variables in \(X_{A}\) linearly adjusted for \(X_{{\bar{A}}}\) whereas the former, \({\text {IF}}_{A}\), measures the strength of the linear association between \(X_{A}\) and \(X_{{\bar{A}}}\). Recall that both \(|\varOmega ^{V}_{AA\cdot {\bar{A}}}|\ge 1\) and \({\text {IF}}_{A}\ge 1\) and therefore \(|\varOmega ^{V}_{AA}|=1\) if and only if \(\varSigma _{AA\cdot {\bar{A}}}\) is diagonal and \(\varSigma _{A{\bar{A}}}=0\).

4 Decomposition of inflated correlation weights

In this section we consider the inflated correlation weights in (6) and exploit the results of the previous section to provide an alternative formulation of these quantities that identifies the role played by every vertex and edge of the path.

Assume that the concentration matrix K of the random vector \(X_{V}\) is adapted to the undirected graph \(\mathcal {G}=(V, \mathcal {E})\) and let let \(\pi =\langle v_{1},\ldots , v_{k} \rangle \) be a path between \(v_{1}\) and \(v_{k}\) in \(\mathcal {G}\). The vertices \(P=V(\pi )\) of \(\pi \) are naturally ordered along the path and, more precisely, because the paths we consider are undirected, every path identifies two different orderings of its vertices each starting from one of the two endpoints of the path. We will refer to these orderings as the two natural numberings of the vertices of the path.

Proposition 5

Let K be the concentration matrix of \(X_{V}\). If K is adapted to the graph \(\mathcal {G}=(V, \mathcal {E})\) then for every path \(\pi =\langle v_{1},\ldots , v_{k} \rangle \) between \(v_{1}\) and \(v_{k}\) in \(\mathcal {G}\) it holds that

$$\begin{aligned} \omega (\pi , \varOmega ^{V}) = \prod _{i=1}^{|V(\pi )|}{\text {IF}}_{v_{i}|{\text {pr}}(v_{i})} \prod _{\{u,v\}\in \mathcal {E}(\pi )} \rho _{uv\mid V\setminus \{u,v\}}. \end{aligned}$$
(13)

Proof

The result follows from the application of Theorem 2 to the definition of \(\omega (\pi , \varOmega ^{V})\) in (6). \(\square \)

We illustrate the application of Proposition 5 with an example.

Example 3

The covariance matrix given in the Example 1 can be inverted to obtain a concentration matrix that is adapted to the graph depicted in Fig. 1. The path \(\pi _{xy}=\langle x, 1, 2, y\rangle \) has inflated correlation weight equal to \(\omega (\pi _{xy}, \varOmega ^{V})=0.09\) and if we apply Proposition 5 with respect to the natural vertex numbering starting from the endpoint x we can associate to every vertex of the path an inflation factor and to every edge a partial correlation, as follows, where we write \(\rho _{uv\mid rest}\) to denote the partial correlation between \(X_{u}\) and \(X_{v}\) given all the remaining variables \(X_{V\setminus \{u,v\}}\).

The factorization of \(\omega (\pi , \varOmega ^{V})\) in (13) can be carried out with respect to any of the two natural numberings of the vertices of the path.

Example 3

(Continued) An alternative decomposition of the weight \(\omega (\pi _{xy}, \varOmega ^{V})\) for \(\pi _{xy}=\langle x, 1, 2, y\rangle \) can be obtained from the natural ordering of the vertices of the path starting from the endpoint y, as follows.

The possible choice of different vertex numbering may be an advantage. For instance, as shown below, the comparison of the two paths \(\pi _{xy}\) and \(\pi _{xz}\) in (16) becomes straightforward if one considers for both weights the natural numbering starting from the endpoint x of the two paths. On the other hand, the paths we consider are undirected and it is desirable to have a decomposition of path weights that is symmetric with respect to the two endpoints of the path. To this aim, for a path \(\pi _{xy}\) we consider the two natural ordering of its vertices and denote by \({\text {pr}}_{x}(v)\) and \({\text {pr}}_{y}(v)\) the predecessor of \(v\in V\) with respect to numbering starting from x and y respectively. Hence, we introduce an inflation factor computed as the geometric mean of the corresponding inflation factors in the two natural numbering of the vertices.

$$\begin{aligned} {\text {IF}}_{\langle v, \pi _{xy} \rangle } = \left( {\text {IF}}_{v|{\text {pr}}_{x}(v)}\times {\text {IF}}_{v|{\text {pr}}_{y}(v)}\right) ^{\frac{1}{2}} \end{aligned}$$
(14)

and we will simply write \({\text {IF}}_{\langle v\rangle }\) when it is clear from the context which path we are referring to. We can now state the main result of this section.

Theorem 6

Let K be the concentration matrix of \(X_{V}\). If K is adapted to the graph \(\mathcal {G}=(V, \mathcal {E})\) then for every path \(\pi =\langle v_{1},\ldots , v_{k} \rangle \) between \(v_{1}\) and \(v_{k}\) in \(\mathcal {G}\) it holds that

$$\begin{aligned} \omega (\pi , \varOmega ^{V}) = \prod _{v\in V(\pi )}{\text {IF}}_{\langle v\rangle } \prod _{\{u,v\}\in \mathcal {E}(\pi )} \rho _{uv\mid V\setminus \{u,v\}}. \end{aligned}$$
(15)

Proof

The result follows because

$$\begin{aligned} \prod _{v\in V(\pi _{xy})}{\text {IF}}_{\langle v, \pi _{xy}\rangle }&= \prod _{v\in V(\pi _{xy})}\left( {\text {IF}}_{v|{\text {pr}}_{x}(v)}\times {\text {IF}}_{v|{\text {pr}}_{y}(v)}\right) ^{\frac{1}{2}}\\&= (\prod _{v\in V(\pi _{xy})}{\text {IF}}_{v|{\text {pr}}_{x}(v)})^{\frac{1}{2}}(\prod _{v\in V(\pi _{xy})} {\text {IF}}_{v|{\text {pr}}_{y}(v)})^{\frac{1}{2}}\\&=|\varOmega ^{V}_{PP}|. \end{aligned}$$

\(\square \)

The decomposition of \(\omega (\pi , \varOmega ^{V})\) in (15) is uniquely associated to a path and can effectively capture the role played by the building blocks of the path, as shown in the example below.

Example 3

(Continued) The decomposition (15) of \(\omega (\pi _{xy}, \varOmega ^{V})\) is as follows.

Unlike each of the two decompositions obtained from the two natural numbering of vertices, this decomposition shows that the variables \(X_{x}\), \(X_{2}\) and \(X_{y}\) play a similar role in the path. On the other and, the smallest inflation factor is associated with the vertex 1 and, interestingly, this is the only vertex in the path that is not linked with any vertex outside the path.

In graphical modelling the distinction between directed and undirected edges is important. A directed edge indicates the direction of dependence of a response on an explanatory variable. In a directed path every intermediate vertex is at the same time a response for the previous variables and explanatory for the following variables. Thus, for any directed graph there exists a natural ordering of variables that can be exploited to obtain a recursive factorization of the probability distribution. In turn, the terms of such factorization can be used to assess the contribution of each of the elementary units forming the path. On the other hand, undirected edges represent symmetric relationships whose interpretation is less straightforward, possibly resulting from a feedback relationship (Lauritzen and Richardson 2002). Thus, when investigating the interpretation of a path weight, the two endpoints of the undirected path need to be put on an equal footing. The decomposition given Theorem 6 satisfies this requirement because it is obtained from the geometric mean of the two alternative decompositions of the same weight with respect to the two natural orderings of the vertices. From this viewpoint, Proposition 5 could have been stated as a lemma preliminary to Theorem 6. However, we deem that Proposition 5 has its own interest because it can be readily applied to the comparison of paths. Consider, for instance, the case where we have a path \(\pi _{xy}=\langle x,\ldots ,y\rangle \) and \(\pi _{xz}=\langle \pi _{xy}, z\rangle =\langle x,\ldots ,y, z\rangle \) so that \(\pi _{xz}\) is exactly one edge longer than \(\pi _{xy}\).

$$\begin{aligned} \pi _{xz}:\quad&x-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\,{}\cdots -\!\!\!-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\,{}y-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\,{}z\nonumber \\ \pi _{xy}:\quad&x-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\,{}\cdots -\!\!\!-\!\!\!-\!\!\!-\!\!\!-\!\!\!-\,{}y \end{aligned}$$
(16)

Then we can compute the ratio of the two relevant weights thereby obtaining,

$$\begin{aligned} \frac{\omega (\pi _{xz}, \varOmega ^{V})}{\omega (\pi _{xy}, \varOmega ^{V})}= \rho _{yz\mid rest}\times {\text {IF}}_{z\mid V(\pi _{xy})}. \end{aligned}$$
(17)

The path \(\pi _{xz}\) has one edge and one vertex more than \(\pi _{xy}\), and the contribution of these additional components can be quantified as the product of the partial correlation associated with the additional edge and the inflated correlation associated with the additional vertex. Although the role played by the partial correlation in (17) is somehow intuitive because in concentration graph models partial correlations are naturally associated with edges, the role played by the inflation factor is more subtle. The relevance of a path within a network also depends on how its vertices interact with the rest of the network. The inflation factor in (17) quantifies the contribution of the additional variable \(X_{z}\) to the interaction with the rest of the network. This quantity is computed after the variables are adjusted with respect to \(X_{V(\pi _{xy})}\), so as that it gives the “additional” contribution of z with respect to the vertices already present in \(V(\pi _{xy})\). In fact, if the additional vertex z is connected with vertices forming the path but with no other vertex outside \(V(\pi _{xy})\), then \({\text {IF}}_{z\mid V(\pi _{xy})}=1\).

We close this section by remarking that the factorization in (15) is also of theoretical interest. Equation (5) shows the decomposition of the inflated correlation \(\varrho ^{V}_{xy}\) over the paths of \(\mathcal {G}\) where \(\varrho ^{V}_{xy}=\rho _{xy}({\text {IF}}_{x}\times {\text {IF}}_{y})^{\frac{1}{2}}\). It is theoretically relevant that an association measure might be decomposed into path weights with have the same type of interpretation. An inflated correlation coefficients is obtained from the product of a correlation and the geometric mean of two inflation factor. The right hand side of (15) is consistent with this type of interpretation because its elements are (partial) correlations and quantities obtained as geometric mean of two inflation factors.

5 Application to the construction of betweenness centrality measures

In these section we apply Theorem 6 to the construction of centrality measures and describe their use to the analysis of a network representing the eating behaviour of a group of subjects.

Undirected graphs can effectively be used to model the structure of complex systems and, in many applied contexts, the association network is expected to be very heterogeneous with some vertices and edges being more important than others in some sense. This importance can be referred to as network centrality and it is typically quantified by means of centrality measures; see Rodrigues (2019). Centrality is one of the most fundamental metrics in network science, but there is no general definition of centrality and a wide range of centrality measures focusing on different features of the network are available. One of the most prominent measure of centrality, called betweenness centrality, relies on the idea that information flows along paths. The most widely used betweenness measure is due to Freeman (1977) and it is based on the idea that a vertex has a high betweenness centrality if a large number of shortest paths crosses it. Accordingly, betweenness of a vertex is computed by summing up the fractions of shortest paths between every pairs of vertices that pass through it.

The choice to focus on shortest paths was motivated in a context of social network analysis. On the other hand, in other fields of application the assumption that information flows only along shortest paths is not justified. This has led to the introduction of alternative betweenness centrality measures where all paths contribute, possibly with different values, to the computation (Freeman et al. 1991; Newman 2005). More specifically, one can use different criteria to quantify the relevance of a path to the centrality of a vertex and this results in different betweenness measures. From this perspective, we consider the following comprehensive way to compute the betweenness of the vertex \(v\in V\),

$$\begin{aligned} B^{\chi }(v)=\sum _{x,y\in V\setminus \{v\}} B_{xy}^{\chi }(v) \end{aligned}$$
(18)

where \(B_{xy}^{\chi }(v)\) is a measure of betweenness of vertex v relative to vertices x and y, \(x\ne y\), based on the criterion \(\chi \). Although centrality is most commonly computed for vertices, also edge centrality is of interest; see Girvan and Newman (2002); Bröhl and Lehnertz (2019) and references therein. Hence, similarly to (18), we compute betweenness of an edge \(\{u,v\}\) according to the criterion \(\chi \), as

$$\begin{aligned} B^{\chi }(\{u,v\})=\sum _{x,y\in V}B_{xy}^{\chi }(\{u, v\}). \end{aligned}$$
(19)

Some applications of betweenness centrality in graphical models can be found in Bringmann et al. (2019), Dablander and Hinne (2019), Peeters et al. (2020) and Roverato and Castelo (2020). However, the construction of centrality measures specifically designed to suit the graphical model framework is a recent, and largely unexplored, area of research. In the following, we consider three different types of vertex/edge betweenness centrality. The first type is based exclusively on the graph structure and therefore not specific of the graphical model field. The second and third types are specific of concentration graph models and are based on the theory of path weights and on the weight decomposition given in Sect. 4, respectively.

We refer to the first centrality measure with the name basic because it differs from that of Freeman et al. (1991) only from the fact that it is computed using all paths rather than shortest paths. More formally, it is denoted by \(B^{\phi }(\cdot )\) and it is obtained by applying

$$\begin{aligned} B^{\phi }_{xy}(v)=\frac{\sum _{\pi \in \varPi _{xy}} \mathrm {I}_{v}(\pi ) }{|\varPi _{xy}|} \qquad \text{ and }\qquad B^{\phi }_{xy}(\{u,v\})=\frac{\sum _{\pi \in \varPi _{xy}} \mathrm {I}_{\{u,v\}}(\pi ) }{|\varPi _{xy}|}, \end{aligned}$$
(20)

in (18) and (19), respectively. Here, \(\mathrm {I}_{v}(\pi )\) denotes the indicator function that takes value one if \(v\in V(\pi )\) and zero otherwise; similarly, \(\mathrm {I}_{\{u,v\}}(\pi )=1\) if \(\{u,v\}\in \mathcal {E}(\pi )\) and zero otherwise.

We now turn to the specific case of concentration graph models. This is done by keeping into account the meaning and role that paths play in these models, and we deem that the theory of path weights provides a natural framework to address this issue. Consider the criterion \(\chi =\omega \) such that

$$\begin{aligned} B^{\omega }_{xy}(v)=\frac{\sum _{\pi \in \varPi _{xy}} |\omega (\pi , \varOmega ^{V})|\; \mathrm {I}_{v}(\pi )}{\sum _{\pi \in \varPi _{xy}} |\omega (\pi , \varOmega ^{V})|} \end{aligned}$$
(21)

and

$$\begin{aligned} B^{\omega }_{xy}(\{u,v\})=\frac{\sum _{\pi \in \varPi _{xy}} |\omega (\pi , \varOmega ^{V})|\;\mathrm {I}_{\{u,v\}}(\pi )}{\sum _{\pi \in \varPi _{xy}} |\omega (\pi , \varOmega ^{V})|}, \end{aligned}$$
(22)

so that every path contributes to the computation with its absolute inflated correlation weight. The vertex betweenness centrality based on (21) was first introduced by Roverato and Castelo (2020) whereas in (22) we use the same criterion to introduce a novel edge beweenness centrality based on path weights. Note that, if all the paths between x and y have the same sign, then \(B^{\omega }_{xy}(\cdot )\) can be interpreted as the proportion of the inflated correlation coefficients between \(X_{x}\) and \(X_{y}\) due to the paths involving the relevant vertex/edge. It is also worth remarking that, in fact, \(B^{\omega }_{xy}(v)\) can be equally interpreted as the proportion of covariance or correlation. Hereafter, we will refer to \(B^{\omega }(\cdot )\) as to the weight betweenness.

The criterion applied in (21) and (22) is, perhaps, the most straightforward way to apply the theory of path weights in the computation of betweenness centralities. A more subtle way may be obtained by considering the factorization in Theorem 6 and assigning to every path a value reflecting the role played by the relevant vertex/edge in the determination of the path weight. More specifically, we define

$$\begin{aligned} B^{\nu }_{xy}(v)=\sum _{\pi \in \varPi _{xy}} ({\text {IF}}_{\langle v, \pi _{xy} \rangle }-1)\;\mathrm {I}_{v}(\pi ) \end{aligned}$$
(23)

where \({\text {IF}}_{\langle v, \pi _{xy}\rangle }\), given in (14), represents to the contribution of vertex v to the path \(\pi \). More specifically, \({\text {IF}}_{\langle v, \pi _{xy}\rangle }\ge 1\) “inflates” the path \(\omega (\pi , \varOmega ^{V})\) of a factor equal to \(({\text {IF}}_{\langle v, \pi _{xy} \rangle }-1)\). Similarly, from Theorem 6, the contribution of an edge \(\{u,v\}\) to the weight of a path \(\pi \) between x and y may be quantified by \(({\text {IF}}_{\langle u, \pi _{xy} \rangle }|\rho _{uv\mid rest}|{\text {IF}}_{\langle v, \pi _{xy} \rangle }-1)\), thereby giving,

$$\begin{aligned} B^{\nu }_{xy}(\{u,v\})=\sum _{\pi \in \varPi _{xy}} ({\text {IF}}_{\langle u, \pi _{xy} \rangle }|\rho _{uv\mid rest}|{\text {IF}}_{\langle v, \pi _{xy} \rangle }-1)\;\mathrm {I}_{\{u,v\}}(\pi ). \end{aligned}$$
(24)

We will refer to \(B^{\nu }(\cdot )\) as to the inflation betweenness.

The rest of this section is devoted to an application where we compare the behaviour of the three types of centrality measures on a food network. Hoang et al. (2020) applied concentration graph models to learn the networks describing the eating behaviour of some distinct groups of subjects. Here, we focus on the network, given in Fig. 2, which represents the main dietary pattern for the group of men. Every vertex is associated with a food group whereas edges show how food groups are consumed in relation to each other. This graph was obtained in Hoang et al. (2020) by applying graphical lasso (Friedman et al. 2008) to a sample of 3769 subjects, and the estimates of the nonzero partial correlations can be found in Table 4. This sample is part of a larger dataset from a cross-sectional study carried out in South Korea between 2007 and 2019.

Fig. 2
figure 2

Main dietary pattern for men from Hoang et al. (2020)

In the analysis of dietary patterns it is of interest to identify food groups that play a central role in the eating behaviour (Iqbal et al. 2016; Schwedhelm et al. 2018). For the concentration graph model of Fig. 2 we computed the centrality values of the vertices according to the three criteria given above. More specifically, because betweeneess centralities scale with the number of pairs of vertices, it is common practice to apply the following normalization,

$$\begin{aligned} {\tilde{B}}^{\chi }(\cdot )=\frac{B^{\chi }(\cdot )- B^{\chi }_{\min }}{B^{\chi }_{\max }- B^{\chi }_{\min }} \end{aligned}$$

where \(B^{\chi }_{\min }\) and \(B^{\chi }_{\max }\) are the minimal and maximal values of \({\tilde{B}}^{\chi }(\cdot )\), respectively. Hence, the normalized vertex centralities are given in Table 3.

Table 3 Normalized vertex betweenness centralities for the dietary pattern of Fig. 2

It is of interest to compare the generic basic centrality with the two specific weight and inflation centralities. To this aim we look at the correlation coefficient between every pair of measures, which turns out to be always positive, ranging from 0.79 to 0.91. Hence, from this viewpoint the three measures provide similar results. There are however also some differences of interest. Both the basic and the weight centrality identify light-color vegetables as the most central vertex, whereas the inflation centrality puts this vertex in second position, behind condiment and seasoning. We can, somehow informally, say that light-color vegetables is a central vertex because it contributes to the computation of a high proportion of the correlation of other variables, whereas condiment and seasoning is a central vertex because of the number of paths it belongs to and the relevant contribution it gives to the weight of such paths. Furthermore, basic betweenness identifies a cluster of 4 vertices with high centrality value whereas both the weight and inflation centralities restrict the set of highly central vertices to two elements, thereby highlighting the relevance of these two vertices in the network.

We turn now to edge betweenness, whose values are given in Table 4. Unlike vertex centrality, there are important differences in this case. Indeed, the most central edge according to basic centrality is the least central edge according to the other two types of edge centrality. More generally, basic centrality is negatively correlated with each of the other two centralities. In concentration graph models, an edge is not present in the graph if its partial correlation is equal to zero, and the absolute value of partial correlations are often regarded as a measure of edge relevance. Partial correlations enter in the computation of path weights whereas they play no role in the computation of the basic centrality. More specifically, we note that the correlation between the values of the basic centrality measures and the estimated of partial correlations is equal to \(-0.11\), and therefore negative. We also note that, for the most central edge according to the basic centrality, that is the edge joining tubers and roots with other seafood, the associated partial correlation is one of those with smallest value. Hence, form this perspective, the edge basic centrality measure does not seem to properly suit the graphical model framework. As expected, both weight and inflation centrality have a positive correlation with the estimated partial correlations. On the other hand, partial correlation is only one of the determinant of these centrality values and, interestingly, the two most central vertices according to both the weight and the inflation centralities are the edges joining light colored vegetables with mushrooms and seaweeds, respectively, and the removal of any of these edges would make the graph disconnected. The results provided by the weight and the inflation edge centralities are similar, but not identical, and the correlation between the values of these two measures is equal to 0.7. When comparing the three edge centralities it is interesting to notice that the five most central edges according to the inflation centrality have all one of the endpoints equal to light colored vegetables.

Table 4 Estimated partial correlations and normalized edge betweenness centralities for the dietary pattern of Fig. 2

Indeed, the inflation centrality clearly identifies all the edges starting from light colored vegetables as highly central so as to pinpoint the relevance of the hub associated with this vertex. On the other hand, the basic edge centrality ranks the vertices of this hub in its lowest positions thereby regarding this structural component of the network as non-central. This seems to be in contradiction with the basic vertex centrality which identifies light colored vegetables as the most central vertex. Finally, the information provided by the weight edge centrality with respect to this hub is more ambiguous giving high centrality value to some edges but low value to others.

We close this section by noticing that, potentially, there are exponentially many paths between two vertices of a graph and therefore, for large graphs, the computation of centrality measures that requires the identification of all paths may be computationally unfeasible. The weight and inflation centrality measures introduced in this section seem to give comparable results; however, inflation centrality has the advantage that it is computationally less demanding because its computation does not involve all the paths between two vertices, but only those involving the vertex of interest.

6 Discussion

In recent years there is a growing interest on how to make use and interpret the properties of networks, such as the identification of relevant edges and paths, the computation of centrality measures, the identification of communities. Of special interest is the investigation of methods especially suited for graphical models where the structure of the graph encodes the independence structure of the variables. The theory developed in this paper goes in this direction. Paths play a central role in undirected graphical models and are the key structures to be used in the identification, for instance, of relevant patterns and of vertex which may be regarded as central. It is therefore important to meaningfully associate weights to the paths of a graph which may then be used in the computation of summary measures, such as betweenness centrality measures, and in the comparison of relevant patterns.

In the examples considered in this paper there seems to be a relationship between weight and path length, in the sense that the shorter the path the larger the path weight. This is due to the role played by partial correlations. As shown in (17), if we start from a path and add one edge to it, then the original weight is updated by multiplying it by two factors: (i) an inflation factor that makes the weight value larger because it is greater than one, (ii) a partial correlation that makes the weight value smaller because it belongs to the interval \((-1,\; 1)\). In the examples we consider, the partial correlation component of the update has always a stronger effect and thus longer paths tend to have smaller weight. A formal analysis of this behavior is an interesting direction of future research so as to clarify to what extent, in large graphs, one could discard large paths and restrict the attention to smaller ones.

The family of undirected graph models and the family of models for directed acyclic graphs (DAGs) have some elements in common. More specifically, there exists a one-to-one relationship between the family of models for undirected decomposable graphs and the family of models for perfect DAGs. In DAGs the relevance of a path is quantified by the theory of path analysis and a second future research direction involve the comparison of the theory of path weights in models which belong to both families.