1.For the following confusion matrix
Cluster Red Blue Green Black White Yellow Total
#1 1 1 0 11 4 676 693
#2 27 89 333 827 253 33 1562
#3 326 465 8 105 16 29 949
Total 354 555 341 943 273 738 3204
a)Compute the entropy and purity of each cluster and the overall clustering. Purity must be computed as counting the number of the class which is the most frequent in the cluster dividing by the total number.
b)Compute the precision of the class "Yellow" with respect to each cluster and overall clustering.
c)Compute the recall of the class "Red" with respect to each cluster and overall clustering.