How to calculate within group sum of squares for kmeans ?
Show older comments
I have data set with 318 data points and 11 attributes. So my matrix is 318*11. I am trying to find the best number of cluster required for my data set. I have started from thumb rule which gives me around sqrt(312/2)~ 12. So i started from 12.I am using default kmeans function of matlab.For example my data is stored in X which 318*11 matrix. Now I run kmeans like this .
kmeans(X,12)
How to calculate sum of square to find optimum number of cluster for my data set like this ?

Accepted Answer
More Answers (0)
Categories
Find more on k-Means and k-Medoids Clustering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!