K-means clustering can be viewed as an optimization problem that attempts to minimize some objective function. For the given objectives, determine the update rule for the centroid,ck​of thek-th clusterCk​. In other word, find the optimalck​that minimizes the objective function. The dataxcontainspfeatures. (a) Show that setting the objective to the sum of the squared Euclidean distances of points from the center of their clusters,k=1∑K​x∈Ck​∑​i=1∑p​(cki​−xi​)2results in an update rule where the optimal centroid is the mean of the points in the cluster. (b) Show that setting the objective to the sum of the Manhattan distances of points from the center of their clusters,k=1∑K​x∈Ck​∑​i=1∑p​∣cki​−xi​∣results in an update rule where the optimal centroid is the median of the points in the cluster.

Respuesta :