Statistical Mechanics of Multiplex Ensembles: Entropy and Overlap

Ginestra Bianconi

I Introduction

In the last years large attention has been paid to single networks RMP; Newman_rev; Boccaletti2006; Fortunato with breakthroughs revealing the deep relation between topological properties of the networks and their dynamics crit; Dynamics. Nevertheless, many systems are not formed by isolated networks, instead they are formed by a network of networks Mucha; Thurner; Havlin3. Examples include multimodal transportation networks Kurant2006; traffic, climatic systems Donges2011, economic markets Yang2009, energy-supply networks Havlin1 and the human brain Bullmore2009. Moreover many networks are multiplex indicating the fact that two nodes can belong to different networks at the same time. For example this is the case of social networks in which agents can be linked at same time, by familiar relationships, friendship, professional collaboration, co-location, email communication and so on. The offshoot of the network theory fundamental insights is that for us working in statistical mechanics it is now possible - in a sense it is mandatory – to move into the field to shed light on the complexity on interdependent networks and multiplexes. In this context, new measures for multiplex Thurner; Boccaletti; Marc and new models of growing multiplexes Growth1; Growth2 have been proposed. Moreover, several works have studied dynamical processes taking place on multiplexes and interacting networks and new surprising phenomena have been observed in this context involving percolation Havlin1; Havlin2; Son; JSTAT, cascades Leicht, diffusion Diffusion, epidemic spreading Boguna and cooperation Cooperation,opinion dynamics EPL and community detectionMucha; N1; N2.

Yet, we are only at the beginning of the research on interacting networks and multiplexes and we need to develop further theoretical frameworks to extract information from multiplex data. For this purpose we need new statistical mechanics methods to analyze multiplex and interacting networks data.

An important tool to study real networks is to compare them with null models represented by randomized network ensembles. For single networks an equilibrium statistical mechanics framework has been recently formulated Newman1; Newman2; BianconiEPL; BC; AB2009; AB2010; Annibale; Ne1; NeK2; Munoz; Garlaschelli; Peixoto; Bornholdt in order to characterize network ensembles. A network ensemble is defined as a set of networks that satisfy a given number of structural constraints, i.e. degree sequence, community structure etc. Every set of constraints can give rise to a microcanonical network ensemble, satisfying the hard constraints, or to a canonical network ensemble in which the constraints are satisfied in average. This construction is symmetric to the classical ensemble in statistical mechanics where one considers system configurations compatible either with a fixed value of the energy (microcanonical ensembles) or with a fixed average of the energy determined by the thermal bath (canonical ensembles). For example the G(N,L)G(N,L) random graphs formed by networks of NN nodes and LL links is an example of microcanonical network ensemble while the G(N,p)G(N,p) ensembles, where each pair of links is connected with probability pp, is an example of canonical network ensemble since the number of links can fluctuate but has a fixed average given by ⟨L⟩=pN(N−1)/2\langle{L}\rangle=pN(N-1)/2. A theoretical question that arise in the study of network ensembles is whether the microcanonical ensemble and the corresponding canonical ensemble are equivalent in the thermodynamics limit. It turns out AB2009; AB2010 that when the number of constraints in two conjugated network ensembles is extensive, the ensembles are no longer equivalent in the thermodynamic limit and it is important to characterize their differences. For example microcanonical and canonical network ensembles with given degree sequence are non equivalent in the thermodynamic limit.

The entropy of network ensembles is given by the logarithm of the number of typical networks in the ensemble. The entropy of a network ensemble quantifies the complexity of the ensemble. In particular we have that the smaller is the entropy of the ensemble the smaller is the number of networks satisfying the corresponding constraints and implying that these networks are more optimized. Both the network ensembles and their entropy can be used on several inference problems to extract information from a given network Leicht2; PNAS . Given the relevance of the statistical mechanics of randomized network ensembles for describing real networks, it is important to extend this successful approach to describe multiplex ensembles. In this paper we have chosen to consider only simple multiplex but the results can be easily extended to directed and weighted networks. We plan to consider these more complex cases in later publications.

In this paper we will show how to treat multiplex ensembles as null models for multiplexes. We will introduce a distinction between uncorrelated multiplex ensembles and correlated multiplex ensembles in which the existence of a link in one layer is correlated to the existence of a link in another layer. We will characterize the overlap between links in two different layers in the case of uncorrelated and correlated multiplex ensembles. We will evaluate the entropy of microcanonical and canonical multiplex ensembles for a large variety of constraints. Finally this work open a new scenario for building null models of multiplex ensembles that has the promise to be used in a large variety of inference problems. The paper is organized as follows. In section II we introduce multiplexes and the global and local overlap of the links in the two layers. In section III we introduce multiplex ensembles, their entropy and correlations. In section IV we describe canonical multiplex ensembles, we distinguish these ensembles as correlated or uncorrelated. We give relevant examples of these ensembles, we calculate their entropy and their overlap and give algorithms to construct multiplexes in these ensembles. In section V we describe microcanonical multiplex ensembles. We give relevant examples of both correlated and uncorrelated microcanonical multiplex ensembles and calculate their entropy. Finally in section VI we make the concluding remarks.

II Multiplex and overlap between two layers

Consider a multiplex formed by NN labelled nodes i=1,2…,Ni=1,2\ldots,N and MM layers. We can represent the multiplex as described for example in Mucha. To this end we indicate by G⃗=(G1,G2…GM)\vec{G}=(G^{1},G^{2}\ldots G^{M}) the set of all the networks GαG^{\alpha} at layer α=1,2,…,M\alpha=1,2,\ldots,M forming the multiplex. Each of these networks has an adjacency matrix with matrix elements aijα=1a_{ij}^{\alpha}=1 if there is a link between node ii and node jj in layer α=1,2,…M\alpha=1,2,\ldots M and zero otherwise. Moreover for a multiplex we can define multilinks, and multidegrees in the following way. Let us consider the vector m⃗=(m1,m2,…,mα,…mM)\vec{m}=(m_{1},m_{2},\ldots,m_{\alpha},\ldots m_{M}) in which every element mαm_{\alpha} can take only two values mα=0,1m_{\alpha}=0,1. We define a multilink m⃗\vec{m} the set of links connecting a given pair of nodes in the different layers of the multiplex and connecting them in the generic layer α\alpha only if mα=1m_{\alpha}=1. We can therefore introduce the multiadjacency matrices Am⃗A^{\vec{m}} with elements Aijm⃗A_{ij}^{\vec{m}} equal to 1 if there is a multilink m⃗\vec{m} between node ii and node jj and zero otherwise, i.e. the multiadjacency matrices have elements Aijm⃗=0,1A_{ij}^{\vec{m}}=0,1 given by

Therefore we can define the total number of multilinks m⃗\vec{m} in a network as the total number of pairs of nodes connected by a multilink m⃗\vec{m}. Moreover we can define the multidegree m⃗\vec{m} of a node ii, kim⃗k_{i}^{\vec{m}} as the total number of multilinks m⃗\vec{m} incident to node ii, i.e.

We note here that the multilink m⃗=0⃗\vec{m}=\vec{0} between two nodes represent the situation in which in all the layers of the multiplex the two nodes are not directly linked. To have a uniform notation we refer also in this case to a multilink. Moreover we observe that the multiadjacency matrices are not all independent. In fact they satisfy the following normalization condition

For two layers α,α′\alpha,\alpha^{\prime} of the multiplex we can define the global overlap Oα,α′O^{\alpha,\alpha^{\prime}} as the total number of pair of nodes connected at the same time by a link in layer α\alpha and a link in layer α′\alpha^{\prime}, i.e.

For a node ii of the multiplex, we can define the local overlap oiα,α′o_{i}^{\alpha,\alpha^{\prime}} of the links in two layers α\alpha and α′\alpha^{\prime} as the total number of nodes jj linked to the node ii at the same time by a link in layer α\alpha and a link in layer α′\alpha^{\prime}, i.e.

