How does NbClust work?

I know that the function determines the optimal number of clusters of dataset that i want to analyze.
And one day I used it, and it showed that only the minimum clusters are the best. I mean for example

nc = NbClust(df, min.nc=2, max.nc=4, method='kmeans') > cluster = 2
nc = NbClust(df, min.nc=2, max.nc=100, method='kmeans') > cluster = 2
nc = NbClust(df, min.nc=30, max.nc=100, method='kmeans') > cluster = 30

So, what i am wondering are

  1. which does basically determine the optimal number of cluster when I use NbClust?
  2. why such that things happen(coz I thought the number of optimal clusters would vary whenever I set the condition different)?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.