I am little confused by the k-means loss functions. What I ususally find is the loss function:
with r_{nk} being an indikator if observation x_i belongs to cluster k and \mu_k being the cluster center. However in the book by Hastie, Tibshirani and Friedman, I find:
such that clusters with more observations react more sensitive to deviations from the cluster center as n_k stands for the number of observaions in cluster k. Does anyone know which is right? If you have the book "The elements of statistical learning", the derivation is on page 508 - 510.
Cheers

