Weighted Stochastic Block Model
Weighted Stochastic Block Model (W-SBM) · Also known as: W-SBM, weighted SBM, weighted block model, weighted community detection via SBM
The Weighted Stochastic Block Model (W-SBM) extends the classical stochastic block model to networks whose edges carry numerical weights. By positing that edge weights between node pairs arise from distributions that depend on the block memberships of those nodes, it simultaneously infers a partition of nodes into communities and a set of block-to-block weight parameters — recovering structure invisible to unweighted methods.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use W-SBM when your network has meaningful edge weights (interaction frequency, correlation strength, trade volume, similarity scores) and you want to discover community structure that reflects both connection topology and weight heterogeneity. It outperforms unweighted SBM and modularity maximisation when block membership determines not just who connects to whom but also how strongly. Avoid W-SBM when edge weights are unreliable proxies (e.g., heavily censored or coarsely binned), when the network is very sparse and most weights are zero, or when you need a computationally lightweight first pass — standard modularity optimisation is faster and simpler.
Strengths & limitations
- Exploits full weight information, not just topology, yielding finer community detection than binary methods.
- Principled probabilistic framework allows formal model comparison (BIC, MDL) and uncertainty quantification.
- Flexible choice of weight distribution accommodates count, continuous, and mixed-type edge data.
- Bayesian variants can incorporate prior knowledge about the number or size of communities.
- Handles assortative, disassortative, and core-periphery structure on equal footing.
- Scales to moderately large networks with efficient variational or belief-propagation algorithms.
- Requires specifying (or searching over) the number of blocks K, which can be computationally expensive.
- Results can be sensitive to the choice of weight distribution — a misspecified family degrades block recovery.
- Identifiability can be weak in very sparse networks; many block configurations may achieve similar likelihoods.
- Computational cost grows with network size and K; exact inference is intractable for large graphs.
- Does not naturally handle networks with both positive and negative edge weights without model extension.
Frequently asked
How do I choose the right weight distribution?
Match the distribution to your data: Poisson for non-negative integer counts, normal for symmetric real-valued weights, log-normal or gamma for positive skewed weights. Plot the empirical weight distribution and fit candidate families; use likelihood or BIC to select.
How many blocks should I use?
There is no universally correct answer. Fit the model for a range of K values (e.g., 2 to 15) and compare using BIC or cross-validated held-out likelihood. Large K requires more data per block to estimate weight parameters reliably.
Is W-SBM the same as weighted modularity maximisation?
No. Weighted modularity maximisation optimises a heuristic quality function and does not assume a generative model. W-SBM defines a probabilistic data-generating process, supports formal model comparison, and can recover disassortative (core-periphery) structure that modularity tends to miss.
What software can I use?
The graph-tool Python library implements Bayesian SBM inference with edge weights. The R package blockmodels and the Python package sklearn-compatible implementations by Aicher et al. also support W-SBM variants.
Can W-SBM handle directed weighted networks?
Yes. The block-pair weight parameters are defined separately for each ordered block pair (r, s) and (s, r), so directed networks are handled naturally with no modification to the inference procedure.
Sources
- Aicher, C., Jacobs, A. Z., & Clauset, A. (2014). Learning latent block structure in weighted networks. Journal of Complex Networks, 3(2), 221–248. DOI: 10.1093/comnet/cnu026 ↗
- Nowicki, K., & Snijders, T. A. B. (2001). Estimation and prediction for stochastic blockstructures. Journal of the American Statistical Association, 96(455), 1077–1087. DOI: 10.1198/016214501753208735 ↗
How to cite this page
ScholarGate. (2026, June 3). Weighted Stochastic Block Model (W-SBM). ScholarGate. https://scholargate.app/en/network-analysis/weighted-stochastic-block-model
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Modularity AnalysisNetwork analysis↔ compare
- Stochastic Block ModelNetwork analysis↔ compare
- Weighted Community DetectionNetwork analysis↔ compare
- Weighted Exponential Random Graph ModelNetwork analysis↔ compare
- Weighted Modularity AnalysisNetwork analysis↔ compare
- Weighted Social Network AnalysisNetwork analysis↔ compare