We expect the global or the local overlap between two layers to characterize important correlations between the two layers in real-world situations. For example in a transportation multiplex, where the different layers can represent different kind of transport such as bus and train connections or private commuting, we expect that the links in the different layers of this multiplex have an overlap which is statistically significant respect to a null hypothesis of uncorrelation between the different layers. Also in social sciences if we consider the multiplex formed by different means of communication between people, (emails, mobile, sms, etc.) two people that are linked in one layer are also likely to be linked in another layer, forming a multiplex of correlated networks. We note also that for two layer multiplex, i.e. M=2M=2 the multilink ki1,1k^{1,1}_{i} is equal to the local overlap oio_{i}. Reversibly, the multidegree kim⃗k_{i}^{\vec{m}} of a node ii in a multiplex with generic number of layers MM can be seen as a higher order local overlap.

III Multiplex ensembles, entropy and correlations

A multiplex ensemble is specified when the probability P(G⃗)P(\vec{G}) for each possible multiplex is given. In a multiplex ensemble, if the probability of a multiplex is given by P(G⃗)P(\vec{G}), the entropy of the multiplex SS is defined as

and measures the logarithm of the typical number of multiplexes in the ensemble. As it occurs for single networks we can construct microcanonical or canonical multiplex ensembles according to the equilibrium statistical mechanics approach applied to complex networks. Moreover two layers in a multiplex network ensemble might be either correlated or uncorrelated. We will say that a multiplex ensemble is uncorrelated if the probability P(G⃗)P(\vec{G}) of the multiplex is factorizable into the probability of each single network GαG^{\alpha} in the layer α\alpha. Therefore in an uncorrelated multiplex ensemble we have

where Pα(Gα)P_{\alpha}(G^{\alpha}) is the probability of network GαG^{\alpha} on layer α\alpha. If Eq. (7) doesn’t hold,i.e.

we will say that the multiplex ensemble is correlated.

Using Eq. (\refuc0)(\ref{uc0}) we can show that the entropy of any uncorrelated multiplex ensemble is given by

where SαS^{\alpha} is the entropy of the network ensemble in layer α\alpha with probability Pα(Gα)P_{\alpha}(G^{\alpha}). In an uncorrelated multiplex the links in any two layer α\alpha and α′\alpha^{\prime} are uncorrelated therefore we have

On the contrary if the multiplex is correlated there will be at least two layers α\alpha and α′\alpha^{\prime} in a multiplex ensemble and a pair of nodes ii and jj for which

IV Canonical multiplex ensembles or exponential random multiplexes

The canonical multiplex ensembles are the set of multiplex that satisfy a series of constraints in average.

The construction of the canonical multiplex ensembles or exponential random multiplex follow closely the derivation or the exponential random graphs.

We can build a canonical multiplex ensemble by maximizing the entropy of the ensemble given by Eq. (6) under the condition that the soft constraints we want to impose are satisfied. We assume to have KK of such constraints determined by the conditions

for μ=1,2…,K\mu=1,2\ldots,K, where Fμ(G⃗)F_{\mu}(\vec{G}) determines one of the structural constraints that we want to impose to the network. For example, Fμ(G⃗)F_{\mu}(\vec{G}) might characterize the total number of links in a layer of the multiplex G⃗\vec{G} or the degree of a node in a layer of the multiplex G⃗\vec{G} etc.. In the following we will specify in detail different major examples for the constraints Fμ(G⃗)F_{\mu}(\vec{G}). In order the build the maximal entropy ensemble satisfying the soft constraints defined Eqs. (\refconstraints)(\ref{constraints}), we maximize the entropy SS given by Eq. (\refentropy)(\ref{entropy}) under the condition that the ensemble satisfies the KK soft constraints given by Eqs. (\refconstraints)(\ref{constraints}). Introducing the Lagrangian multipliers λμ\lambda_{\mu} enforcing the conditions given by Eqs. (\refconstraints)(\ref{constraints}) and the Lagrangian multiplier Λ\Lambda enforcing the normalization of the probabilities ∑G⃗P(G⃗)=1\sum_{\vec{G}}P(\vec{G})=1 we find the expression for the probability P(G⃗)P(\vec{G}) of a multiplex by solving the following system of equations,

Therefore we get that the probability of a multiplex PC(G⃗)P_{C}(\vec{G}) in a canonical multiplex ensemble is given by

where the normalization constant ZCZ_{C} is called the “partition function ” of the canonical multiplex ensemble. The values of the Lagrangian multipliers λμ\lambda_{\mu} are determined by imposing the constraints given by Eq. (\refconstraints)(\ref{constraints}) assuming for the probability PC(G⃗)P_{C}(\vec{G}) the structural form given by Eq. (\refPC)(\ref{PC}).

In this ensemble, we can the relate the entropy SS (given by Eq. (\refentropy)(\ref{entropy})) to the canonical partition function ZCZ_{C} getting

We call the entropy SS of the canonical multiplex ensemble the Shannon entropy of the ensemble.

For a canonical uncorrelated multiplex ensemble in which each multiplex G⃗\vec{G} has probability P(G⃗)P(\vec{G}), we have that Eq. (\refuc0)(\ref{uc0}) is satisfied, i.e.

where PCα(Gα)P^{\alpha}_{C}(G^{\alpha}) is the probability of network GαG^{\alpha} on layer α\alpha. Given the structure of the probability PC(G⃗)P_{C}(\vec{G}) in the canonical multiplex ensemble given by Eq. (14), in order to have an uncorrelated multiplex the functions Fμ(G⃗)F_{\mu}(\vec{G}) should be equal to a linear combination of constraints fμ,α(Gα)f_{\mu,\alpha}(G^{\alpha}) on the networks GαG^{\alpha} on a single layer α\alpha, i.e.

A special case of this type of constraints is when each constraint depends on a single network GαG^{\alpha} in a layer α\alpha. In this case typical sets of constraints can be: the average total number of link in each layer, the expected degree sequence in each layer, the expected degree sequence and the expected community structure in each layer etc. Instead, in the case in which the multiplex is correlated, also quantities such as the expected overlap can be fixed. For a multiplex formed by two layers, we can therefore construct multiplex ensembles with expected total number of links in each layer and expected global overlap between the two layers, or with expected degree sequence and expected local overlap between the two layers etc.

We can therefore construct a large class of canonical uncorrelated and correlated multiplex ensembles enforcing a different number of constraints. Starting with a minimal number of constraints, when we introduce further constraints in our ensemble we expect that the typical number of multiplexes that satisfy the constraints will decrease, and therefore we expect that the entropy of the multiplex ensemble will decrease. Multiplex in network ensembles with smaller typical number of realizations are more complex and more optimized. Therefore the entropy of the multiplex can be used in solving inference problems and is a first principle measure to quantify the complexity of the ensemble. In the following we give some example of uncorrelated and correlated canonical multiplex ensembles.

IV.2 Examples of uncorrelated canonical multiplex ensembles

We can fix the average number of links in each layer α\alpha to be equal to LαL^{\alpha}. In this case we have K=MK=M constraints in the system indicated with a label α=1,2,…,M\alpha=1,2,\ldots,M. These constraints are given by

with α=1,2,…,M\alpha=1,2,\ldots,M. Therefore the explicit expression for Fα(G⃗)F_{\alpha}(\vec{G}) is given by

The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}). Using this expression we observe that the probability PC(G⃗)P_{C}(\vec{G}) can be written as

where ZCZ_{C} is the canonical partition function and λα\lambda_{\alpha} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref1uc)(\ref{1uc}). The probability of a link between node ii and node jj in layer α\alpha is given by

The Lagrangian multipliers are fixed by the condition

