Exponential family random graph models

From HandWiki

Exponential Random Graph Models (ERGMs) are a family of statistical models for analyzing data from social and other networks.[1][2] Examples of networks examined using ERGM include knowledge networks,[3] organizational networks,[4] colleague networks,[5] social media networks, networks of scientific development,[6] and others.

Background

Many metrics exist to describe the structural features of an observed network such as the density, centrality, or assortativity.[7][8] However, these metrics describe the observed network which is only one instance of a large number of possible alternative networks. This set of alternative networks may have similar or dissimilar structural features. To support statistical inference on the processes influencing the formation of network structure, a statistical model should consider the set of all possible alternative networks weighted on their similarity to an observed network. However because network data is inherently relational, it violates the assumptions of independence and identical distribution of standard statistical models like linear regression.[9][10] Alternative statistical models should reflect the uncertainty associated with a given observation, permit inference about the relative frequency about network substructures of theoretical interest, disambiguating the influence of confounding processes, efficiently representing complex structures, and linking local-level processes to global-level properties.[11] Degree-preserving randomization, for example, is a specific way in which an observed network could be considered in terms of multiple alternative networks.

Definition

The Exponential family is a broad family of models for covering many types of data, not just networks. An ERGM is a model from this family which describes networks.

Formally a random graph [math]\displaystyle{ Y \in \mathcal{Y} }[/math] consists of a set of [math]\displaystyle{ n }[/math] nodes and a collection of tie variables [math]\displaystyle{ \{ Y_{ij}: i=1,\dots,n; j=1,\dots,n\} }[/math], indexed by pairs of nodes [math]\displaystyle{ ij }[/math], where [math]\displaystyle{ Y_{ij}=1 }[/math] if the nodes [math]\displaystyle{ (i,j) }[/math] are connected by an edge and [math]\displaystyle{ Y_{ij}=0 }[/math] otherwise. A pair of nodes [math]\displaystyle{ ij }[/math] is called a dyad and a dyad is an edge if [math]\displaystyle{ Y_{ij}=1 }[/math].

The basic assumption of these models is that the structure in an observed graph [math]\displaystyle{ y }[/math] can be explained by a given vector of sufficient statistics [math]\displaystyle{ s(y) }[/math] which are a function of the observed network and, in some cases, nodal attributes. This way, it is possible to describe any kind of dependence between the undyadic variables:

[math]\displaystyle{ P(Y = y | \theta) = \frac{\exp(\theta^{T} s(y))}{c(\theta)},\quad\forall y\in\mathcal{Y} }[/math]

where [math]\displaystyle{ \theta }[/math] is a vector of model parameters associated with [math]\displaystyle{ s(y) }[/math] and [math]\displaystyle{ c(\theta) = \sum_{y'\in\mathcal{Y}}\exp(\theta^{T} s(y')) }[/math] is a normalising constant.

These models represent a probability distribution on each possible network on [math]\displaystyle{ n }[/math] nodes. However, the size of the set of possible networks for an undirected network (simple graph) of size [math]\displaystyle{ n }[/math] is [math]\displaystyle{ 2^{n(n-1)/2} }[/math]. Because the number of possible networks in the set vastly outnumbers the number of parameters which can constrain the model, the ideal probability distribution is the one which maximizes the Gibbs entropy.[12]

Example

Let [math]\displaystyle{ V=\{1,2,3\} }[/math] be a set of three nodes and let [math]\displaystyle{ \mathcal{Y} }[/math] be the set of all undirected, loopless graphs on [math]\displaystyle{ V }[/math]. Loopless implies that for all [math]\displaystyle{ i=1,2,3 }[/math] it is [math]\displaystyle{ Y_{ii}=0 }[/math] and undirected implies that for all [math]\displaystyle{ i,j=1,2,3 }[/math] it is [math]\displaystyle{ Y_{ij}=Y_{ji} }[/math], so that there are three binary tie variables ([math]\displaystyle{ Y_{12},Y_{13},Y_{23} }[/math]) and [math]\displaystyle{ 2^3=8 }[/math] different graphs in this example.

