Estimating the number of clusters - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-23T02:46:55Z http://mathoverflow.net/feeds/question/1564 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters Estimating the number of clusters Kim Greene 2009-10-21T03:02:18Z 2009-10-21T11:40:54Z <p>For a collection of points in R^n, is there a statistic that I can compute which will estimate the number of clusters with some level of confidence?</p> http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters/1571#1571 Answer by Ville for Estimating the number of clusters Ville 2009-10-21T03:24:37Z 2009-10-21T03:24:37Z <p>This is an age old question. Which actually does (I think even cannot have) definite answer. Because, first you need to define what you mean by a cluster and so on. Famous saying in this regard is that "cluster is in the eye of a beholder", it is easy to construct examples where somebody could see one cluster but somebody else more than one. </p> <p>This being said, MDL (minimum description length) principle would lead you to device a (IMHO) a most principled way clustering cost function. Which by optimizing you could the find the cluster assignments and number of clusters simultaneously. For multinomial data you can see following: P.Kontkanen, P.Myllymäki, W.Buntine, J.Rissanen, H.Tirri, An MDL Framework for Data Clustering. In Advances in Minimum Description Length: Theory and Applications, edited by P. Grünwald, I.J. Myung and M. Pitt. The MIT Press, 2005.</p> <p>The intuitively appealing idea behind MDL clustering is that by clustering you create a model of the data. So assumption is that very good model is such which lets you compress the data well. </p> <p>Anyway MDL might not be easy to apply, if you are looking for a practical way to detect the number of clusters. BIC (Bayesian information criteria) and F-ratio have proven to work ok in practice. </p> <p>BIC formulation can be found in: <a href="http://staff.utia.cas.cz/nagy/skola/Projekty/Classification/Xmeans.pdf" rel="nofollow">http://staff.utia.cas.cz/nagy/skola/Projekty/Classification/Xmeans.pdf</a></p> http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters/1577#1577 Answer by Reid Barton for Estimating the number of clusters Reid Barton 2009-10-21T03:33:39Z 2009-10-21T03:33:39Z <p>I don't know if this is the most effective answer, but it has to be one of the coolest:</p> <p><a href="http://www.math.uiuc.edu/~ghrist/preprints/barcodes.pdf" rel="nofollow">Barcodes: the persistent topology of data</a></p> <p>It lets you estimate not only the number of connected components but also the higher Betti numbers. (For instance, if you take a random sample of enough points from an annulus, you will be able to measure both H<sub>0</sub> = Z and H<sub>1</sub> = Z.)</p> http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters/1619#1619 Answer by nicolaennio for Estimating the number of clusters nicolaennio 2009-10-21T10:07:00Z 2009-10-21T10:07:00Z <p>I think that for computing a level of confidence you need a model of clusters, for example a gaussian mixture model.</p> <p>If the level of confidence is not an issue and you need simply the "right" number of clusters I would repeat what Ville said plus the following article:</p> <p>Estimating the number of clusters in a dataset via the Gap statistic (2000) Tibshirani, Walther, Hastie <a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.34.6664" rel="nofollow">http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.34.6664</a></p> http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters/1631#1631 Answer by Rob J Hyndman for Estimating the number of clusters Rob J Hyndman 2009-10-21T11:22:42Z 2009-10-21T11:22:42Z <p>There is a whole research field on this, and the answers so far have only highlighted a few of the specific algorithms developed. Check out this <a href="http://en.wikipedia.org/wiki/Cluster%5Fanalysis" rel="nofollow">Wikipedia article</a> for an overview and some references.</p> http://mathoverflow.net/questions/1564/estimating-the-number-of-clusters/1632#1632 Answer by Josh Roberts for Estimating the number of clusters Josh Roberts 2009-10-21T11:40:54Z 2009-10-21T11:40:54Z <p>Carlsson has developed methods from applied topology to do clustering work. Robert Ghrist called a talk about this "Clusterfunctor" since it involves a functor from metric spaces to "persistent sets". It's talked about in <a href="http://comptop.stanford.edu/preprints/topologyAndData.pdf" rel="nofollow">Topology and Data</a>, a survey article about using topology to do data analysis.</p>