i.e. pα=2Lα/[N(N−1)]p^{\alpha}=2L^{\alpha}/[N(N-1)] and e−λα=2LαN(N−1)−2Lαe^{-\lambda_{\alpha}}=\frac{2L^{\alpha}}{{N(N-1)}-{2L^{\alpha}}}. Using the definition of the entropy of the multiplex Eq. (\refentropy)(\ref{entropy}) and the expression for PC(G⃗)P_{C}(\vec{G}) given by Eq. (\refPCLU)(\ref{PCLU}) it is easy to show that the entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by

where pα=2Lα/[N(N−1)]p^{\alpha}=2L^{\alpha}/[N(N-1)]. If the number of layers MM is finite, it can be shown that this expression in the large NN limit, is equal to

IV.2.2 Multiplex ensemble with given expected degree sequence in each layer

We can fix the expected degree kiαk_{i}^{\alpha} of every node ii in each layer α\alpha. In this case we have K=M×NK=M\times N constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and i=1,2…,Ni=1,2\ldots,N. These constraints are given by

Therefore the explicit expression for Fi,α(G⃗)F_{i,\alpha}(\vec{G}) is given by

The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}). Using this expression we observe that the probability PC(G⃗)P_{C}(\vec{G}) can be written as

where ZCZ_{C} is the canonical partition function and λi,α\lambda_{i,\alpha} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref2uc)(\ref{2uc}). The probability of a link between node ii and node jj in layer α\alpha is given by

where the Lagrangian multipliers λi,α\lambda_{i,\alpha} are fixed by the conditions

Using the definition of the entropy of the multiplex Eq. (\refentropy)(\ref{entropy}) and the expression for PC(G⃗)P_{C}(\vec{G}) given by Eq. (\ref2PCUL)(\ref{2PCUL}) it is easy to show that the entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by

If kiα<⟨kα⟩N ∀i=1,2…,Nk_{i}^{\alpha}<\sqrt{\langle{k^{\alpha}}\rangle N}\ \forall i=1,2\ldots,N then each network GαG^{\alpha} is uncorrelated and therefore, e−λi,α≃kiα⟨kα⟩Ne^{-\lambda_{i,\alpha}}\simeq\frac{k_{i}^{\alpha}}{\sqrt{\langle{k^{\alpha}}\rangle N}} and pijα≃kiαkjα⟨kα⟩Np_{ij}^{\alpha}\simeq\frac{k_{i}^{\alpha}k_{j}^{\alpha}}{\langle{k^{\alpha}}\rangle N}. In this limit the Shannon entropy SS is given by

We can fix the expected number of links present in each layer between nodes belonging to different communities. We assign to each node ii a discrete variable qi=1,2,…,Qq_{i}=1,2,\ldots,Q indicating the community of the node. We can consider canonical uncorrelated multiplex ensembles in which we fix the expected number of links eq,q′αe_{q,q^{\prime}}^{\alpha} between nodes in community qq and nodes in community q′q^{\prime} in layer α\alpha. In this case we have K=M×Q(Q+1)/2K=M\times Q(Q+1)/2 constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. These constraints are given by

where the explicit expression for Fq,q′,α(G⃗)F_{q,q^{\prime},\alpha}(\vec{G}) is given by

The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}). Using this expression we observe that the probability PC(G⃗)P_{C}(\vec{G}) can be written as

where ZCZ_{C} is the canonical partition function and λq,q′,α\lambda_{q,q^{\prime},\alpha} is the Lagrangian multiplier enforcing the constraint given by Eq. (31). The probability of a link between node ii and node jj in layer α\alpha is given by

where the Lagrangian multipliers are fixed by the conditions

As it can be seen by Eq. (\refpijbuc)(\ref{pijbuc}) the probabilities pijαp_{ij}^{\alpha} depend only on qi,qjq_{i},q_{j} and α\alpha therefore we have pijα=pα(qi,qj)p_{ij}^{\alpha}=p^{\alpha}(q_{i},q_{j}) with

where nqn_{q} indicates the total number of nodes in community qq. Using the definition of the entropy of the multiplex Eq. (\refentropy)(\ref{entropy}) and the expression for PC(G⃗)P_{C}(\vec{G}) given by Eq. (\ref3PCUL)(\ref{3PCUL}) it is easy to show that the entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by

If the number of constraints is non extensive M×Q(Q+1)/2≪NM\times Q(Q+1)/2\ll N, this expression in the large NN limit is given by

We assign to each node ii a label qi=1,2…,Qq_{i}=1,2\ldots,Q indicating the community to which node ii belongs. We can consider canonical uncorrelated multiplex ensembles in which we fix the expected degree kiαk_{i}^{\alpha} of every node ii in each layer α\alpha together with the expected number of links eq,q′αe_{q,q^{\prime}}^{\alpha} between nodes in community qq and nodes in community q′q^{\prime} in layer α\alpha. In this case we have M×NM\times N constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and i=1,2…,Ni=1,2\ldots,N and other MQ(Q+1)2M\frac{Q(Q+1)}{2} constraints indicated with labels α=1,2,…,M\alpha=1,2,\ldots,M and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. These constraints are given by

where the explicit expression for Fi,α(G⃗)F_{i,\alpha}(\vec{G}) and for Fq,q′,α(G⃗)F_{q,q^{\prime},\alpha}(\vec{G}) is given by

The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}). Using this expression we observe that the probability PC(G⃗)P_{C}(\vec{G}) can be written as

where ZCαZ^{\alpha}_{C} is the normalization factor, λi,α\lambda_{i,\alpha} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref4uca)(\ref{4uca}) and λq,q′,α\lambda_{q,q^{\prime},\alpha} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref4ucb)(\ref{4ucb}). The probability of a link between node ii and node jj in layer α\alpha is given by

where the Lagrangian multipliers are fixed by the conditions

Using the definition of the entropy of the multiplex Eq. (\refentropy)(\ref{entropy}) and the expression for PC(G⃗)P_{C}(\vec{G}) given by Eq. (\ref4PCUL)(\ref{4PCUL}) it is easy to show that the entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by

IV.3 Properties of the uncorrelated canonical multiplex ensembles under consideration

In all the ensembles taken in consideration in the previous subsection the existence of any link is independent on the presence of other links in the multiplex and the probability of a given multiplex G⃗\vec{G} is given by

Using the definition of the entropy of the multiplex Eq. (\refentropy)(\ref{entropy}) and the expression for PC(G⃗)P_{C}(\vec{G}) given by Eq. (\refPG)(\ref{PG}) we can show that the entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by

for all the cases under consideration in subsection IV.2.

In the considered ensembles we can calculate the average global overlap ⟨Oα,α′⟩\langle{O^{\alpha,\alpha^{\prime}}}\rangle between two layers α\alpha and α′\alpha^{\prime} and the average local overlap ⟨oiα,α′⟩\langle{o^{\alpha,\alpha^{\prime}}_{i}}\rangle between two layers α\alpha and α′\alpha^{\prime} where the global overlap Oα,α′O^{\alpha,\alpha^{\prime}} is defined in Eq. (\refOg)(\ref{Og}) and the local overlap oiα,α′o^{\alpha,\alpha^{\prime}}_{i} is defined in Eq. (\refoi)(\ref{oi}). These quantities are given by

For a multiplex ensemble with fixed expected total number of links LαL^{\alpha} in each layer α\alpha we have pijα=pα=2Lα/[N(N−1)]p^{\alpha}_{ij}=p^{\alpha}=2L^{\alpha}/[N(N-1)] and therefore,

