- Introduced by
- Peter Hoff, Adrian Raftery & Mark Handcock
- Year
- 2002
- Type
- Latent-variable model placing actors in an unobserved social space
- Family
- Latent-variable network inference
What does it do?
The latent space network model represents each actor as a point in an unobserved low-dimensional 'social space' and makes the probability of a tie between two actors a decreasing function of the distance between their points.
Peter Hoff, Adrian Raftery, and Mark Handcock introduced it in 2002 as a way to give social networks a geometric interpretation, in which proximity reflects unobserved similarity. Transitivity and homophily arise from this geometry rather than from explicit dependence terms.
The intuition behind the method
Imagine placing every person on a map where being close together means being more likely to be connected. Actors who share many contacts tend to sit near each other, so they are more often tied, and actors far apart rarely connect. The model estimates this hidden map from the observed ties. The triangle inequality also constrains the map: if A is close to B and B is close to C, then A cannot be far from C, because the distance from A to C is at most the sum of the two shorter distances. This favours the clustering of triangles that is typical of social networks, though it does not force every such triple to be tied.
History
Peter Hoff, Adrian Raftery, and Mark Handcock introduced the latent space approach in their 2002 Journal of the American Statistical Association paper. In that paper, ties depend on positions in an unobserved social space, and inference is carried out by maximum likelihood and Bayesian MCMC. Handcock, Raftery, and Tantrum added model-based clustering in 2007 with the latent position cluster model. Implementations are available in the latentnet R package.
When to use it
Use a latent space model when you want a parsimonious, interpretable account of an observed network in which homophily and transitivity are expressed through distances, when a two-dimensional map of actor positions will help communicate results, or when you want model-based clustering of actors. It is suitable for networks of moderate size where covariate effects are of interest. Avoid it for very large networks, where MCMC fitting becomes slow and approximations are needed. For explicit testing of specific local configurations, an ERGM is more direct. For questions about how ties change over time, a dynamic extension of the latent space model or a longitudinal actor-oriented model is more appropriate. The latent dimension and, in the cluster model, the number of groups must be chosen with care.
Limitations and considerations
- Latent positions are identified only up to rotation, reflection, and translation, so comparisons require alignment and interpretation must focus on relative distances.
- MCMC estimation becomes slow for large networks, and faster approximations are needed in that case.
- The choice of latent dimension affects both model fit and interpretability. It should be made by comparing fit across candidate dimensions, for example with information criteria or held-out link prediction, rather than fixed by default.
- Tie probability depends on Euclidean distance, which is symmetric. The basic form may therefore fit strongly directed or hierarchical networks poorly unless the model is extended.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Transitivity and homophily are captured by the geometry of the latent positions, so the model does not need explicit dependence terms of the kind that can produce degenerate ERGM fits.
- With a two-dimensional latent space, the fitted positions can be plotted as an interpretable map of the network.
- Conditional independence of ties given the positions keeps the likelihood tractable and allows Bayesian inference, which quantifies uncertainty in the positions.
- The cluster extension provides model-based clustering, and the number of groups can be assessed within the framework rather than fixed in advance.
Applications
- Visualizing social relationship networks as model-based maps of actor positions.
- Model-based clustering of actors in social networks, with the number of groups assessed rather than assumed.
- Generating realistic networks with clustering for use as inputs to larger models, such as epidemic models of infectious disease.
- Quantifying and graphically displaying the statistical uncertainty in actor positions through Bayesian MCMC.
How it works
How it works
Conditional on the latent positions, all ties are modeled as independent, so the joint probability of the network factorizes into a product over dyads. The latent positions absorb the dependence among ties. The network dependence is therefore represented through the unobserved geometry rather than through explicit dependence terms.
Formula
P(Y \mid Z, X, \theta) = \prod_{i\neq j} P(y_{ij} \mid z_i, z_j, x_{ij}, \theta)Each tie follows a logistic regression whose linear predictor includes an intercept, optional covariate effects, and minus the Euclidean distance between the two actors' latent positions. The closer two actors are in latent space, the higher their tie probability, so distance encodes unobserved propensity to connect.
Formula
\operatorname{logit} P(y_{ij}=1) = \alpha + \beta^\top x_{ij} - \lVert z_i - z_j \rVertEach actor is assigned a position z_i in a d-dimensional latent space. The formula gives d = 2 as the typical choice, because a two-dimensional fit can be plotted as a map of the network. The dimension is a modeling choice that trades interpretability against fit.
Formula
z_i \in \mathbb{R}^d,\quad d = 2\ \text{typically (for visualization)}The latent positions and parameters can be estimated by maximum likelihood, with the positions treated as parameters, or by Bayesian MCMC, which samples from the posterior of the positions and coefficients. Because distances are unchanged by rotation, reflection, and translation, the fitted configuration is identified only up to these transformations. Comparisons across fits therefore require an alignment step such as Procrustes alignment.
Formula
\{\hat{z}_i\},\hat{\theta} \ \text{by MLE or MCMC (Bayesian) posterior sampling}The latent position cluster model places a mixture-of-Gaussians prior on the positions, so actors fall into latent groups. Clusters in the latent space group actors whose positions are drawn from the same mixture component, so actors in one cluster share similar tie probabilities to others. Dense ties within a cluster are one possible pattern, but the cluster definition does not require them. The number of clusters is not fixed in advance and can be assessed with approximate conditional Bayes factors.
Formula
z_i \sim \sum_{g=1}^{G} \pi_g\, N(\mu_g, \sigma_g^2 I)\quad\text{(latent position cluster model)}Common pitfalls
- Comparing or overlaying latent maps from separate fits without alignment, since each fit is identified only up to isometry.
- Reading absolute coordinates as meaningful. Only relative distances among actors carry information.
- Ignoring label switching in the cluster model when summarizing posterior cluster memberships.
- Forcing a two-dimensional space for visualization when fit diagnostics indicate that a higher dimension is needed.
Frequently asked questions
How does the latent space model differ from ERGM?
ERGM models the network through explicit counts of local configurations (edges, triangles, shared partners) and can suffer from degeneracy. The latent space model instead introduces unobserved actor positions and makes ties conditionally independent given those positions, so transitivity and homophily arise from geometry rather than from dependence terms. ERGM is better for testing specific structural hypotheses; the latent space model is better for parsimonious representation, visualization, and clustering.
Why are only relative distances interpretable?
Because tie probabilities depend only on Euclidean distances between latent positions, the likelihood is invariant to rotating, reflecting, or translating the entire configuration. The absolute coordinates therefore carry no meaning, and two fits are comparable only after a Procrustes transformation aligns them; what is identified is the pattern of relative distances among actors.
How do I choose the latent dimension?
Two dimensions are standard because they allow direct plotting, but the dimension can be selected by comparing model fit (e.g., information criteria or held-out link prediction) across dimensions. Higher dimensions improve fit but reduce interpretability and visualization, so the choice balances predictive adequacy against the goal of an interpretable social map.
Related methods
Sources
Hoff, P. D., Raftery, A. E., & Handcock, M. S. (2002). Latent space approaches to social network analysis. Journal of the American Statistical Association, 97(460), 1090–1098.
Open DOI referenceHandcock, M. S., Raftery, A. E., & Tantrum, J. M. (2007). Model-based clustering for social networks. Journal of the Royal Statistical Society: Series A, 170(2), 301–354.
Open DOI reference