Dynamic Exponential Random Graph Model

Machine Learning
Introduced by
Hanneke, Fu & Xing; Krivitsky & Handcock
Year
2010–2014
Type
Probabilistic graphical model (temporal)
Family
Network science

What does it do?

The Dynamic Exponential Random Graph Model (TERGM; STERGM for the separable variant) extends the exponential random graph (ERGM) framework to panel network data.

It models how ties form and dissolve over time as functions of structural tendencies, nodal attributes, and the network's state at the previous time point. It is used for inference about longitudinal change in network structure.

The intuition behind the method

A static ERGM asks: given a single snapshot of a network, which structural tendencies (such as reciprocity, triangles, and degree spread) best account for its topology? A dynamic ERGM asks the same question across several time points at once, using the network at the previous time as a predictor of the network at the current one. This lets researchers test whether earlier ties persist, whether particular structural configurations make new ties more likely, and whether node characteristics are associated with tie dissolution, all within one probabilistic model.

History

The dynamic extension builds on the static ERGM family. Hanneke, Fu, and Xing (2010) introduced discrete temporal ERGMs that condition on the lagged network and showed that many ERGM estimation methods carry over to them. Krivitsky and Handcock (2014) proposed the separable temporal ERGM (STERGM), which models tie formation and dissolution as separable components and is implemented in the R tergm package.

When to use it

Use a dynamic ERGM when you have two or more observed snapshots of the same network over time and want to model the endogenous and exogenous drivers of tie formation and dissolution simultaneously. It is appropriate for relatively small to medium networks (up to a few thousand nodes) with binary ties and panel structure. Do not use it when the network has continuous edge weights (weighted networks require different frameworks), when only a single cross-sectional snapshot is available (use static ERGM instead), when the network has tens of thousands of nodes (computational cost becomes prohibitive), or when the temporal lag structure is unknown and theoretically undefined.

Limitations and considerations

  • MCMLE estimation can be slow or fail to converge for networks of more than a few thousand nodes.
  • Model degeneracy is a persistent risk: certain combinations of triangle and two-star terms can yield fitted models that generate almost empty or almost complete networks.
  • At least two network observations are required; more time points improve estimation but add to the data and computational burden.
  • The temporal lag (t to t-1) is set on theoretical grounds, and a misspecified lag can bias all estimates.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Jointly models tie formation and dissolution, so in the separable STERGM the forces that create new ties can be distinguished from those that maintain existing ones.
  • Conditions on the observed previous network, making the dependence of current ties on past ties an explicit part of the model; the conditioning does not by itself establish causal effects.
  • Handles endogenous network statistics such as reciprocity and triangles, which induce dependence among ties and violate the independence assumption of standard regression.
  • Goodness-of-fit diagnostics by simulation show whether the fitted model reproduces observed network features.
  • Coefficients on structural and covariate terms can be interpreted in terms of the hypothesised tie mechanisms.

Applications

  • Modeling the evolution of collaboration and co-authorship networks over time.
  • Studying how friendship ties form and dissolve in longitudinal school or organizational panel studies.
  • Analyzing the spread and retraction of alliances or trade relationships between countries.
  • Examining how structural properties such as reciprocity or triadic closure accumulate across network waves.
  • Testing whether an intervention (policy, program) alters tie formation or dissolution rates in a panel network.
  • Simulating future network states under hypothetical covariate scenarios.

How it works

How it works

1

The analyst chooses network statistics, such as edges, reciprocity, triangles, nodal covariates, and lagged ties from the previous time point, that are hypothesised to drive tie formation and dissolution. Each statistic encodes a theoretical mechanism the study is meant to test.

2

The probability of the network at time t is modelled conditionally on the observed network at time t-1, as in the formula above: the probability is proportional to the exponential of a weighted sum of the chosen statistics computed on the current and previous networks. In the separable STERGM of Krivitsky and Handcock, tie formation and tie dissolution are modelled as distinct components, so the forces that create new ties need not be the same as those that maintain existing ones. The single conditional shown in the formula is the general form; the separable parameterisation is an extension of it.

Formula
P(Y^{(t)} \mid Y^{(t-1)}) \propto \exp\!\left(\theta^\top s(Y^{(t)}, Y^{(t-1)})\right)
3

Parameters are estimated by maximum pseudo-likelihood (MPLE) or by Markov chain Monte Carlo maximum likelihood (MCMLE). MPLE is computationally simpler, but its standard errors can be unreliable, particularly for complex models. MCMLE is more demanding but yields likelihood-based estimates, and its cost grows with network size and model complexity. The choice is a trade-off between computation and the reliability of inference. It does not by itself remedy degeneracy, which is a property of the specified terms.

4

Goodness of fit is assessed by simulating many networks from the fitted model and comparing their statistics, such as degree distribution, geodesic distances, and edgewise shared partners, with the observed network. Systematic discrepancies indicate that the model fails to reproduce features of the data, which may signal misspecification. These features are not necessarily terms in the model, so reproducing them is an informative check.

5

The fitted model can simulate longitudinal network trajectories forward in time, supporting scenario analysis, comparison of counterfactual covariate conditions, and forecasting of network structure. Simulated trajectories inherit any misspecification in the fitted model, so they should be checked with the same diagnostics.

Common pitfalls

  • Ignoring model degeneracy: run goodness-of-fit simulations before interpreting coefficients.
  • Relying on MPLE standard errors without checking whether they are reliable for the network size and model complexity.
  • Including many endogenous statistics without theoretical motivation, which increases degeneracy risk.
  • Treating the separable formation/dissolution distinction as optional: conflating the two processes can mask differences in how ties form and persist.
  • Applying the model to a single cross-sectional snapshot and describing it as dynamic.

Frequently asked questions

How is TERGM different from a static ERGM?

A static ERGM models one network snapshot as a function of structural statistics. A TERGM additionally conditions on the prior time point's network, allowing the model to capture how past ties influence future ones and to separately estimate formation versus dissolution processes.

What is STERGM and how does it relate to TERGM?

STERGM (Separable Temporal ERGM) is a variant introduced by Krivitsky and Handcock (2014). It models tie formation and tie dissolution as separable components, including the tie duration distributions and the structural dynamics of formation, so the same structural forces need not drive both processes equally. An implementation is available in the R tergm package.

How many time points do I need?

A minimum of two observations is required. In practice, three or more time points improve parameter stability and allow cross-validation. Very short panels (two points) should be interpreted cautiously, especially for dissolution parameters.

What should I do if my model shows signs of degeneracy?

Degeneracy appears when simulated networks from the fitted model are mostly empty or mostly complete. Reduce the number of triangle or two-star terms, consider geometrically-weighted alternating statistics (GWESP, GWDEGREE) which are less prone to degeneracy, and re-run goodness-of-fit diagnostics after each revision.

Can I use TERGM on weighted or valued networks?

Standard TERGM implementations assume binary ties. Valued (weighted) dynamic networks require separate frameworks such as valued ERGMs or latent space models. Dichotomizing edge weights before fitting TERGM is an option but loses information and should be theoretically justified.

Related methods

Sources

  1. Hanneke, S., Fu, W., & Xing, E. P. (2010). Discrete temporal models of social networks. Electronic Journal of Statistics, 4, 585–605.

    Open DOI reference
  2. Krivitsky, P. N., & Handcock, M. S. (2014). A separable model for dynamic networks. Journal of the Royal Statistical Society: Series B, 76(1), 29–46.

    Open DOI reference