Therefore if Lα=O(N) ∀α=1,2,…,ML^{\alpha}={\cal O}(N)\ \forall\alpha=1,2,\ldots,M, then the average global overlap is a finite number in the large network limit and the local overlap is vanishing in the large network limit. Therefore in this case the overlap of links is a totally negligible phenomena in the multiplex. In fact the average global overlap ⟨Oα,α′⟩\langle{O^{\alpha,\alpha^{\prime}}}\rangle is much smaller than the total number of links in layer α\alpha, LαL^{\alpha} or the total number of links in layer α′\alpha^{\prime}, i.e. Lα′L^{\alpha^{\prime}}. Moreover the average local overlap ⟨oiα,α′⟩\langle{o_{i}^{\alpha,\alpha^{\prime}}}\rangle is much smaller that the expected degree of node ii in layer α\alpha or in layer α′\alpha^{\prime}. For multiplex ensembles with given expected degree of the nodes in each layer, and with kiα<⟨kα⟩Nk_{i}^{\alpha}<\sqrt{\langle{k^{\alpha}}\rangle N} we have pijα=kiαkjα⟨kα⟩Np_{ij}^{\alpha}=\frac{k_{i}^{\alpha}k_{j}^{\alpha}}{\left\langle{k^{\alpha}}\right\rangle N} and therefore

where ⟨kαkα′⟩=∑i=1Nkiαkiα′/N\left\langle{k^{\alpha}k^{\alpha^{\prime}}}\right\rangle=\sum_{i=1}^{N}k_{i}^{\alpha}k_{i}^{\alpha^{\prime}}/N.

If the degrees in the different layers are uncorrelated (i.e. ⟨kαkα′⟩=⟨kα⟩⟨kα′⟩\left\langle{k^{\alpha}k^{\alpha^{\prime}}}\right\rangle=\left\langle{k^{\alpha}}\right\rangle\left\langle{k^{\alpha^{\prime}}}\right\rangle) then the global and local overlaps are given by

Therefore also in this case the overlap is negligible. Degree correlation in between different layers can enhance the overlap, but as long as ⟨kαkα′⟩≪N\left\langle{k^{\alpha}k^{\alpha^{\prime}}}\right\rangle\ll N the average global ⟨Oα,α′⟩\langle{O^{\alpha,\alpha^{\prime}}}\rangle and the local ⟨oiα,α′⟩\langle{o_{i}^{\alpha,\alpha^{\prime}}}\rangle overlap continue to remain negligible with respect to the total number of nodes in the two layers and the degrees of the node ii in the two layers. Similarly using Eq. (\refAO)(\ref{AO}) it is possible to calculate the expected global overlap and local overlap also in the multiplex ensemble in which we fix the number of links that in layer connect nodes belonging to different communities and in the multiplex ensemble in which we fix at the same time the average degree of each node in each layer and the average number of links in between nodes of different communities at any given layer. In general if in a multiplex ensemble we want to have a given significant overlap we need to consider correlated multiplex ensembles.

IV.4 Construction of a uncorrelated multiplex in an uncorrelated canonical multiplex ensemble under consideration

In all the cases taken into consideration in the previous subsections, the probability of a network GαG^{\alpha} on layer α\alpha is uncorrelated with the other networks in the other layers. In particular, the probability of a multiplex G⃗\vec{G} can be written as in Eq. (\refPG)(\ref{PG}).

Therefore in order to construct a multiplex in the canonical network ensembles it is sufficient to follow the following scheme

Calculate the probability pijαp_{ij}^{\alpha} to have a link between node ii and jj in layer α\alpha.

For every pair of node ii and jj put a link in layer α\alpha with probability pijαp_{ij}^{\alpha}. Do this for every layer α=1,2,…,M\alpha=1,2,\ldots,M independently.

IV.5 Examples of correlated canonical multiplex ensembles

If the probability of a multiplex PC(G⃗)P_{C}(\vec{G}) does not factorize into the probabilities PCα(Gα)P_{C}^{\alpha}({G}^{\alpha}) of the networks in the different layers α\alpha of the multiplex, i.e. if

the multiplex is correlated. In these ensembles the existence of a link in one layer can be correlated with the existence of a link in another layer. For single networks, when we want to treat ensembles in which the links are correlated we need to make use of a parametrization that takes into account not only of single independent links but also of correlated set of links called subgraphs, such a triangles, triples, and so on Ne1; NeK2. Similarly if we want to treat correlated multiplex, it is convenient to consider multilinks. In this way our multiplex is not anymore described by MM adjacency matrices describing the networks at each multiplex layer, but the network is described by a much larger set of variables corresponding to correlated links, i.e. multilinks, and is fully characterized by 2M2^{M} multiadjacency matrices. The simplest case of correlated multiplex ensemble is an ensemble in which we fix the expected total number of multilinks m⃗\vec{m} in the network defined in section II. Starting from this example of correlated canonical multiplex ensemble we can generate more refined models in which we fix the expected multidegree sequence kim⃗k_{i}^{\vec{m}} defined in section II or the expected number of multilinks m⃗\vec{m} linking nodes of different communities etc. In the following we will describe in detail some of the more relevant examples of correlated canonical multiplex ensembles.

We can fix the average number Lm⃗L^{\vec{m}} of multilinks m⃗\vec{m} with the condition ∑m⃗Lm⃗=N(N−1)/2\sum_{\vec{m}}L^{\vec{m}}=N(N-1)/2. In this case we have K=2MK=2^{M} constraints indicated by the label m⃗=(m1,m2,…,mα,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{\alpha},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1. These constraints are given by

where the multiadjacency matrices of elements Aijm⃗A_{ij}^{\vec{m}} are defined in Eq. (1). In this case the functions Fm⃗(G⃗)F_{\vec{m}}(\vec{G}) are given by

The probability PC(G⃗)P_{C}(\vec{G}) of a multiplex in the ensemble is given by Eq. (\refPC)(\ref{PC}) that reads in this specific case

where ZCZ_{C} is the canonical partition function and λm⃗\lambda_{\vec{m}} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref1ucc)(\ref{1ucc}). The probability pijm⃗p_{ij}^{\vec{m}} of a multilink m⃗\vec{m} between node ii and node jj is given by

with ∑i<jpijm⃗=Lm⃗\sum_{i<j}p_{ij}^{\vec{m}}=L^{\vec{m}}, and ∑m⃗pijm⃗=1\sum_{\vec{m}}p_{ij}^{\vec{m}}=1 implying

The entropy of the canonical multiplex ensemble SS given by Eq.(6) can be calculated using the expression for PC(G⃗)P_{C}(\vec{G}) Eq. (\ref1PCC)(\ref{1PCC}), obtaining

with pm⃗p^{\vec{m}} is given by Eq. (\refpmcc1)(\ref{pmcc1}). If the number of layers MM is finite this entropy SS is given by

IV.5.2 Multiplex ensemble with given expected multidegree sequence

We can fix the average multidegree kim⃗k_{i}^{\vec{m}} of node ii with the condition ∑m⃗kim⃗=N−1\sum_{\vec{m}}k_{i}^{\vec{m}}=N-1. In this case we have K=2M×NK=2^{M}\times N constraints indicated by the label m⃗=(m1,m2,…,mα,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{\alpha},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1 and the label i=1,2,…,Ni=1,2,\ldots,N. In particular we have,

for all m⃗\vec{m} with mα=0,1m_{\alpha}=0,1 and all i=1,2,…Ni=1,2,\ldots N, where the multiadjacency matrices of elements Aijm⃗=0,1A_{ij}^{\vec{m}}=0,1 are given by Eq. (\refMA)(\ref{MA}). Therefore the functions Fi,m⃗(G⃗)F_{i,\vec{m}}(\vec{G}) are given in this case by

The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}) that in this case reads

where ZCZ_{C} is the canonical partition function and λi,m⃗\lambda_{i,\vec{m}} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref2CC)(\ref{2CC}). The probability of a multilink m⃗\vec{m} between node ii and node jj is given by

with the Lagrangian multipliers λi,m⃗\lambda_{i,\vec{m}} fixed by the constraints

The entropy of the canonical multiplex ensemble SS, that we call Shannon entropy, is given by Eq.(6) and can be calculated using the expression for PC(G⃗)P_{C}(\vec{G}) Eq. (\ref2PCC)(\ref{2PCC}), obtaining

