What is the primary purpose of the 'gap statistic' method in clustering?
-
A
To measure the gap between cluster centroids
-
B
To compare within-cluster dispersion to a null reference distribution to find optimal k
-
C
To fill missing values before clustering
-
D
To detect outliers that fall between clusters