Clustering with Confidence: Finding Clusters with Statistical Guarantees

Andreas Henelius, Kai Puolamäki, Henrik Boström, Panagiotis PapapetrouarXiv 2016

Abstract

Clustering is a fundamental tool in unsupervised learning, yet its results are often sensitive to stochastic initialization and data sampling variations. We present a framework for identifying "core clusters"—subsets of data points that co-occur within the same group with a statistical confidence of at least $1-\alpha$. By combining bootstrapping with graph-theoretic clique finding, our method distinguishes stable cluster centers from ambiguous "weak points" on the boundaries. Experimental results across synthetic and real-world datasets demonstrate that core clusters significantly improve cluster purity and provide a robust diagnostic for selecting the optimal number of clusters.

Introduction

Most traditional clustering algorithms, such as k-means, are "hard" partitioners that assign every data point to exactly one group. This approach often masks the inherent instability of clustering results. Instability typically arises from two sources: systematic error, such as the random initialization of algorithms, and random error, stemming from variations in the specific data sample. Consequently, points located on the boundaries between natural groupings may flip-flop between clusters across different runs. This paper introduces a method to quantify this instability and extract only the most robust subsets of data, termed "core clusters."

The Core Clustering Framework

The proposed methodology follows a three-step pipeline to ensure statistical guarantees:

  1. Bootstrapping: The algorithm generates a large number of bootstrap samples (e.g., 1,000) from the original dataset. For each sample, a base clustering algorithm (such as k-means++ or hierarchical clustering) is executed.
  2. Co-occurrence Probability: For every pair of points $x$ and $y$, the framework calculates the frequency with which they are assigned to the same cluster across all bootstrap runs. This frequency serves as an empirical estimate of their co-occurrence probability.
  3. Clique Finding: A graph is constructed where nodes represent data points. An edge is drawn between two nodes only if their co-occurrence probability meets or exceeds a user-defined threshold $1-\alpha$. A "core cluster" is then defined as the largest maximal clique in this graph—a subset where every pair of points meets the confidence requirement.

While finding the maximum clique is an NP-hard problem, the authors find it computationally feasible in this context because the search is restricted to the vicinity of initial cluster assignments.

Experimental Results and Visual Analysis

The method was evaluated on synthetic Gaussian mixtures and various UCI benchmarks (Iris, Wine, Breast Cancer Wisconsin). A key finding is that core clusters consistently exhibit higher purity than standard clusters. For instance, in synthetic tests using hierarchical clustering, purity improved from 0.71 to 1.00 after excluding unstable points.

Visualization of core clusters (colored shapes) and weak points (white shapes) using PCA.

As shown in the visualization above, core clusters tend to shrink toward the dense centers of the underlying data distributions. The points excluded from these cores, labeled "weak points," are often "bridge points" located in the ambiguous regions between clusters. The volume of these weak points can serve as a diagnostic metric; a high percentage of weak points for a given $k$ suggests that the chosen number of clusters may not align well with the data's natural structure.

Discussion

A significant advantage of this framework is its model-agnostic nature. It can be applied to any clustering algorithm or even supervised classifiers (treating labels as assignments). However, challenges remain regarding computational scaling for extremely large datasets and the subjectivity of choosing the confidence threshold $\alpha$. Future work may focus on parallelizing the clique-finding process to handle larger-scale data more efficiently.

Conclusion

By shifting the focus from exhaustive partitioning to identifying stable cores, this method provides a mathematically grounded approach to clustering. It offers practitioners a way to report results with quantifiable confidence, ensuring that the discovered patterns are not merely artifacts of noise or initialization.

Summary updated

BibTeX
@misc{henelius2016clustering,
  author = {Andreas Henelius and Kai Puolamäki and Henrik Boström and Panagiotis Papapetrou},
  title = {{Clustering with Confidence: Finding Clusters with Statistical Guarantees}},
  year = {2016},
  eprint = {1612.08714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.08714},
}
Figure