If the multiplex is sparse, i.e. kim⃗<⟨km⃗⟩Nk_{i}^{\vec{m}}<\sqrt{\langle{k^{\vec{m}}}\rangle N} provided that in the multilink m⃗\vec{m} there is at least a link, i.e. ∑α=1Mmα>0\sum_{\alpha=1}^{M}m_{\alpha}>0, we have

for all m⃗\vec{m} such that ∑α=1Mmα>0\sum_{\alpha=1}^{M}m_{\alpha}>0. In this limit the entropy SS is given by

IV.5.3 Multiplex ensemble with given expected number of multilinks m→\vec{m} between nodes in different communities

We can fix the expected number of multilinks m⃗\vec{m} between nodes in different communities of the multiplex. We assign to each node ii a discrete variable qi=1,2,…,Qq_{i}=1,2,\ldots,Q indicating the community of the node.

We can consider canonical uncorrelated multiplex ensembles in which we fix the expected number of multilinks m⃗\vec{m}, eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} between nodes in community qq and nodes in community q′q^{\prime}. Moreover we choose eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} such that they satisfy the condition that the sum over the different multilinks m⃗\vec{m} of eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} is equal to the total number of links in between nodes in community qq and nodes in community q′q^{\prime}. In this case we have K=2M×Q(Q+1)/2K=2^{M}\times Q(Q+1)/2 constraints in the system indicated with a labels m⃗=(m1,m2,…,mM\vec{m}=(m_{1},m_{2},\ldots,m_{M} with mα=0,1m_{\alpha}=0,1 and the labels q,q′=1,2,…Qq,q^{\prime}=1,2,\ldots Q. These constraints are given by

where the explicit expression for Fq,q′,m⃗(G⃗)F_{q,q^{\prime},\vec{m}}(\vec{G}) is given by

and the multiadjacency matrices of elements Aijm⃗A_{ij}^{\vec{m}} are defined in Eq. (\refMA)(\ref{MA}). The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}) and in this specific case is given by

where ZCZ_{C} is the canonical partition function and λq,q′,m⃗\lambda_{q,q^{\prime},\vec{m}} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref3CC)(\ref{3CC}). The probability of a multilink m⃗\vec{m} between node ii and node jj is given by

where the Lagrangian multipliers are fixed by the conditions

As it can be seen by Eq. (\refpijbc)(\ref{pijbc}) the probabilities pijm⃗p_{ij}^{\vec{m}} depend only on qi,qjq_{i},q_{j} and m⃗\vec{m} therefore we have pijm⃗=pm⃗(qi,qj)p_{ij}^{\vec{m}}=p^{\vec{m}}(q_{i},q_{j}) with

where nqn_{q} indicates the total number of nodes in community qq. The entropy of the canonical multiplex ensemble SS that we call Shannon entropy is given by Eq. (\refentropy)(\ref{entropy}). Evaluating this expression using the probability of the multiplex PC(G⃗)P_{C}(\vec{G}) given by (\refPCcc)(\ref{PCcc}) we obtain,

If the number of constraints is non extensive 2MQ(Q+1)/2≪N2^{M}Q(Q+1)/2\ll N, this expression in the large NN limit is given by

We assign to each node ii a label qi=1,2…,Qq_{i}=1,2\ldots,Q indicating the community to which node ii belongs. We can consider canonical uncorrelated multiplex ensembles in which we fix the expected multidegree kim⃗k_{i}^{\vec{m}} of every node ii (with the condition ∑m⃗kim⃗=N−1\sum_{\vec{m}}k_{i}^{\vec{m}}=N-1) together with the expected number of multilinks eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} between nodes in community qq and nodes in community q′q^{\prime} (with the condition that the sum over the different multilinks m⃗\vec{m} of eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} is equal to the total number of links in between nodes in community qq and nodes in community q′q^{\prime}). In this case we have 2M×N2^{M}\times N constraints indicated with a labels m⃗=(m1,m2,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1 and i=1,2…,Ni=1,2\ldots,N and other 2M×Q(Q+1)22^{M}\times\frac{Q(Q+1)}{2} constraints indicated with labels m⃗\vec{m} and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. These constraints are given by

where the explicit expression for Fi,m⃗(G⃗)F_{i,\vec{m}}(\vec{G}) and for Fq,q′,m⃗(G⃗)F_{q,q^{\prime},\vec{m}}(\vec{G}) are given by

where the element Aijm⃗A_{ij}^{\vec{m}} of the multiadjacency matrices is defined in Eq. (\refMA)(\ref{MA}). The probability of the multiplex is given by Eq. (\refPC)(\ref{PC}) that reads in this case

where ZCZ_{C} is the canonical partition function, λi,m⃗\lambda_{i,\vec{m}} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref4cca)(\ref{4cca}) and λq,q′,m⃗\lambda_{q,q^{\prime},\vec{m}} is the Lagrangian multiplier enforcing the constraint given by Eq. (\ref4ccb)(\ref{4ccb}) or by Eq. (\ref4ccc)(\ref{4ccc}). The probability of a multilink m⃗\vec{m} between node ii and node jj is given by

where the Lagrangian multipliers are fixed by the conditions

The entropy of the canonical multiplex ensemble that we call Shannon entropy is given by

where the probabilities pijm⃗p_{ij}^{\vec{m}} are given by Eq. (\reflck)(\ref{lck}) and satisfy Eqs. (85).

IV.6 Overlap in correlated canonical ensembles under consideration

In all the cases taken into consideration in the previous subsection, the probability of a network GαG^{\alpha} on layer α\alpha is correlated with the other networks in the other layers. Therefore the probability PC(G⃗)P_{C}(\vec{G}) cannot be factorized in the probability for single layers. Nevertheless PC(G⃗)P_{C}(\vec{G}) takes a simple form in the cases that we have investigated so far, i.e.

where m⃗=(m1,m2,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{M}) is a vector of elements mα=0,1m_{\alpha}=0,1 and where Aijm⃗A_{ij}^{\vec{m}} are the multiadjacency matrices defined in Eq. (\refMA)(\ref{MA}). In these ensembles the Shannon entropy SS given by Eq. (\refentropy)(\ref{entropy}) takes the simple form

In the considered ensembles we can calculate the average total overlap ⟨Oα,α′⟩\langle{O^{\alpha,\alpha^{\prime}}}\rangle between two layers α\alpha and α′\alpha^{\prime} and the average local overlap ⟨oiα,α′⟩\langle{o^{\alpha,\alpha^{\prime}}_{i}}\rangle between two layers α\alpha and α′\alpha^{\prime}, where the global overlap Oα,α′O^{\alpha,\alpha^{\prime}} is defined in Eq. (\refOg)(\ref{Og}) and the local overlap oiα,α′o^{\alpha,\alpha^{\prime}}_{i} is defined in Eq. (\refoi)(\ref{oi}). These quantities are given by

These quantities now can be significant also for sparse networks as we will see in the next subsection in the simple case of a multiplex with just two layers, i.e. M=2M=2.

IV.7 Case of a two layers multiplex, i.e. M=2M=2

Let us consider the simple case of a correlated multiplex ensembles formed by M=2M=2 layers, network 1 and network 2. The probability PC(G⃗)P_{C}(\vec{G}) of a multiplex in all the cases taken in consideration in the subsection IV.5, is given by Eq. (\refPCC)(\ref{PCC}) that reads in this case

where pijn1,n2p^{n_{1},n_{2}}_{ij} is the probability to have n1=0,1n_{1}=0,1 links between node ii and node jj in network 11 and n2=0,1n_{2}=0,1 links between the same nodes in network 22. The probabilities pijn1n2p_{ij}^{n_{1}n_{2}} satisfy the constrain pij00+pij01+pij10+pij11=1p_{ij}^{00}+p^{01}_{ij}+p^{10}_{ij}+p^{11}_{ij}=1. The entropy of such multiplex is then given by Eq. (\refentropym)(\ref{entropym}) that reads in this case

