Hierarchical clustering of bipartite data sets based on the statistical significance of coincidences Articles uri icon

publication date

  • October 2020

start page

  • 1

end page

  • 12


  • 4, 042304


  • 102

International Standard Serial Number (ISSN)

  • 2470-0045

Electronic International Standard Serial Number (EISSN)

  • 2470-0053


  • When some 'entities' are related by the 'features' they share they are amenable to a bipartite network representation. Plant-pollinator ecological communities, co-authorship of scientific papers, customers and purchases, or answers in a poll, are but a few examples. Analyzing clustering of such entities in the network is a useful tool with applications in many fields, like internet technology, recommender systems, or detection of diseases. The algorithms most widely applied to find clusters in bipartite networks are variants of modularity optimization. Here, we provide a hierarchical clustering algorithm based on a dissimilarity between entities that quantifies the probability that the features shared by two entities are due to mere chance. The algorithm performance is O(n2) when applied to a set of n entities, and its outcome is a dendrogram exhibiting the connections of those entities. Through the introduction of a 'susceptibility' measure we can provide an 'optimal' choice for the clustering as well as quantify its quality. The dendrogram reveals further useful structural information though -like the existence of subclusters within clusters or of nodes that do not fit in any cluster. We illustrate the algorithm by applying it first to a set of synthetic networks, and then to a selection of examples. We also illustrate how to transform our algorithm into a valid alternative for one-mode networks as well, and show that it performs at least as well as the standard, modularity-based algorithms- with a higher numerical performance. We provide an implementation of the algorithm in python freely accessible from GitHub.


  • Mathematics


  • community detection; graph clustering; modularity