24. Given the set of cluster labels and similarity matrix shown in Tables 7.15 and 7.16, respectively, compute the correlation between the similarity matrix and the ideal similarity matrix, i.e., the matrix whose ijth entry is 1 if two objects belong to the same cluster, and 0 otherwise.
Table 7.15. Table of cluster labels for Exercise 24.
Point Cluster Label
P1 1
P2 1
P3 2
P4 2
Table 7.16. Similarity matrix for Exercise 24.
Point P1 P2 P3 P4
P1 1 0.8 0.65 0.55
P2 0.8 1 0.7 0.6
P3 0.65 0.7 1 0.9
P4 0.55 0.6 0.9 1