Exponential family random graph models

From testwiki
Jump to navigation Jump to search

Exponential family random graph models (ERGMs) are a set of statistical models used to study the structure and patterns within networks, such as those in social, organizational, or scientific contexts.[1][2] They analyze how connections (edges) form between individuals or entities (nodes) by modeling the likelihood of network features, like clustering or centrality, across diverse examples including knowledge networks,[3] organizational networks,[4] colleague networks,[5] social media networks, networks of scientific collaboration,[6] and more. Part of the exponential family of distributions, ERGMs help researchers understand and predict network behavior in fields ranging from sociology to data science.Template:Network Science

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.[9] 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.[10][2] 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 Y𝒴 consists of a set of n nodes and a collection of tie variables {Yij:i=1,,n;j=1,,n}, indexed by pairs of nodes ij, where Yij=1 if the nodes (i,j) are connected by an edge and Yij=0 otherwise. A pair of nodes ij is called a dyad and a dyad is an edge if Yij=1.

The basic assumption of these models is that the structure in an observed graph y can be explained by a given vector of sufficient statistics s(y) 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:

P(Y=y|θ)=exp(θTs(y))c(θ),y𝒴

where θ is a vector of model parameters associated with s(y) and c(θ)=y𝒴exp(θTs(y)) is a normalising constant.

These models represent a probability distribution on each possible network on n nodes. However, the size of the set of possible networks for an undirected network (simple graph) of size n is 2n(n1)/2. 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 V={1,2,3} be a set of three nodes and let 𝒴 be the set of all undirected, loopless graphs on V. Loopless implies that for all i=1,2,3 it is Yii=0 and undirected implies that for all i,j=1,2,3 it is Yij=Yji, so that there are three binary tie variables (Y12,Y13,Y23) and 23=8 different graphs in this example.

Define a two-dimensional vector of statistics by s(y)=[s1(y),s2(y)]T, where s1(y)=edges(y) is defined to be the number of edges in the graph y and s2(y)=triangles(y) is defined to be the number of closed triangles in y. Finally, let the parameter vector be defined by θ=(θ1,θ2)T=(ln2,ln3)T, so that the probability of every graph y𝒴 in this example is given by:

P(Y=y|θ)=exp(ln2edges(y)+ln3triangles(y))c(θ)

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 y of each isomorphism class, we first compute the term x(y)=exp(ln2edges(y)+ln3triangles(y)), which is proportional to the probability of y (up to the normalizing constant c(θ)).

If y is the graph with zero edges, then it is edges(y)=0 and triangles(y)=0, so that

x(y)=exp(ln20+ln30)=exp(0)=1.

If y is a graph with exactly one edge, then it is edges(y)=1 and triangles(y)=0, so that

x(y)=exp(ln21+ln30)=exp(0)exp(ln2)=12.

If y is a graph with exactly two edges, then it is edges(y)=2 and triangles(y)=0, so that

x(y)=exp(ln22+ln30)=exp(0)exp(ln2)2=14.

If y is the graph with exactly three edges, then it is edges(y)=3 and triangles(y)=1, so that

x(y)=exp(ln23+ln31)=exp(ln3)exp(ln2)3=38.

The normalizing constant is computed by summing x(y) over all eight different graphs y𝒴. This yields:

c(θ)=1+312+314+38=298.

Finally, the probability of every graph y𝒴 is given by P(Y=y|θ)=x(y)c(θ). Explicitly, we get that the graph with zero edges has probability 829, every graph with exactly one edge has probability 429, every graph with exactly two edges has probability 229, and the graph with exactly three edges has probability 329 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 (θ1=ln2) 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 (θ2=ln3) 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 y𝒴. 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 𝒴 with probability mass function P(Y=y|θ)=exp(θTs(y))c(θ), one selects an initial graph y(0)𝒴 (which might be arbitrarily, or randomly, chosen or might represent an observed network) and implicitly defines transition probabilities (or jump probabilities) π(y,y)=P(Y(t+1)=y|Y(t)=y), which are the conditional probabilities that the Markov chain is on graph y after Step t+1, given that it is on graph y after Step t. The transition probabilities do not depend on the graphs in earlier steps (y(0),,y(t1)), which is a defining property of Markov chains, and they do not depend on t, that is, the Markov chain is time-homogeneous. The goal is to define the transition probabilities such that for all y𝒴 it is

limtP(Y(t)=y)=exp(θTs(y))c(θ),

independent of the initial graph y(0). 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 y𝒴 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 y in a neighborhood of the current graph y and, second, to accept y with a probability that depends on the probability ratio of the current graph y and the candidate y. (If the candidate is not accepted, the Markov chain remains on the current graph y.) If the set of graphs 𝒴 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 yij uniformly at random and to define the candidate by flipping this single variable (i.e., to set y'ij=1yij; all other variables take the same value as in y). A common way to define the acceptance probability is to accept y with the conditional probability

P(Y=y|Y=yY=y)=P(Y=y)P(Y=y)+P(Y=y),

where the graph probabilities are defined by the ERGM. Crucially, the normalizing constant c(θ) cancels out in this fraction, so that the acceptance probabilities can be computed efficiently.

See also

References

Template:Reflist

Further reading