In \(k\)-means clustering, the number of desired clusters \(k\) is set in advance and algorithms then try to find \(k\) groups in the data. In the crisp version, each data point is assigned to its nearest cluster centre (hard membership). On the other hand, in fuzzy clustering (the corresponding algorithm is sometimes also called c-means clustering), the memberships are soft. Every data point belongs to some degree to every cluster centre. The membership is usually related to the distance between the data point and the cluster centre. Here, both methods, crisp and fuzzy clustering, are analysed on an artificially generated example data set.

The dataset contains two Gaussian blobs with relatively clear cluster regions in the beginning. The idea is now to add uniformly generated noise in the bottom right rectangle and see how both versions behave. In the beginning, both methods lead to the same result in terms of the point assignments. Note that for fuzzy clustering the points are assigned to the cluster with the highest membership. But with increasing noise, some differences between the two methods become noticeable. This can be seen in the following animation.

List of attached files:

- CrispFuzzyClustering.m (Matlab script used to create the visualization)

← Back to the overview page