Define a two-dimensional vector of statistics by [math]\displaystyle{ s(y)=[s_1(y),s_2(y)]^T }[/math], where [math]\displaystyle{ s_1(y)=edges(y) }[/math] is defined to be the number of edges in the graph [math]\displaystyle{ y }[/math] and [math]\displaystyle{ s_2(y)=triangles(y) }[/math] is defined to be the number of closed triangles in [math]\displaystyle{ y }[/math]. Finally, let the parameter vector be defined by [math]\displaystyle{ \theta=(\theta_1,\theta_2)^T=(-\ln 2,\ln 3)^T }[/math], so that the probability of every graph [math]\displaystyle{ y\in\mathcal{Y} }[/math] in this example is given by:

[math]\displaystyle{ P(Y = y | \theta) = \frac{\exp(-\ln 2\cdot edges(y)+\ln 3\cdot triangles(y))}{c(\theta)} }[/math]

We note that in this example, there are just four graph isomorphism classes: the graph with zero edges, three graphs with exactly one edge, three graphs with exactly two edges, and the graph with three edges. Since isomorphic graphs have the same number of edges and the same number of triangles, they also have the same probability in this example ERGM. For a representative [math]\displaystyle{ y }[/math] of each isomorphism class, we first compute the term [math]\displaystyle{ x(y)=\exp(-\ln 2\cdot edges(y)+\ln 3\cdot triangles(y)) }[/math], which is proportional to the probability of [math]\displaystyle{ y }[/math] (up to the normalizing constant [math]\displaystyle{ c(\theta) }[/math]).

If [math]\displaystyle{ y }[/math] is the graph with zero edges, then it is [math]\displaystyle{ edges(y)=0 }[/math] and [math]\displaystyle{ triangles(y)=0 }[/math], so that

[math]\displaystyle{ x(y)=\exp(-\ln 2\cdot 0+\ln 3\cdot 0)=\exp(0)=1. }[/math]

If [math]\displaystyle{ y }[/math] is a graph with exactly one edge, then it is [math]\displaystyle{ edges(y)=1 }[/math] and [math]\displaystyle{ triangles(y)=0 }[/math], so that

[math]\displaystyle{ x(y)=\exp(-\ln 2\cdot 1+\ln 3\cdot 0)=\frac{\exp(0)}{\exp(\ln 2)}=\frac{1}{2}. }[/math]

If [math]\displaystyle{ y }[/math] is a graph with exactly two edges, then it is [math]\displaystyle{ edges(y)=2 }[/math] and [math]\displaystyle{ triangles(y)=0 }[/math], so that

[math]\displaystyle{ x(y)=\exp(-\ln 2\cdot 2+\ln 3\cdot 0)=\frac{\exp(0)}{\exp(\ln 2)^2}=\frac{1}{4}. }[/math]

If [math]\displaystyle{ y }[/math] is the graph with exactly three edges, then it is [math]\displaystyle{ edges(y)=3 }[/math] and [math]\displaystyle{ triangles(y)=1 }[/math], so that

[math]\displaystyle{ x(y)=\exp(-\ln 2\cdot 3+\ln 3\cdot 1)=\frac{\exp(\ln 3)}{\exp(\ln 2)^3}=\frac{3}{8}. }[/math]

The normalizing constant is computed by summing [math]\displaystyle{ x(y) }[/math] over all eight different graphs [math]\displaystyle{ y\in\mathcal{Y} }[/math]. This yields:

[math]\displaystyle{ c(\theta)=1+3\cdot\frac{1}{2}+3\cdot\frac{1}{4}+\frac{3}{8}=\frac{29}{8}. }[/math]

Finally, the probability of every graph [math]\displaystyle{ y\in\mathcal{Y} }[/math] is given by [math]\displaystyle{ P(Y=y|\theta)=\frac{x(y)}{c(\theta)} }[/math]. Explicitly, we get that the graph with zero edges has probability [math]\displaystyle{ \frac{8}{29} }[/math], every graph with exactly one edge has probability [math]\displaystyle{ \frac{4}{29} }[/math], every graph with exactly two edges has probability [math]\displaystyle{ \frac{2}{29} }[/math], and the graph with exactly three edges has probability [math]\displaystyle{ \frac{3}{29} }[/math] in this example.

