Estimating the Number of Clusters in a Data Set Via the Gap Statistic
Abstract
Summary: We propose a method (the ‘gap statistic’) for estimating the number of clusters (groups) in a set of data. The technique uses the output of any clustering algorithm (e.g. K-means or hierarchical), comparing the change in within-cluster dispersion with that expected under an appropriate reference null distribution. Some theory is developed for the proposal and a simulation study shows that the gap statistic usually outperforms other methods that have been proposed in the literature.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cell cycle often has an enormous impact on cellular gene expression, and this impact can extend to other processes and be affected by them.
“The cell cycle often has an enormous impact on cellular gene expression146,149,150 (although some87 have challenged this view), but this impact can extend to other processes, and in turn be affected by them.”
From Revealing the vectors of cellular identity with single-cell genomics (2016) · cites this paper as [150]
Cited by
Sorted by citations
<b>NbClust</b> : An <i>R</i> Package for Determining the Relevant Number of Clusters in a Data Set
Charrad, M., Ghazzali, N., Boiteau, V., & Niknafs, A. (2014) · Journal of Statistical Software · doi:10.18637/jss.v061.i06 · Cited by 3,396 · see citing works
Feature Selection: A Data Perspective
Li, J., Cheng, K., Wang, S., Morstatter, F., Trevino, R. P., Tang, J., & Liu, H. (2018) · ACM Computing Surveys · doi:10.1145/3136625 · Cited by 2,442 · see citing works
Monti, S., Tamayo, P., Mesirov, J., & Golub, T. (2003) · Machine Learning · doi:10.1023/a:1023949509487 · Cited by 2,116 · see citing works
Single-cell messenger RNA sequencing reveals rare intestinal cell types
Grün, D., Lyubimova, A., Kester, L., Wiebrands, K., Basak, O., Sasaki, N., Clevers, H., & van Oudenaarden, A. (2015) · Nature · doi:10.1038/nature14966 · Cited by 1,234 · see citing works
Viventi, J., Kim, D.-H., Vigeland, L., Frechette, E. S., Blanco, J. A., Kim, Y.-S., Avrin, A. E., Tiruvadi, V. R., Hwang, S.-W., Vanleer, A. C., et al. (2011) · Nature Neuroscience · doi:10.1038/nn.2973 · Cited by 1,136 · see citing works
Temporal and spatial variation of the human microbiota during pregnancy
DiGiulio, D. B., Callahan, B. J., McMurdie, P. J., Costello, E. K., Lyell, D. J., Robaczewska, A., Sun, C. L., Goltsman, D. S. A., Wong, R. J., Shaw, G., et al. (2015) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1502875112 · Cited by 1,129 · see citing works
De Sousa E Melo, F., Wang, X., Jansen, M., Fessler, E., Trinh, A., de Rooij, L. P. M. H., de Jong, J. H., de Boer, O. J., van Leersum, R., Bijlsma, M. F., et al. (2013) · Nature Medicine · doi:10.1038/nm.3174 · Cited by 771 · see citing works
Identification of Distinct Psychosis Biotypes Using Brain-Based Biomarkers
Clementz, B. A., Sweeney, J. A., Hamm, J. P., Ivleva, E. I., Ethridge, L. E., Pearlson, G. D., Keshavan, M. S., & Tamminga, C. A. (2016) · American Journal of Psychiatry · doi:10.1176/appi.ajp.2015.14091200 · Cited by 768 · see citing works
Revealing the vectors of cellular identity with single-cell genomics
Wagner, A., Regev, A., & Yosef, N. (2016) · Nature Biotechnology · doi:10.1038/nbt.3711 · Cited by 632 · see citing works
A framework for feature selection in clustering
Witten, D. M., & Tibshirani, R. (2010) · Journal of the American Statistical Association · doi:10.1198/jasa.2010.tm09415 · Cited by 696 · see citing works
Self-citationDe Novo Prediction of Stem Cell Identity using Single-Cell Transcriptome Data
Grün, D., Muraro, M. J., Boisset, J.-C., Wiebrands, K., Lyubimova, A., Dharmadhikari, G., van den Born, M., van Es, J., Jansen, E., Clevers, H., et al. (2016) · Cell Stem Cell · doi:10.1016/j.stem.2016.05.010 · Cited by 586 · see citing works
Antonopoulos, I., Robu, V., Couraud, B., Kirli, D., Norbu, S., Kiprakis, A., Flynn, D., Elizondo-Gonzalez, S., & Wattam, S. (2020) · Renewable and Sustainable Energy Reviews · doi:10.1016/j.rser.2020.109899 · Cited by 656 · see citing works
Distinct behavioural and network correlates of two interneuron types in prefrontal cortex
Kvitsiani, D., Ranade, S., Hangya, B., Taniguchi, H., Huang, J. Z., & Kepecs, A. (2013) · Nature · doi:10.1038/nature12176 · Cited by 516 · see citing works
The idiosyncratic brain: distortion of spontaneous connectivity patterns in autism spectrum disorder
Hahamy, A., Behrmann, M., & Malach, R. (2015) · Nature Neuroscience · doi:10.1038/nn.3919 · Cited by 416 · see citing works
Bifurcation analysis of single-cell gene expression data reveals epigenetic landscape
Marco, E., Karp, R. L., Guo, G., Robson, P., Hart, A. H., Trippa, L., & Yuan, G.-C. (2014) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1408993111 · Cited by 268 · see citing works
Zhang, Y., Wu, W., Toll, R. T., Naparstek, S., Maron-Katz, A., Watts, M., Gordon, J., Jeong, J., Astolfi, L., Shpigel, E., et al. (2020) · Nature Biomedical Engineering · doi:10.1038/s41551-020-00614-8 · Cited by 241 · see citing works
A survey of Clustering Algorithms
Rokach, L. (2009) · Data Mining and Knowledge Discovery Handbook · doi:10.1007/978-0-387-09823-4_14 · Cited by 245 · see citing works
Beijers, L., Wardenaar, K. J., van Loo, H. M., & Schoevers, R. A. (2019) · Molecular Psychiatry · doi:10.1038/s41380-019-0385-5 · Cited by 240 · see citing works
In vivo CRISPR screens reveal the landscape of immune evasion pathways across cancer
Dubrot, J., Du, P. P., Lane-Reticker, S. K., Kessler, E. A., Muscato, A. J., Mehta, A., Freeman, S. S., Allen, P. M., Olander, K. E., Ockerman, K. M., et al. (2022) · Nature Immunology · doi:10.1038/s41590-022-01315-x · Cited by 218 · see citing works
Normalizing and denoising protein expression data from droplet-based single cell profiling
Mulè, M. P., Martins, A. J., & Tsang, J. S. (2022) · Nature Communications · doi:10.1038/s41467-022-29356-8 · Cited by 197 · see citing works
Fourati, S., Cristescu, R., Loboda, A., Talla, A., Filali, A., Railkar, R., Schaeffer, A. K., Favre, D., Gagnon, D., Peretz, Y., et al. (2016) · Nature Communications · doi:10.1038/ncomms10369 · Cited by 183 · see citing works
Gaussian mixture clustering and imputation of microarray data
Ouyang, M., Welsh, W. J., & Georgopoulos, P. (2004) · Bioinformatics · doi:10.1093/bioinformatics/bth007 · Cited by 202 · see citing works
“There are several statistics that estimate the number of clusters, such as the statistic B (Fowlkes and Mallows, 1983), the silhouette statistic (Kaufman and Rousseeuw, 1990), the gap statistic (Tibshirani et al., 2001).”
Samara, J., Moossavi, S., Alshaikh, B., Ortega, V. A., Pettersen, V. K., Ferdous, T., Hoops, S. L., Soraisham, A., Vayalumkal, J., Dersch-Mills, D., et al. (2022) · Cell Host & Microbe · doi:10.1016/j.chom.2022.04.005 · Cited by 191 · see citing works
SLICE: determining cell differentiation and lineage based on single cell entropy
Guo, M., Bao, E. L., Wagner, M., Whitsett, J. A., & Xu, Y. (2016) · Nucleic Acids Research · doi:10.1093/nar/gkw1278 · Cited by 178 · see citing works
Functional segregation of the human dorsomedial prefrontal cortex
Eickhoff, S. B., Laird, A. R., Fox, P. T., Bzdok, D., & Hensel, L. (2016) · Cerebral Cortex · doi:10.1093/cercor/bhu250 · Cited by 159 · see citing works
Muzny, C. A., Blanchard, E., Taylor, C. M., Aaron, K. J., Talluri, R., Griswold, M. E., Redden, D. T., Luo, M., Welsh, D. A., Van Der Pol, W. J., et al. (2018) · The Journal of Infectious Diseases · doi:10.1093/infdis/jiy243 · Cited by 145 · see citing works
Kim, S., Herazo-Maya, J. D., Kang, D. D., Juan-Guardela, B. M., Tedrow, J., Martinez, F. J., Sciurba, F. C., Tseng, G. C., & Kaminski, N. (2015) · BMC Genomics · doi:10.1186/s12864-015-2170-4 · Cited by 123 · see citing works
The circular RNome of primary breast cancer
Smid, M., Wilting, S. M., Uhr, K., Rodríguez-González, F. G., de Weerd, V., Prager-Van der Smissen, W. J. C., van der Vlugt-Daane, M., van Galen, A., Nik-Zainal, S., Butler, A., et al. (2019) · Genome Research · doi:10.1101/gr.238121.118 · Cited by 105 · see citing works
PCA-based population structure inference with generic clustering algorithms
Lee, C., Abdool, A., & Huang, C.-H. (2009) · BMC Bioinformatics · doi:10.1186/1471-2105-10-s1-s73 · Cited by 97 · see citing works
Mooneyham, B. W., Mrazek, M. D., Mrazek, A. J., Mrazek, K. L., Phillips, D. T., & Schooler, J. W. (2017) · Journal of Cognitive Neuroscience · doi:10.1162/jocn_a_01066 · Cited by 86 · see citing works
The Behavioral Space of Zebrafish Locomotion and Its Neural Network Analog
Girdhar, K., Gruebele, M., & Chemla, Y. R. (2015) · PLoS ONE · doi:10.1371/journal.pone.0128668 · Cited by 60 · see citing works
Structured sampling of olfactory input by the fly mushroom body
Zheng, Z., Li, F., Fisher, C., Ali, I. J., Sharifi, N., Calle-Schuler, S., Hsu, J., Masoodpanah, N., Kmecova, L., Kazimiers, T., et al. (2022) · Current Biology · doi:10.1016/j.cub.2022.06.031 · Cited by 75 · see citing works
ClockstaR: choosing the number of relaxed-clock models in molecular phylogenetic analysis
Duchêne, S., Molak, M., & Ho, S. Y. W. (2014) · Bioinformatics · doi:10.1093/bioinformatics/btt665 · Cited by 61 · see citing works
A statistical method for build orientation determination in additive manufacturing
Zhang, Y., Harik, R., Fadel, G., & Bernard, A. (2019) · Rapid Prototyping Journal · doi:10.1108/rpj-04-2018-0102 · Cited by 63 · see citing works
Predicting the moral consideration of artificial intelligences
Pauketat, J. V. T., & Anthis, J. R. (2022) · Computers in Human Behavior · doi:10.1016/j.chb.2022.107372 · Cited by 60 · see citing works
Roehlen, N., Saviano, A., El Saghire, H., Crouchet, E., Nehme, Z., Del Zompo, F., Jühling, F., Oudot, M. A., Durand, S. C., Duong, F. H. T., et al. (2022) · Science Translational Medicine · doi:10.1126/scitranslmed.abj4221 · Cited by 54 · see citing works
The complex syndrome of functional neurological disorder
Forejtová, Z., Serranová, T., Sieger, T., Slovák, M., Nováková, L., Věchetová, G., Růžička, E., & Edwards, M. J. (2023) · Psychological Medicine · doi:10.1017/s0033291721005225 · Cited by 44 · see citing works
Zhu, X., Tian, X., Ji, L., Zhang, X., Cao, Y., Shen, C., Hu, Y., Wong, J. W. H., Fang, J.-Y., Hong, J., et al. (2021) · npj Precision Oncology · doi:10.1038/s41698-021-00142-x · Cited by 41 · see citing works
Khayatian, F., Sarto, L., & Dall'O', G. (2017) · Applied Energy · doi:10.1016/j.apenergy.2017.08.237 · Cited by 40 · see citing works
SimplePPT: A Simple Principal Tree Algorithm
Mao, Q., Yang, L., Wang, L., Goodison, S., & Sun, Y. (2015) · Proceedings of the 2015 SIAM International Conference on Data Mining · doi:10.1137/1.9781611974010.89 · Cited by 33 · see citing works
Weak signals in the mobility landscape: car sharing in ten European cities
Boldrini, C., Bruno, R., & Laarabi, M. H. (2019) · EPJ Data Science · doi:10.1140/epjds/s13688-019-0186-8 · Cited by 32 · see citing works
Chien, Y.-L., Lin, H.-Y., Tung, Y.-H., Hwang, T.-J., Chen, C.-L., Wu, C.-S., Shang, C.-Y., Hwu, H.-G., Tseng, W.-Y. I., Liu, C.-M., et al. (2022) · Molecular Psychiatry · doi:10.1038/s41380-022-01636-1 · Cited by 24 · see citing works
Shen, J., Yang, M., Zou, B., Wan, N., & Liao, Y. (2012) · Complexity · doi:10.1002/cplx.21390 · Cited by 7 · see citing works
Hall, J. M., Xu, J., Walsh, M. G., Cho, H.-D., Harrell, G., Keshwani, S. A., Smith, S. M., & Staras, S. A. S. (2025) · PLOS One · doi:10.1371/journal.pone.0326776 · Cited by 4 · see citing works
Advancing Near-Real-Time Quality Controls of Meteorological Observations
Toreti, A., Bratu, M., Müller, E., van der Grijn, G., Oliveira, I., Zampieri, M., & Ceglar, A. (2022) · Bulletin of the American Meteorological Society · doi:10.1175/bams-d-21-0171.1 · Cited by 3 · see citing works
- Authors
- Tibshirani, R., Walther, G., & Hastie, T.
- Affiliations
- Stanford University (US)
- Corresponding author
- Tibshirani, Robert
- Venue
- Journal of the Royal Statistical Society Series B: Statistical Methodology
- Publisher
- Oxford University Press (OUP)
- Published
- 2001-07-01
- Volume
- 63
- Issue
- 2
- Pages
- 411-423
- ISSN
- 1369-7412 (ISSN-L)
- 1467-9868
- OpenAlex
- W101836494
- Cited by
- 6,205
- References
- 0
- Citations by year
- 2026: 372 · 2025: 399 · 2024: 460 · 2023: 456 · 2022: 451 · 2021: 542 · 2020: 493 · 2019: 419 · 2018: 398 · 2017: 329 · 2016: 279 · 2015: 215 · 2014: 230 · 2013: 175 · 2012: 177
- FWCI
- 39.46
- Type
- journal article
- Language
- en
- Open access
- closed
- Licence
- academic.oup.com/journals/pages/open_access/funder_policies/chorus/standard_publication_model (vor)
- Locations
- Journal of the Royal Statistical Society Series B (Statistical Methodology) (publishedVersion)
- RePEc: Research Papers in Economics (submittedVersion)
- Funders
- National Science Foundation (9971405, 9803645)
- National Institutes of Health
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Advanced Clustering Algorithms Research
- Physical Sciences › Computer Science › Artificial Intelligence › Bayesian Methods and Mixture Models
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Inference
- Keywords
- gap statistic, number of clusters, cluster detection, K-means clustering, hierarchical clustering, model selection
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review