Exercise 11.10 - Deriving the K-means cost function

Answers

For every term for a given k , note that:

i : z i = k i : z i = k ( x i x i ) 2 = i i [ ( x i x ¯ ) ( x i x ¯ ) ] 2 = i i ( x i x ¯ ) 2 + ( x i x ¯ ) 2 2 ( x i x ¯ ) ( x i x ¯ ) = 2 n k i ( x i x ¯ ) 2 2 [ i ( x i x ¯ ) ] [ i ( x i x ¯ ) ] = 2 n k i ( x i x ¯ ) 2 .

This finishes the proof. One can also adopt (11.132)-(11.135) for the desired result.

User profile picture
2021-03-24 13:42
Comments