- Introduced by
- Frank & Strauss (1986); extended by Wasserman & Pattison (1996) and Robins et al. (2007)
- Year
- 1986 (foundational); modern ERGM framework 1996–2007
- Type
- Probabilistic generative network model
What does it do?
The Exponential Random Graph Model (ERGM), also known as the p* model, is a statistical framework for network data that models the probability of an observed network as a function of its local structural features, such as reciprocity, triangles and degree distribution.
It descends from the work of Frank and Strauss (1986), was formalised by Wasserman and Pattison (1996), and was introduced to applied researchers in its modern form by Robins et al. (2007). Its main use is to test whether particular structural patterns in a network occur more often than a model without those tendencies would predict.
The intuition behind the method
When you look at a social network — a friendship graph, a collaboration network, a citation web — you notice patterns: friends of friends tend to become friends themselves, popular actors attract more ties, relationships are often reciprocated. ERGM asks a fundamental question: are these patterns more prevalent than you would expect by chance alone? It does this by treating the entire observed network as a single outcome drawn from a probability distribution, where the probability of that network depends on how many instances of chosen structural configurations (triangles, reciprocal ties, star shapes) it contains. Configurations with positive coefficients are more likely to occur than chance; negative coefficients mean those configurations are actively avoided. The model is estimated not by ordinary regression but by Markov chain Monte Carlo simulation, which generates thousands of plausible networks to compare against the observed one.
History
Holland and Leinhardt (1981) introduced the p1 model, which accounted for reciprocity in directed networks. Frank and Strauss (1986) extended this to a Markov random graph framework able to represent higher-order dependence such as triangles. Wasserman and Pattison (1996) formalised the exponential family representation, and the p* label is associated with this line of work. A widely used computational implementation is the statnet suite in R.
When to use it
Choose ERGM when you have a single observed binary network (directed, undirected or bipartite) and a set of theory-driven hypotheses about local structural processes such as reciprocity, clustering, preferential attachment or homophily. The network should be of moderate size. As a rough rule of thumb, about 30 nodes is the smallest size at which estimates are usually workable; this is not a validated cut-off. MCMC convergence becomes difficult as networks reach the hundreds to thousands of nodes. For networks below the rough threshold of about 30 nodes, take care in interpreting estimates, and consider descriptive network statistics, which may be more informative. Avoid ERGM when there are no clear structural hypotheses, or when the question concerns continuous-time tie dynamics, for which a Temporal ERGM or a Stochastic Actor-Oriented Model is more suitable. Weighted variants exist but are more complex to specify and interpret.
Limitations and considerations
- MCMC estimation can be slow and may fail to converge as networks grow; in practice this becomes a constraint for networks in the hundreds to a few thousand nodes.
- Model degeneracy, where the estimated model places nearly all probability on empty or complete networks, is a persistent risk that requires careful choice of statistics.
- The model is primarily designed for cross-sectional snapshots; modelling genuine network dynamics requires extensions such as Temporal ERGM (TERGM) or SAOMs.
- As a rough rule of thumb, networks with fewer than about 30 nodes tend to give unstable estimates, and very small networks may yield uninformative results.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Provides formal statistical inference (p-values, standard errors and confidence statements) for hypotheses about network structure.
- Handles the non-independence of network ties that violates the assumptions of standard regression, making it a suitable inferential tool for network data.
- Flexible specification: directed, undirected, bipartite and weighted variants allow coverage of many network types.
- Goodness-of-fit diagnostics give a systematic way to check whether the model reproduces global network structure from its local statistics.
Applications
- Explaining tie formation in organisational advice networks, for example testing whether people seek advice from others of similar status or from those they are already friends with.
- Modelling collaboration patterns among researchers, such as whether co-authorship forms through transitivity (friends of friends) or is driven by institutional affiliation.
- Epidemiological contact networks, where ERGM can test which structural tendencies are present in the observed ties.
- International relations, testing whether alliance formation is reciprocal, transitive or driven by shared attributes such as democracy or trade dependence.
- Online social platform research, distinguishing structural tendencies in follower networks, such as clustering and degree skew, from patterns that may reflect platform design.
How it works
How it works
The analyst assembles the network data (nodes, edges, and any node or edge attributes) and decides whether the network is directed or undirected. As a rough rule of thumb, about 30 nodes is the smallest size at which estimates are usually workable. This is not a validated cut-off, and estimates for smaller networks are often unstable. The structural features to be tested, such as reciprocity, transitivity, degree heterogeneity and covariate effects, are specified at this stage.
A set of network statistics is chosen to represent the hypothesised tie-formation processes. Typical terms are edges (baseline density), reciprocity (mutual ties in directed networks), geometrically weighted edgewise shared partners (GWESP, for triadic closure), geometrically weighted degree (GWD, for the degree distribution) and nodal covariates. Because the statistics define what the model can detect, they should follow the substantive hypotheses; GWESP and GWD are preferred over raw triangle counts because they are less prone to degeneracy.
Because the normalising constant of the ERGM likelihood is intractable for all but trivially small networks, parameters are estimated via Markov chain Monte Carlo maximum likelihood (MCMC-MLE). The algorithm iteratively proposes edge additions and deletions, accepting or rejecting each according to the current parameter values, and uses the resulting simulated network distribution to update the parameter estimates until convergence.
After estimation, MCMC diagnostics are inspected: trace plots of the simulated statistics should look stationary and mix well, and the t-ratios for the model statistics should be close to zero. If the trace plots drift or the t-ratios remain large, the MCMC run should be lengthened or its settings revised before the results are used. Goodness-of-fit (GOF) plots then compare simulated networks with the observed network on statistics not included in the model, such as the degree distribution, geodesic distances and edgewise shared partners. Degeneracy, where probability concentrates on empty or complete networks, signals mis-specification and calls for better-behaved statistics before the coefficients are interpreted.
Estimated coefficients are interpreted on the log-odds scale, analogous to logistic regression. For simple terms such as edges and reciprocity, the coefficient gives the change in the log-odds of a tie for each unit change in the statistic, conditional on the rest of the network. For example, a positive reciprocity coefficient means that a tie whose reverse tie is already present has higher log-odds of forming, by that amount. Curved terms such as GWESP and GWD do not carry this per-unit reading, because their coefficients multiply a decay-weighted sum of the underlying configurations. Their effects should be read through the fitted model's simulated distribution rather than as a fixed increment per triangle or per node. Standard errors and z-tests are used for inference. The analyst reports which structural configurations are significantly more or less prevalent than chance and connects those findings to the substantive theory of the network formation process.
Common pitfalls
- Including a raw triangle count statistic (triangle) without a geometrically weighted version (GWESP) frequently causes degeneracy; curved exponential family statistics such as GWESP are usually the safer choice.
- Interpreting before checking: a model that has not passed MCMC diagnostics and goodness-of-fit tests may converge yet be mis-specified, and its coefficients can be biased.
- Interpreting ERGM coefficients as ordinary regression slopes: they are log-odds of tie presence conditional on the rest of the network, not marginal effects.
- Applying ERGM to networks with fewer than about 30 nodes, where estimates are often unstable (a rough rule of thumb); descriptive network statistics are then often more appropriate.
Frequently asked questions
How does ERGM differ from ordinary logistic regression on dyads?
Logistic regression treats each tie as an independent observation, which violates the fundamental non-independence of network data: the presence of one tie changes the probability of others. ERGM explicitly models this dependence by conditioning on the full network structure and is therefore the statistically appropriate approach for network data.
What is degeneracy and how do I avoid it?
Degeneracy occurs when the estimated model places nearly all probability on either the empty network or the complete network, which makes it uninformative. A frequent cause is the raw triangle count statistic. The usual remedy is to use geometrically weighted statistics, GWESP for triadic closure and GWD for the degree distribution, which are curved exponential family statistics designed to be more stable.
How large does my network need to be?
As a rough rule of thumb, about 30 nodes is the smallest size at which estimates are usually workable; this is not a validated threshold. As networks grow into the hundreds and thousands of nodes, MCMC convergence becomes slower and harder, and other model families may be more practical for very large networks.
Can ERGM model longitudinal network change?
The standard cross-sectional ERGM models a single network snapshot. For panel data with repeated network observations, the Temporal ERGM (TERGM) or the Stochastic Actor-Oriented Model (SAOM / SIENA) are the appropriate extensions that model tie dynamics over time.
Related methods
Sources
Robins, G., Pattison, P., Kalish, Y., & Lusher, D. (2007). An introduction to exponential random graph (p*) models for social networks. Social Networks, 29(2), 173-191.
Open DOI referenceLusher, D., Koskinen, J., & Robins, G. (Eds.) (2012). Exponential Random Graph Models for Social Networks: Theory, Methods, and Applications. Cambridge University Press.
ISBN: 9780521193566