Jumat, 22 September 2023

Single Linkage Classification Hierarchy Using Euclidean Distance

The classification hierarchy will use euclidean distances.
The data we will use is as follows :


The initial stage is to calculate between X data and Y data.
At this stage, the method of calculation is different from the others.
The calculation stage is as follows :
  • D1,D1 means (X1-X1) + (Y1-Y1) (using euclidean distance)
  • D1,D2 means (X1-X2) + (Y1-Y2) (using euclidean distance)
  • D1,D3 means (X1-X3) + (Y1-Y3) (using euclidean distance)
  • D1,D4 means (X1-X4) + (Y1-Y4) (using euclidean distance)
  • D1,D5 means (X1-X5) + (Y1-Y5) (using euclidean distance)
  • D2,D2 means (X2-X2) + (Y2-Y2) (using euclidean distance)
  • D2,D3 means (X2-X3) + (Y2-Y3) (using euclidean distance)
  • D2,D4 means (X2-X4) + (Y2-Y4) (using euclidean distance)
  • D2,D5 means (X2-X5) + (Y2-Y5) (using euclidean distance)
  • D3,D3 means (X3-X3) + (Y3-Y3) (using euclidean distance)
  • D3,D4 means (X4-X4) + (Y4-Y4) (using euclidean distance)
  • D3,D5 means (X5-X5) + (Y5-Y5) (using euclidean distance)
  • D4,D4 means (X4-X4) + (Y4-Y4) (using euclidean distance)
  • D4,D5 means (X4-X5) + (Y4-Y5) (using euclidean distance)
  • D5,D5 means (X5-X5) + (Y5-Y5) (using euclidean distance)
Then the calculation is:
  • D1,D1


  • D1,D2


  • D1,D3


  • Perform calculations up to D5,D5

So the following results are obtained :


Next is to create a matrix diagram :


From the matrix above, we will choose the smallest result except 0 and it turns out that the smallest value is 1.414213562 which is owned by data 3 to 5 and 5 to 3.
We will combine the data so that it is formed as follows:
  • D(35)1
  • D(35)2
  • D(35)4

The results obtained are as follows :


After obtaining the data, the smallest value is chosen so that it forms the following matrix :


After that, the smallest data is selected from the data above, so that what is obtained is as follows:
  • D(352)1
  • D(352)4

The results obtained are as follows :


After obtaining the data, the smallest value is chosen so that it forms the following matrix :


After that, the smallest data is selected from the data above, so that what is obtained is as follows:
  • D(3521)4

The results obtained are as follows :


After obtaining the data, the smallest value is chosen so that it forms the following matrix :


From the results above, we can make a diagram, so the diagram that is formed is as follows :


Tidak ada komentar:

Posting Komentar