140 Chapter 8 Cluster Analysis: Basic Concepts and Algorithms
25. Compute the hierarchical F-measure for the eight objects {p1, p2, p3, p4, p5,
p6, p7, p8}and hierarchical clustering shown in Figure 8.8. Class A contains
points p1, p2, and p3, while p4, p5, p6, p7, and p8 belong to class B.
{p1, p2, p3, p4, p5, p6, p7, p8}
{p3, p6, p7, p8}
{p1, p2} {p4, p5} {p3, p6} {p7, p8}
{p1, p2, p4, p5,}
Figure 8.8. Hierarchical clustering for Exercise 25.
Let R(i, j)=nij /niindicate the recall of class iwith respect to cluster j.
R(B,1) = 5/5=1,P(A, 1) = 5/8=0.625,F(A, 1) = 0.77
For cluster #2= {p1,p2,p4,p5}
Class = A:
R(A, 2) = 2/3,P(A, 2) = 2/4,F(A, 2) = 0.57