- Introduced by
- Brandes, U. (betweenness); Bayesian extension developed by multiple authors (2010s)
- Year
- 2010s
- Type
- Probabilistic network centrality measure
- Family
- Network science
What does it do?
Bayesian Betweenness Centrality estimates how often a node lies on shortest paths in a network while quantifying the uncertainty that arises from incomplete, sampled, or noisy edge observations.
Instead of a single point estimate, it yields a posterior distribution over betweenness scores, which supports credible intervals and probabilistic comparisons between nodes.
The intuition behind the method
Classical betweenness centrality counts how many shortest paths pass through a node, but that count assumes the observed network is perfectly and completely measured — an assumption rarely met in practice. When edges are sampled, inferred from surveys, or observed with error, the true betweenness scores are themselves uncertain. The Bayesian approach treats the unobserved true network as a latent variable, places a prior distribution over possible network structures or edge weights, and updates that prior with the observed data to obtain a posterior distribution of betweenness scores. The result is not a single ranking but a set of plausible rankings with associated probabilities.
History
Betweenness centrality was introduced by Linton Freeman in 1977 as a measure of a node's position on shortest paths, and an efficient algorithm, running in O(VE) time on unweighted networks, was provided by Ulrik Brandes in 2001. Bayesian extensions of betweenness are applied in settings where network data are sampled or uncertain.
When to use it
Use Bayesian Betweenness Centrality when the network is derived from sampled, self-reported, or otherwise uncertain relational data — such as survey-based friendship networks, citation graphs with incomplete coverage, or communication logs that capture only a fraction of true interactions. It is appropriate when decisions hinge on the relative ranking of nodes and confidence in those rankings matters, or when the network is small enough that estimation uncertainty is non-trivial. Avoid it when the network is directly and completely observed (e.g., a full organisational email log), when computational resources are limited (MCMC inference on large graphs is expensive), or when a straightforward node ranking is sufficient without uncertainty bounds.
Limitations and considerations
- Each posterior sample requires a full betweenness computation, so total cost scales with the MCMC run length times the per-network betweenness cost (O(VE) for unweighted networks), which limits use on large graphs.
- The posterior depends on the prior over network structure; in small samples the prior can shape the result more than the data do.
- Few dedicated off-the-shelf packages exist for this method, so the network model and sampler usually have to be built and validated by the analyst.
- Posterior distributions over node rankings are harder to communicate to non-specialists than a single ordering.
- When the network is completely observed and error-free, there is no structural uncertainty to propagate, and the added modelling effort brings little benefit over classical betweenness.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Credible intervals on each node's betweenness make the uncertainty in a ranking explicit rather than hidden behind a single score.
- Missing or unobserved edges are handled as latent variables inside the model, so incompleteness is modelled rather than ignored.
- Pairwise statements, such as the posterior probability that node A exceeds node B, can be computed directly from the posterior samples.
- Domain knowledge enters through the prior, which matters most when the network is small and the observed data are thin.
Applications
- Partially observed contact networks, where ranking likely high-exposure individuals must account for interactions that were never recorded.
- Survey-based inter-unit collaboration networks with missing responses, where broker rankings carry uncertainty from non-response.
- Citation networks with incomplete database coverage, where the influence ranking of papers depends on which links happen to be present.
- Sampled follower graphs obtained under access limits, where bridge-account rankings are estimated from a subset of edges.
- Protein-interaction networks inferred from noisy assays, where hub status is itself uncertain.
How it works
How it works
A prior distribution is placed over network structure or edge-existence probabilities, encoding beliefs about connectivity or edge-weight ranges before any data are observed. An Erdős–Rényi-type prior treats each edge as present independently with a common probability, while informative priors can be derived from domain knowledge. Because the prior can dominate the data when the network is small or the observations are thin, the choice should be reported and tested: refit the model with alternative reasonable priors (for example, a weaker and a stronger edge-probability prior) and check whether node rankings and credible intervals change materially.
A likelihood function specifies how the observed relational data (survey responses, logs, sampled links) were generated from a latent true network. Edge-level models such as Bernoulli or Beta likelihoods turn raw observations into probabilistic evidence about which edges exist and how strong they are.
Bayes' theorem combines the prior over networks and the likelihood of the observed data under each candidate network to form a posterior distribution over network configurations. This posterior is approximated by MCMC sampling or variational inference. Betweenness scores are then computed on the sampled networks, so their posterior is induced by the posterior over networks rather than specified directly. Because the posterior is approximated, the sampler must be checked before results are interpreted: run several chains from dispersed starting points, confirm that they agree (R-hat close to 1), check that the effective sample size is adequate for the quantities reported, and confirm that interval endpoints remain stable when the run is repeated with a different random seed. The number of samples needed depends on network size and the precision required, so it should be established empirically rather than assumed.
For each sampled network, classical betweenness centrality is computed with Brandes' algorithm. For unweighted networks this runs in O(VE) time; weighted networks require a Dijkstra-based shortest-path step, which increases the cost. A node's score sums, over source-target pairs that do not involve it, the fraction of shortest paths between them that pass through it. The formula is unnormalised, so raw scores from networks of different sizes must not be compared directly. Any comparison across networks requires an explicit normalisation convention, stated in the analysis.
Formula
BC(v) = \sum_{s \neq v \neq t} \frac{\sigma_{st}(v)}{\sigma_{st}}Pooling betweenness scores across the sampled networks gives an empirical posterior for each node. Analysts typically report the posterior mean or median with credible intervals, and can estimate the posterior probability that one node ranks above another, which point estimates alone cannot provide.
Common pitfalls
- Reporting only the posterior mean and ignoring the credible intervals, which removes the main reason for the Bayesian treatment.
- Using a flat or very weak prior on a small network, where the posterior may mostly reflect the prior assumptions.
- Reporting MCMC output without convergence checks, so that unconverged samples are presented as the posterior.
- Treating bootstrapped intervals of classical betweenness as equivalent; resampling observed edges does not represent uncertainty about edges that were never observed.
- Applying the method to a fully observed, error-free network, where classical betweenness is simpler and sufficient.
Frequently asked questions
How does this differ from simply bootstrapping classical betweenness centrality?
Bootstrapping resamples observed edges but does not model uncertainty about whether unobserved edges exist. Bayesian betweenness centrality places an explicit probabilistic model over the true network structure, including edges that may be missing from the data, producing a principled posterior rather than an empirical sampling distribution.
What software can I use to implement Bayesian betweenness centrality?
Few dedicated off-the-shelf packages exist for this method, so a common route is to build the network model in a general probabilistic programming tool such as Stan or PyMC, and to compute classical betweenness on each sampled network with NetworkX or igraph. The posterior is then assembled from the per-sample scores.
How large can the network be before the method becomes impractical?
Cost grows with both the number of MCMC samples needed for stable estimates and the betweenness computation on each sample (O(VE) for unweighted networks). Large networks therefore typically need approximations, such as estimating betweenness from sampled paths or using variational inference. No fixed size threshold applies, because practicality depends on the number of samples, the available hardware, and whether edges are weighted.
Is a prior over edges or over betweenness scores used directly?
The prior is placed over the network structure or edge parameters, not directly over betweenness scores. Betweenness scores are derived from each sampled network, so their posterior distribution is an induced consequence of the structural prior and likelihood.
When should I report credible intervals versus a single point estimate?
Report credible intervals whenever the ranking or selection of nodes is a substantive decision, for instance choosing intervention targets in public health or identifying key brokers in an organisation. When the network is large and well-observed and the posterior variance is negligible, a point estimate with a brief note on uncertainty is sufficient.
Related methods
Sources
Newman, M.E.J. (2010). Networks: An Introduction. Oxford University Press.
ISBN: 978-0-19-920665-0Fortunato, S., Bergstrom, C.T., Borner, K., Evans, J.A., Helbing, D., Milojevi, S., Petersen, A.M., Radicchi, F., Sinatra, R., Uzzi, B., Vespignani, A., Waltman, L., Wang, D. & Barabasi, A.-L. (2018). Science of science. Science, 359(6379), eaao0185.
Open DOI reference