Consider the four 2D data points: , , , . We first compute the sample covariance matrix (using divisor , not ), find its first principal component, and project all four points onto this direction. We then run optimal 2-means clustering on the resulting one-dimensional projected data. What is the total within-cluster sum of squares of this optimal 2-means clustering?
B
Step-by-Step Solution
Key idea: this is a PCA-then-K-means pipeline question. The projection direction is the eigenvector of the covariance matrix corresponding to its largest eigenvalue; the within-cluster sum of squares is computed on the projected scalars, not the original 2D points.
Step 1: The data is already centered (mean is ). Compute :
The covariance matrix is .
Step 2: Eigenvalues of satisfy , so , giving and . The eigenvector for satisfies , i.e. . Normalized: .
Step 3: Project each point onto :
Step 4: Run 2-means on . The optimal partition is and , with means and .
Step 5: Compute WCSS:
Answer: 1.00