Solution

ID: past-exam-of-the-mathematical-and-computational-biology-course-of-the-university-of-cambridge/2025/paper-1/7/a/solution

Write and suppose the cluster is nonempty. Expanding the Euclidean norm through its inner product gives
Sum over . The final term does not depend on , so its sum is , which proves the requested identity. This expansion is the starting point for the centroid sum-of-squares identity.

New to topics? Read the docs here!