Homepage › Solution manuals › Yaser Abu-Mostafa › Learning from Data › Exercise 6.13
Exercise 6.13
Answers
- (a)
- .
If we fix the clusters to ,
take derivatives of
w.r.t. ,
we have
Let it equal to 0, we have are the centroids of the clusters and minimize .
- (b)
- If we fix the centers to .
Then the clusters which minimize
are obtained
by placing into
all points for which the closest center is
,
breaking ties arbitrarily.
Suppose this is not true, there must exist a point that doesn’t belong to the cluster which has the closest center to it. Let’s call the point , and its closest center , such that for . Under our assumption, .
There must exist another cluster, e.g. , such that , and .
We can compare components in , where
and
It’s clear that doesn’t achieve its minimum value under the assumption. Because if we just put into , we replace with , which is clearly less than the former. So we reduce the sum of and thus .
We conclude that for all points,we should put them into the cluster that has the closest center.