# On the accurate computation of expected modularity in probabilistic networks

**Authors:** Xin Shen, Matteo Magnani, Christian Rohner, Fiona Skerman

PMC · DOI: 10.1038/s41598-025-99114-5 · Scientific Reports · 2025-05-30

## TL;DR

This paper introduces a fast and accurate method for computing expected modularity in probabilistic networks, outperforming existing techniques in both speed and accuracy.

## Contribution

A novel technique called FPWP for efficiently and accurately computing the expected modularity in probabilistic networks.

## Key findings

- Removing low-probability edges or treating probabilities as weights leads to inaccurate modularity results.
- FPWP is significantly faster than brute-force computation while maintaining accuracy.
- Monte Carlo sampling's effectiveness depends heavily on network parameters.

## Abstract

Modularity is one of the most widely used measures for evaluating communities in networks. In probabilistic networks, where the existence of edges is uncertain and uncertainty is represented by probabilities, the expected value of modularity can be used instead. However, efficiently computing expected modularity is challenging. To address this challenge, we propose a novel and efficient technique (\documentclass[12pt]{minimal}
				\usepackage{amsmath}
				\usepackage{wasysym} 
				\usepackage{amsfonts} 
				\usepackage{amssymb} 
				\usepackage{amsbsy}
				\usepackage{mathrsfs}
				\usepackage{upgreek}
				\setlength{\oddsidemargin}{-69pt}
				\begin{document}$$\textrm{FPWP}$$\end{document}) for computing the probability distribution of modularity and its expected value. In this paper, we implement and compare our method and various general approaches for expected modularity computation in probabilistic networks. These include: (1) translating probabilistic networks into deterministic ones by removing low-probability edges or treating probabilities as weights, (2) using Monte Carlo sampling to approximate expected modularity, and (3) brute-force computation. We evaluate the accuracy and time efficiency of \documentclass[12pt]{minimal}
				\usepackage{amsmath}
				\usepackage{wasysym} 
				\usepackage{amsfonts} 
				\usepackage{amssymb} 
				\usepackage{amsbsy}
				\usepackage{mathrsfs}
				\usepackage{upgreek}
				\setlength{\oddsidemargin}{-69pt}
				\begin{document}$$\textrm{FPWP}$$\end{document} through comprehensive experiments on both real-world and synthetic networks with diverse characteristics. Our results demonstrate that removing low-probability edges or treating probabilities as weights produces inaccurate results, while the convergence of the sampling method varies with the parameters of the network. Brute-force computation, though accurate, is prohibitively slow. In contrast, our method is much faster than brute-force computation, but guarantees an accurate result.

## Full-text entities

- **Diseases:** OSN (OMIM:300082)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12125379/full.md

## Figures

16 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12125379/full.md

## References

11 references — full list in the complete paper: https://tomesphere.com/paper/PMC12125379/full.md

---
Source: https://tomesphere.com/paper/PMC12125379