Exercise 4.7.3

Answers

cP = (1 + 2)2 = 1.5, cQ = (3 + 4)2 = 3.5. So we have

DP = (1 cP)2 + (2 cP)2 = 0.25 + 0.25 = 0.5 and DQ = (3 cQ)2 + (4 cQ)2 = 0.5, so D = DP + DQ = 1.

The k-means algorithm will still assign 1,2 to P and 3,4 to Q in the next step.

User profile picture
2020-03-20 00:00
Comments