Question 3
In a soft K-means clustering process, a dataset is clustered into two groups. A data point has distances and from the two cluster centroids. Using the soft K-means formula with , compute the probabilities of the data point belonging to each cluster.
After assigning probabilities, update the centroid given that the current centroid is and this data point's value is . Assume no other points are assigned to cluster 1. Use the centroid update formula:
where is computed using the softmax-like probability formula: