# Normalized spectral clustering beat walktrap on most community-recovery tests

- **Date:** 1 Aug 2024
- **Journal:** Psychological Methods
- **DOI:** https://doi.org/10.1037/met0000509
- **Paper:** https://doi.org/10.1037/met0000509
- **Free copy:** https://doi.org/10.1037/met0000509
- **Tags:** #methods #cognition
- **Open science:** Open access (hybrid)

## Quick

Both tools can partition an undirected network into communities. The spectral approach won more often, except when the number of communities had to be guessed.

- Normalized Laplacian recovery was stronger
- The unnormalized Laplacian lagged
- Walktrap guessed cluster count better

## Findings

In simulated undirected networks, grouping vertices from the normalized Laplacian usually rebuilt the hidden communities more accurately than walktrap once the number of groups was supplied. When that number had to be discovered, walktrap paired with a modularity index did better than the eigengap rule.

- Walktrap recovered clusters better when K-means replaced hierarchical clustering.
- K-means and K-median performed similarly when clustering vertices from Laplacian eigenvectors.
- Spectral clustering with the unnormalized Laplacian generally recovered clusters worse than the other methods.
- When the true number of clusters was given, normalized spectral clustering beat walktrap.
- When that number was not given, walktrap using the Qw modularity index beat spectral clustering using the eigengap heuristic.

## Study details

- **Approach:** Quantitative
- **Participants:** Not reported
- **Design:** Computational · Experiment
- **Effect size:** Not reported
- **Significance:** Not reported

## Paper

**Title:** A comparison of spectral clustering and the walktrap algorithm for community detection in network psychometrics.

Spectral clustering is a well-known method for clustering the vertices of an undirected network. Although its use in network psychometrics has been limited, spectral clustering has a close relationship to the commonly used walktrap algorithm. In this article, we report results from simulation experiments designed to evaluate the ability of spectral clustering and the walktrap algorithm to recover underlying cluster (or community) structure in networks. The salient findings include: (a) the recovery performance of the walktrap algorithm can be improved by using K-means clustering instead of hierarchical clustering; (b) K-means and K-median clustering led to comparable recovery performance when used to cluster vertices based on the eigenvectors of Laplacian matrices in spectral clustering; (c) spectral clustering using the unnormalized Laplacian matrix generally yielded inferior cluster recovery in comparison to the other methods; (d) when the correct number of clusters was provided for the methods, spectral clustering using the normalized Laplacian matrix led to better recovery than the walktrap algorithm; and (e) when the correct number of clusters was not provided, the walktrap algorithm using the Qw modularity index was better than spectral clustering using the eigengap heuristic at determining the appropriate number of clusters. Overall, both the walktrap algorithm and spectral clustering of the normalized Laplacian matrix are effective for partitioning the vertices of undirected networks, with the latter performing better in most instances.

Permalink: https://instapsych.yetanotherchris.dev/#/p/normalized-spectral-clustering-beat-walktrap-on-most-community-recovery