In the considered ensembles we can calculate the average total overlap ⟨O1,2⟩=⟨O⟩\langle{O^{1,2}}\rangle=\langle{O}\rangle between two layers 11 and 22 and the average local overlap ⟨oi1,2⟩=⟨oi⟩\langle{o^{1,2}_{i}}\rangle=\langle{o_{i}}\rangle defined in Eqs. (\refAOcorr)(\ref{AOcorr}). For the ensembles in which we fix the expected total number of multilinks m⃗\vec{m}, Lm⃗L^{\vec{m}} considered in subsection IV.5.1 we have

Assuming L11,L10,L01∝NL^{11},L^{10},L^{01}\propto N, Eq. (\refOoc)(\ref{Ooc}) implies that the fraction of links that overlap is not negligible (globally and locally) also if both network 1 and network 2 are sparse. For the ensemble in which we fix the expected multidegree (considered in subsection IV.5.2), considering the additional condition kim⃗<⟨km⃗⟩Nk_{i}^{\vec{m}}<\sqrt{\langle{k^{\vec{m}}}\rangle N} for all multilinks m⃗\vec{m} formed at least by a link, i.e. ∑α=1Mmα>0\sum_{\alpha=1}^{M}m_{\alpha}>0, we have pijm⃗=kim⃗kjm⃗⟨km⃗⟩Np_{ij}^{\vec{m}}=\frac{k_{i}^{\vec{m}}k_{j}^{\vec{m}}}{\langle{k^{\vec{m}}}\rangle N} and therefore,

Provided that ⟨k11⟩\langle{k^{11}}\rangle is finite, we find that also in this case the global and local overlap can be significant also if both network 1 and network 2 are sparse. A similar conclusion can be drawn for the other two cases of correlated multiplex ensembles taken in consideration in the previous paragraphs.

IV.8 Construction of correlated multiplex in the canonical multiplex ensemble

Since in the considered cases of correlated multiplex ensemble the probability of a multiplex can be expressed as in Eq. (\refPCC)(\ref{PCC}), in order to construct a correlated multiplex in the canonical network ensembles it is sufficient to follow the following scheme.

Calculate the probability pijm⃗p_{ij}^{\vec{m}} to have a multilink m⃗\vec{m} between node ii and jj.

For every pair of node ii and jj, draw a multilink m⃗\vec{m} with probability pijm⃗p_{ij}^{\vec{m}} and consequently put a link in every layer α\alpha where mα=1m_{\alpha}=1 and put no link in every layer α\alpha where mα=0m_{\alpha}=0.

V Microcanonical multiplex ensembles

The microcanonical multiplex ensembles are formed by the multiplexes that satisfy some hard constraints. Every multiplex in a microcanonical multiplex ensemble has equal probability. We note here that we consider only graphical constraints DelGenio1, i.e. constraints that can be satisfied at least by one realization of the multiplex. This is a condition that for example is automatically satisfied if we consider network ensembles that are a randomization of a real multiplex with some given structural features. Therefore the probability PM(G⃗)P_{M}(\vec{G}) of a microcanonical multiplex ensemble is given by

where δ[]\delta[] is the Kronecker delta and where ZMZ_{M} is the “microcanonical partition function” of the multiplex given by

Therefore the microcanonical partition function ZMZ_{M} of the multiplex ensemble counts the number of multiplexes satisfying the hard constraints Fμ(G⃗)=CμF_{\mu}(\vec{G})=C_{\mu} for μ=1,2…,P\mu=1,2\ldots,P. We call the entropy of these multiplex ensembles NΣN\Sigma and using the definition of the entropy of an ensemble given by Eq.(\refentropy)(\ref{entropy}) together with the expression for the probability of a multiplex in the microcanonical ensemble given by Eq. (\refPM)(\ref{PM}) we have

where we call Σ\Sigma the Gibbs entropy of the multiplex ensemble. The Gibbs entropy Σ\Sigma of microcanonical multiplex ensembles is related to the Shannon entropy SS of the associated canonical multiplex ensemble SS which enforce the same constraint of the microcanonical network ensemble in average (the conjugated canonical ensemble), by a simple relation. In fact we have

where NΩN\Omega is equal to the logarithm of the probability that in the conjugated canonical multiplex ensemble the hard constraints Fμ(G⃗)F_{\mu}(\vec{G}) are satisfied, i.e.

In order to verify the relation Eq. (\refSSO)(\ref{SSO}) we observe that the canonical multiplex probability PC(G⃗)P_{C}(\vec{G}) is given by Eq. (\refPC)(\ref{PC}) that we rewrite here for convenience,

and therefore, using Eq. (\refOmega)(\ref{Omega}) we get

where in the last relation we have used Eq. (\refSc)(\ref{Sc}), Eq. (\refZM)(\ref{ZM}) and Eq. (\refSM)(\ref{SM}). Given Eq. (\refSSO)(\ref{SSO}), if Ω\Omega is larger than zero in the limit N≫1N\gg 1, the microcanonical and the conjugated canonical multiplex ensemble are not equivalent.

In an uncorrelated multiplex ensemble we have that the probability of a multiplex G⃗\vec{G} is factorizable into the product of probabilities Pα(Gα)P_{\alpha}(G^{\alpha}) of the networks GαG^{\alpha} in layer α\alpha, i.e.

Given the general expression for PM(G⃗)P_{M}(\vec{G}) provided by Eq. (\refPM)(\ref{PM}) we can conclude that a microcanonical multiplex ensemble is uncorrelated only if the hard constraints Fμ(G⃗)=CμF_{\mu}(\vec{G})=C_{\mu} with μ=1,2…,K\mu=1,2\ldots,K involve for every constraint μ\mu only one network GαG^{\alpha} in one layer α\alpha of the multiplex. Therefore we will indicate the function Fμ(G⃗)F_{\mu}(\vec{G}) with a label indicating the layer α\alpha and one label ν\nu counting the number of constraints in each layer, i.e. Fν,α(Gα)F_{\nu,\alpha}(G^{\alpha}).

Given the condition Eq. (\refUC2)(\ref{UC2}) the Gibbs entropy Σ\Sigma of the multiplex can be expressed as in the following

where Σα\Sigma^{\alpha} is the Gibbs entropy of the network ensemble induced in layer α\alpha,

with PMα(Gα)=∏νδ[Fν,α(Gα),Cν,α]/ZMαP_{M}^{\alpha}(G^{\alpha})=\prod_{\nu}\delta[F_{\nu,\alpha}(G^{\alpha}),C_{\nu,\alpha}]/Z_{M}^{\alpha} and

Using the same arguments used to derive Eq. (\refSSO)(\ref{SSO}) it is straightforward to show that the Gibbs entropy Σα\Sigma^{\alpha} of each network ensemble at layer α\alpha is given by

where SαS^{\alpha} is the Shannon entropy of the canonical network ensemble which enforce the same constraint of the microcanonical network ensemble in average, i.e.

where PCα(Gα)P_{C}^{\alpha}(G^{\alpha}) is the probability for a network GαG^{\alpha} in layer α\alpha. Moreover Ωα\Omega^{\alpha} in Eq. (\refrsso)(\ref{rsso}) satisfies

Examples of uncorrelated microcanonical multiplex ensemble are given by ensembles in which we fix the total number of links at each layer, the degree sequence at each layer, the number of links between nodes in different communities in each layer etc. In the following subsection we present in detail several examples of uncorrelated microcanonical multiplex ensembles.

V.2 Examples of uncorrelated microcanonical multiplex ensembles

We can fix the total number of links LαL^{\alpha} in each layer α\alpha of the multiplex. In this case we have K=MK=M constraints in the system indicated with a label α=1,2,…,M\alpha=1,2,\ldots,M. These constraints are given by

with α=1,2,…,M\alpha=1,2,\ldots,M and with Fα(G⃗)F_{\alpha}(\vec{G}) given by

