Question Bank- Clustering

1) The following are the marks obtained by students : {10,4,2,12,,3,20,30,11,25,31} Cluster the students into  3 partitions/clusters.

    2) The iris dataset contains information about Iris setosa and versicolor. What is the Euclidean distance between these two objects?                                                                         

    SpeciesSepal lengthSepal widthPetal lengthPetal width
    Iris setosa4.93.01.40.2
    Iris versicolor5.62.53.91.1

    3) The company has collected spending data from a group of customers during a specific month. The spending data includes the following values: {2,4,10,12,3,20,11,25}. The task is to apply the K-means clustering algorithm to divide these customers into two distinct clusters based on their spending patterns

    4) A country is doing an analysis and has found out following values between the cities. Use agglomerative algorithm using the following data and plot a dendogram using single link approach. The following table contains sample data items indicating the distance between the elements.

    ItemEACBD
    E01223
    A10253
    C22016
    B25103
    D33630

    5) The  objects have coordinates as X(3,4) and Y(4,7). Calculate the Manhattan distance between these objects.

    6) Consider 4 objects with two attributes (X and Y). Apply K-means clustering algorithm to form 2 clusters.

    ObjectXY
    A11
    B21
    C43
    D54