Intuitively, the structure of graph probabilities in this ERGM example are consistent with typical patterns of social or other networks. The negative parameter ([math]\displaystyle{ \theta_1=-\ln 2 }[/math]) associated with the number of edges implies that - all other things being equal - networks with fewer edges have a higher probability than networks with more edges. This is consistent with the sparsity that is often found in empirical networks, namely that the empirical number of edges typically grows at a slower rate than the maximally possible number of edges. The positive parameter ([math]\displaystyle{ \theta_2=\ln 3 }[/math]) associated with the number of closed triangles implies that - all other things being equal - networks with more triangles have a higher probability than networks with fewer triangles. This is consistent with a tendency for triadic closure that is often found in certain types of social networks. Compare these patterns with the graph probabilities computed above. The addition of every edge divides the probability by two. However, when going from a graph with two edges to the graph with three edges, the number of triangles increases by one - which additionally multiplies the probability by three.

We note that the explicit calculation of all graph probabilities is only possible since there are so few different graphs in this example. Since the number of different graphs scales exponentially in the number of tie variables - which in turn scales quadratic in the number of nodes -, computing the normalizing constant is in general computationally intractable, already for a moderate number of nodes.

Sampling from an ERGM

Exact sampling from a given ERGM is computationally intractable in general since computing the normalizing constant requires summation over all [math]\displaystyle{ y\in\mathcal{Y} }[/math]. Efficient approximate sampling from an ERGM can be done via Markov chains and is applied in current methods to approximate expected values and to estimate ERGM parameters.[13] Informally, given an ERGM on a set of graphs [math]\displaystyle{ \mathcal{Y} }[/math] with probability mass function [math]\displaystyle{ P(Y=y | \theta) = \frac{\exp(\theta^{T} s(y))}{c(\theta)} }[/math], one selects an initial graph [math]\displaystyle{ y^{(0)}\in\mathcal{Y} }[/math] (which might be arbitrarily, or randomly, chosen or might represent an observed network) and implicitly defines transition probabilities (or jump probabilities) [math]\displaystyle{ \pi(y,y')=P(Y^{(t+1)}=y'|Y^{(t)}=y) }[/math], which are the conditional probabilities that the Markov chain is on graph [math]\displaystyle{ y' }[/math] after Step [math]\displaystyle{ t+1 }[/math], given that it is on graph [math]\displaystyle{ y }[/math] after Step [math]\displaystyle{ t }[/math]. The transition probabilities do not depend on the graphs in earlier steps ([math]\displaystyle{ y^{(0)},\dots,y^{(t-1)} }[/math]), which is a defining property of Markov chains, and they do not depend on [math]\displaystyle{ t }[/math], that is, the Markov chain is time-homogeneous. The goal is to define the transition probabilities such that for all [math]\displaystyle{ y\in\mathcal{Y} }[/math] it is

[math]\displaystyle{ \lim_{t\to\infty}P(Y^{(t)}=y)=\frac{\exp(\theta^{T} s(y))}{c(\theta)}, }[/math]

independent of the initial graph [math]\displaystyle{ y^{(0)} }[/math]. If this is achieved, one can run the Markov chain for a large number of steps and then returns the current graph as a random sample from the given ERGM. The probability to return a graph [math]\displaystyle{ y\in\mathcal{Y} }[/math] after a finite but large number of update steps is approximately the probability defined by the ERGM.

Current methods for sampling from ERGMs with Markov chains[13] usually define an update step by two sub-steps: first, randomly select a candidate [math]\displaystyle{ y' }[/math] in a neighborhood of the current graph [math]\displaystyle{ y }[/math] and, second, to accept [math]\displaystyle{ y' }[/math] with a probability that depends on the probability ratio of the current graph [math]\displaystyle{ y }[/math] and the candidate [math]\displaystyle{ y' }[/math]. (If the candidate is not accepted, the Markov chain remains on the current graph [math]\displaystyle{ y }[/math].) If the set of graphs [math]\displaystyle{ \mathcal{Y} }[/math] is unconstrained (i.e., contains any combination of values on the binary tie variables), a simple method for candidate selection is to choose one tie variable [math]\displaystyle{ y_{ij} }[/math] uniformly at random and to define the candidate by flipping this single variable (i.e., to set [math]\displaystyle{ y'_{ij}=1-y_{ij} }[/math]; all other variables take the same value as in [math]\displaystyle{ y }[/math]). A common way to define the acceptance probability is to accept [math]\displaystyle{ y' }[/math] with the conditional probability

[math]\displaystyle{ P(Y=y'|Y=y'\vee Y=y)=\frac{P(Y=y')}{P(Y=y')+P(Y=y)}, }[/math]

where the graph probabilities are defined by the ERGM. Crucially, the normalizing constant [math]\displaystyle{ c(\theta) }[/math] cancels out in this fraction, so that the acceptance probabilities can be computed efficiently.

References

  1. Lusher, Dean; Koskinen, Johan; Robins, Garry (2012) (in English). Exponential Random Graph Models for Social Networks: Theory, Methods, and Applications (Structural Analysis in the Social Sciences). doi:10.1017/CBO9780511894701. ISBN 9780521141383. OCLC 1120539699. 
  2. Harris, Jenine K (2014) (in English). An introduction to exponential random graph modeling. ISBN 9781452220802. OCLC 870698788. 
  3. Brennecke, Julia; Rank, Olaf (2017-05-01). "The firm's knowledge network and the transfer of advice among corporate inventors—A multilevel network study". Research Policy 46 (4): 768–783. doi:10.1016/j.respol.2017.02.002. ISSN 0048-7333. 
  4. Harris, Jenine K (2013). "Communication Ties Across the National Network of Local Health Departments" (in English). AMEPRE American Journal of Preventive Medicine 44 (3): 247–253. doi:10.1016/j.amepre.2012.10.028. ISSN 0749-3797. OCLC 4937103196. PMID 23415121. 
  5. Brennecke, Julia (2019). "Dissonant Ties in Intraorganizational Networks: Why Individuals Seek Problem-Solving Assistance from Difficult Colleagues" (in English). AMJ Academy of Management Journal. ISSN 0001-4273. OCLC 8163488129. 
  6. Harris, Jenine K; Luke, Douglas A; Shelton, Sarah C; Zuckerman, Rachael B (2009). "Forty Years of Secondhand Smoke Research. The Gap Between Discovery and Delivery". American Journal of Preventive Medicine 36 (6): 538–548. doi:10.1016/j.amepre.2009.01.039. ISSN 0749-3797. OCLC 6980180781. PMID 19372026. 
  7. Wasserman, Stanley; Faust, Katherine (1994). Social Network Analysis: Methods and Applications. ISBN 978-0-521-38707-1. 
  8. Newman, M.E.J. (2003). "The Structure and Function of Complex Networks". SIAM Review 45 (2): 167–256. doi:10.1137/S003614450342480. Bibcode2003SIAMR..45..167N. 
  9. Contractor, Noshir; Wasserman, Stanley; Faust, Katherine (2006). "Testing Multitheoretical, Multilevel Hypotheses About Organizational Networks: An Analytic Framework and Empirical Example". Academy of Management Review 31 (3): 681–703. doi:10.5465/AMR.2006.21318925. https://pdfs.semanticscholar.org/aff3/68453aa6258c34d5aaeba0fd4a49a864b889.pdf. 
  10. Harris, Jenine K (2014) (in English). An introduction to exponential random graph modeling. ISBN 9781452220802. OCLC 870698788. 
  11. Robins, G.; Pattison, P.; Kalish, Y.; Lusher, D. (2007). "An introduction to exponential random graph models for social networks". Social Networks 29 (2): 173–191. doi:10.1016/j.socnet.2006.08.002. 
  12. Newman, M.E.J. (2010-03-25). "Other Network Models". Networks. pp. 565–585. ISBN 978-0-19-920665-0. 
  13. 13.0 13.1 Hunter, D. R; Handcock, M. S. (2006). "Inference in curved exponential family models for networks". Journal of Computational and Graphical Statistics 15 (3): 565–583. doi:10.1198/106186006X133069. 

Further reading



  1. Harris, Jenine K (2014) (in English). An introduction to exponential random graph modeling. ISBN 9781452220802. OCLC 870698788.