Gap statistics

Algorithm for cluster validity index, R. Tibshirani et al. 2001

You are now following this Submission

Gap statistic is a method used to estimate the most possible number of clusters in a partition clustering, e.g. k-means clustering (but consider more robust clustering). This measurement was originated by Trevor Hastie, Robert Tibshirani, and Guenther Walther, all from Standford University.

I posted here since I haven't found any Gapstatistics implementation to validate my code, therefore feel free to report bugs and improvements.

Cite As

Alessandro Crimi (2026). Gap statistics (https://www.mathworks.com/matlabcentral/fileexchange/37905-gap-statistics), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

bug fixed

1.2.0.0

better code and communication of some validation

1.1.0.0

bug fixed

1.0.0.0