The microcanonical partition function ZMZ_{M} is equal to the number of multiplexes in these ensemble, which is given by the product over the layers α=1,2…,M\alpha=1,2\ldots,M of the number of networks GαG^{\alpha} satisfying the constraints Fα(G⃗)=LαF_{\alpha}(\vec{G})=L^{\alpha}. The number of networks GαG^{\alpha} with LαL^{\alpha} links is given by the number of ways of choosing LαL^{\alpha} links out of N(N−1)/2N(N-1)/2 possible links, we have therefore

Using Eq. (\refSM)(\ref{SM}) we find that the Gibbs entropy for this ensemble is given by

As long as the number of constraints MM is sublinear with respect to NN we have that the microcanonical and canonical ensemble studied in subsection IV.2.1 are equivalent in the thermodynamic limit and Σ≃S/N\Sigma\simeq S/N.

V.2.2 Multiplex ensemble with given degree sequence in each layer

We can fix the the degree kiαk_{i}^{\alpha} of every node ii in each layer α\alpha. In this case we have K=M×NK=M\times N constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and i=1,2…,Ni=1,2\ldots,N. These constraints are given by

For this ensemble we can use the results of BC; AB2010 getting

with SS given by Eq. (\refSuc2)(\ref{Suc2}) and NΩN\Omega for sparse networks is given by

where πy(x)\pi_{y}(x) is the Poisson distribution with average yy πy(x)=1/x!yxexp⁡[−y]\pi_{y}(x)=1/x!y^{x}\exp[-y]. In this case, if the number of layers MM is finite, then in the large network limit N≫1N\gg 1, Ω\Omega is finite, and we have Σ=S/N−Ω\Sigma=S/N-\Omega. Therefore the Gibbs entropy Σ\Sigma is lower than S/NS/N and the microcanonical ensemble is not equivalent in the thermodynamic limit N≫1N\gg 1 to the conjugated canonical ensemble. In the case in which kiα<⟨kα⟩Nk_{i}^{\alpha}<\sqrt{\langle{k^{\alpha}}\rangle N} we can use for SS the expression in Eq. (\refSuc2b)(\ref{Suc2b}). Therefore the Gibbs entropy Σ\Sigma can be approximated by

This last expression is a generalization of the Bender formula Bender; AB2009 for the entropy of networks with given degree sequence.

V.2.3 Multiplex ensemble with given number of links in each layer between nodes of different communities

We can fix the total number of links between nodes of different communities in each layer α\alpha. We assign to each node ii a discrete variable qi=1,2,…,Qq_{i}=1,2,\ldots,Q indicating the community of the node. We consider a microcanonical uncorrelated multiplex ensemble in which we fix the total number of links eq,q′αe_{q,q^{\prime}}^{\alpha} between nodes in community qq and nodes in community q′q^{\prime} in layer α\alpha. In this case we have K=M×Q(Q+1)/2K=M\times Q(Q+1)/2 constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. These constraints are given by

where explicit expression for Fq,q′,α(G⃗)F_{q,q^{\prime},\alpha}(\vec{G}) is given by

The microcanonical partition function ZMZ_{M} is equal to the number of multiplexes in this ensemble, which is given by the product over the layers α=1,2…,M\alpha=1,2\ldots,M of the number of networks GαG^{\alpha} satisfying the constraints Fq,q′,α(G⃗)=eq,q′αF_{q,q^{\prime},\alpha}(\vec{G})=e^{\alpha}_{q,q^{\prime}}. The number of networks GαG^{\alpha} with eq,q′αe^{\alpha}_{q,q^{\prime}} links is given by the number of ways of choosing eq,q′αe_{q,q^{\prime}}^{\alpha} links out of the total number of possible links between nodes in community qq and community q′q^{\prime}, we have, therefore,

where nqn_{q} indicates the number of nodes in community qq. Finally the Gibbs entropy Σ\Sigma for this ensemble is given by Eq. (\refZM)(\ref{ZM}) and therefore we obtain

In this case the Gibbs entropy Σ=S/N\Sigma=S/N in the limit N≫1N\gg 1 only if the number of constraints PP is sublinear with respect to NN.

We assign to each node ii a label qi=1,2…,Qq_{i}=1,2\ldots,Q indicating the community to which node ii belongs. We can consider microcanonical uncorrelated multiplex ensemble in which we fix the degree kiαk_{i}^{\alpha} of every node ii in every layer α\alpha together with the total number of links eq,q′αe_{q,q^{\prime}}^{\alpha} between nodes in community qq and nodes in community q′q^{\prime} in layer α\alpha. In this case we have M×NM\times N constraints in the system indicated with a labels α=1,2,…,M\alpha=1,2,\ldots,M and i=1,2…,Ni=1,2\ldots,N and other MQ(Q+1)2M\frac{Q(Q+1)}{2} constraints indicated with labels α=1,2,…,M\alpha=1,2,\ldots,M and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. These constraints are given by

where the explicit expression for Fi,α(G⃗)F_{i,\alpha}(\vec{G}) and for Fq,q′,α(G⃗)F_{q,q^{\prime},\alpha}(\vec{G}) is given by

The Gibbs entropy for this ensemble satisfies

where SS is given by Eq. (\refSuc4)(\ref{Suc4}) and using the results of AB2010 the entropy of large variations Ωα\Omega^{\alpha} for sparse networks is given by

where πy(x)\pi_{y}(x) is the Poisson distribution with average yy given by πy(x)=1x!yxexp⁡[−y]\pi_{y}(x)=\frac{1}{x!}y^{x}\exp[-y]. In this case, if the number of layers MM is finite, then in the large network limit N≫1N\gg 1, Ω\Omega is finite, and we have Σ=S/N−Ω\Sigma=S/N-\Omega. Therefore the Gibbs entropy Σ\Sigma is lower than S/NS/N and the microcanonical ensemble is not equivalent in the thermodynamic limit to the conjugated canonical ensemble.

V.2.5 Multiplex with given degree-degree correlations in each layer α\alpha

We can construct a microcanonical uncorrelated multiplex ensemble with given degree-degree correlations in each layer α\alpha by fixing the degree kiαk_{i}^{\alpha} of each node ii in layer α\alpha and the total number of links ek,k′αe_{k,k^{\prime}}^{\alpha} between nodes of degree kk and degree k′k^{\prime} in layer α\alpha. This case is a small modification of the previous case in which for every different layer we identify a community of nodes at a given layer α\alpha as the set of nodes with given degree, i.e. qi=kiαq_{i}=k_{i}^{\alpha}. The Gibbs entropy Σ\Sigma satisfies

Using the results of AB2010 the entropy of large variations Ωα\Omega^{\alpha} for sparse networks is given by

Moreover the Shannon entropy SαS^{\alpha} for each layer α\alpha is given by

and the Lagrangian multipliers λi,α\lambda_{i,\alpha} and λk,k′,α\lambda_{k,k^{\prime},\alpha} fixed by the conditions

V.3 Correlated microcanonical multiplex ensembles

In a correlated multiplex ensemble we have that the probability of a multiplex G⃗\vec{G} is not factorizable into the product of probabilities Pα(Gα)P_{\alpha}(G^{\alpha}) of the networks GαG^{\alpha} in layer α\alpha, i.e.

The simplest example of correlated multiplex ensemble is the ensemble in which we fix the total number of multilinks m⃗\vec{m} in the multiplex. Starting from this model different more refined multiplex ensemble can be determined, fixing for example the multidegree sequence or the total number of multilinks m⃗\vec{m} in between nodes of different communities etc.. In subsection V.4 we will discuss in detail some relevant examples of correlated multiplex ensembles.

V.4 Examples of correlated microcanonical ensembles

In a correlated multiplex ensemble we can fix the total number Lm⃗L^{\vec{m}} of multilinks m⃗\vec{m} in the multiplex, i.e.

for all m⃗=(m1,m2,…,mα,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{\alpha},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1, as long as ∑m⃗Lm⃗=N(N−1)/2\sum_{\vec{m}}L^{\vec{m}}=N(N-1)/2. In this case the functions Fm⃗(G⃗)F_{\vec{m}}(\vec{G}) are given by

where the multiadjacency matrices of elements Aijm⃗A_{ij}^{\vec{m}} are defined as in Eq. (1). Since any pair of nodes is linked by one multilink m⃗\vec{m}, we have the total number of multiplexes ZMZ_{M} in this ensemble is given by the multinomial

Using this result, we can easily derive the Gibbs entropy NΣ=log⁡(ZM)N\Sigma=\log(Z_{M}), i.e.

As long as the number of constraints K=2MK=2^{M} is sublinear with respect to NN we have that the microcanonical and the conjugated canonical ensemble are equivalent in the thermodynamic limit N≫1N\gg 1 and Σ≃S/N\Sigma\simeq S/N.

V.4.2 Multiplex ensemble with given multidegree sequence

In a correlated multiplex ensemble we can fix the multidegree kim⃗k_{i}^{\vec{m}} of node ii,

for all m⃗\vec{m} with mα=0,1m_{\alpha}=0,1 and all i=1,2,…Ni=1,2,\ldots N as long as ∑m⃗kim⃗=N−1\sum_{\vec{m}k_{i}^{\vec{m}}}=N-1 and the constraints are graphical. In this case we have that Fi,m⃗(G⃗)F_{i,\vec{m}}(\vec{G}) is given by

where the multiadjacency matrices of elements Aijm⃗=0,1A_{ij}^{\vec{m}}=0,1 are given by Eq. (1). The Gibbs entropy Σ\Sigma of this ensemble satisfies Eq. (105) that we rewrite here for convenience

with SS given by Eq. (\refSkim)(\ref{Skim}). Using a similar derivation as the one reported in BC; AB2010 it is possible to prove that for sparse networks Ω\Omega is given by

where πy(x)\pi_{y}(x) is the Poisson distribution with average yy πy(x)=1x!yxexp⁡[−y]\pi_{y}(x)=\frac{1}{x!}y^{x}\exp[-y] calculated at xx. In this case, if the number of layers MM is finite, then in the large network limit N≫1N\gg 1, Ω\Omega is finite, and we have Σ=S/N−Ω\Sigma=S/N-\Omega. Therefore the Gibbs entropy Σ\Sigma is lower than S/NS/N and the microcanonical ensemble is not equivalent in the thermodynamic limit to the conjugated canonical ensemble.

For networks with kim⃗<⟨km⃗⟩Nk_{i}^{\vec{m}}<\sqrt{\langle{k^{\vec{m}}}\rangle N} where m⃗\vec{m} satisfy the inequality ∑α=1Mmα>0\sum_{\alpha=1}^{M}m_{\alpha}>0, using Eq. (\refSkimu)(\ref{Skimu}) we can find a simple expression for the Gibbs entropy extending Bender result Bender; AB2009 to correlated multiplex, i.e.

V.4.3 Multiplex ensemble with given number of multilinks m→\vec{m} in between nodes of different communities

We assign to each node ii a label qi=1,2…,Qq_{i}=1,2\ldots,Q indicating the community to which node ii belongs. We consider a microcanonical correlated multiplex ensemble in which we fix the total number of multilinks m⃗\vec{m}, eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} between nodes in community qq and nodes in community q′q^{\prime} with the condition that the constraint is graphical. In this case we have 2M×Q(Q+1)22^{M}\times\frac{Q(Q+1)}{2} constraints indicated with labels m⃗=(m1,m2,…,mα,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{\alpha},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1 and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. The constraints are given by

For every pair of nodes, one in community qq and one in community q′q^{\prime} we will have one multilink m⃗\vec{m}, therefore the total number of multiplex in this ensemble is given by ZMZ_{M} that has the explicit expression

where nqn_{q} is the number of nodes in community qq. Finally the Gibbs entropy Σ\Sigma of this ensemble, with NΣ=log⁡ZMN\Sigma=\log Z_{M} satisfies

As long as the number of constraints PP is sublinear with respect to NN we have that the microcanonical and canonical ensemble are equivalent in the thermodynamic limit and Σ≃S/N\Sigma\simeq S/N.

We assign to each node ii a label qi=1,2…,Qq_{i}=1,2\ldots,Q indicating the community to which node ii belongs. We can consider a microcanonical correlated multiplex ensemble in which we fix the multidegree kim⃗k_{i}^{\vec{m}} of every node ii together with the total number of multilinks eq,q′m⃗e_{q,q^{\prime}}^{\vec{m}} between nodes in community qq and nodes in community q′q^{\prime} with the condition that the constraints are graphical. In this case we have 2M×N2^{M}\times N constraints indicated with a labels m⃗=(m1,m2,…,mM)\vec{m}=(m_{1},m_{2},\ldots,m_{M}) with mα=0,1m_{\alpha}=0,1 and i=1,2…,Ni=1,2\ldots,N and other 2M×Q(Q+1)22^{M}\times\frac{Q(Q+1)}{2} constraints indicated with labels m⃗\vec{m} and q,q′=1,2…,Qq,q^{\prime}=1,2\ldots,Q. The constraints are given by

The Gibbs entropy Σ\Sigma of this ensemble satisfies

where SS is given by Eq. (\refSck)(\ref{Sck}) and by following arguments similar to the ones in AB2010 it can be proved that for sparse networks Ω\Omega satisfies the following relation

where πy(x)\pi_{y}(x) is the Poisson distribution with average yy πy(x)=1x!yxexp⁡[−y]\pi_{y}(x)=\frac{1}{x!}y^{x}\exp[-y] calculated at xx. In this case, if the number of constraints P∝NP\propto N, then in the large network limit N≫1N\gg 1, Ω\Omega is finite, and we have Σ=S/N−Ω\Sigma=S/N-\Omega. Therefore the Gibbs entropy Σ\Sigma is lower than S/NS/N and the microcanonical ensemble is not equivalent in the thermodynamic limit to the conjugated canonical ensemble.

VI Conclusions

In conclusion, we have presented a statistical mechanics approach for microcanonical and canonical multiplex ensembles. We have defined both uncorrelated and correlated multiplex ensembles. Uncorrelated multiplex ensembles are characterized by a probability of the multiplex that factorize into the probability of the networks GαG^{\alpha} for every layer α\alpha of the multiplex. Therefore for uncorrelated multiplex ensemble the probability a link in one network is independent on the presence of other links in the other layers. We have considered uncorrelated networks in which we fix the expected number of links in each layer, the expected degree sequence in each layer, the expected number of links in between different communities in each layer, or the expected degree sequence and the expected total number of links between communities in each layer. These ensembles, when describing multiplexes formed by sparse networks, have negligible global and local overlap, therefore they cannot model situations in which the overlap of links in different layers is significant. In order to describe the situation in which the overlap is significant we introduced canonical correlated multiplex ensembles in which we fix the expected number of multilinks m⃗\vec{m} given by Lm⃗L^{\vec{m}}, or the expected multidegree kim⃗k_{i}^{\vec{m}} sequence, or the expected number of multilinks m⃗\vec{m} between nodes in different communities, or even expected multidegree sequence and expected number of multilinks between nodes of different communities. Finally we characterize both microcanonical uncorrelated and correlated networks showing that the microcanonical ensembles and canonical ensembles are not equivalent as long as the number of constraints is extensive. This paper open a new scenario for studying multiplex ensembles and characterize null models of multiplex including a significant global or local overlap of the links in the different layers. In future works we plan to extend this statistical mechanics of multiplex ensembles to more complex situations such as to directed and weighted networks, and to apply the entropy of multiplex for extracting in formation from multiplex datasets. Moreover, recently new entropy measures for quantifying complexity of complex networks have been proposed using tools of quantum in formation theory Severini; Silvano. In future works we plan to generalize also these measures to multiplexes and use these new measure to uncover hidden statistical features of multiplex datasets.

References