What is clustering? What is the difference between kmeans clustering and hierarchical clustering?



What is clustering? What is the difference between kmeans clustering and hierarchical clustering?..

Answer / Santosh Kumar Tripathi

Clustering is a type of unsupervised machine learning that groups similar data points together based on their features. The goal is to discover hidden patterns or structure in the data. There are many clustering algorithms, but two common ones are k-means clustering and hierarchical clustering.n
1. K-means Clustering: K-means clustering is an iterative algorithm that partitions data points into K clusters based on their similarities. It works by initializing centroids (cluster means), assigning each data point to the closest centroid, recalculating centroids based on assigned data points, and repeating this process until convergence or a maximum number of iterations is reached.n
2. Hierarchical Clustering: Hierarchical clustering is a type of clustering that builds a hierarchy of clusters by merging or splitting clusters based on their similarities. There are two types: agglomerative (bottom-up) and divisive (top-down). Agglomerative hierarchical clustering starts with each data point in its own cluster, then iteratively merges the closest pairs of clusters until all data points are in a single cluster. Divisive hierarchical clustering, on the other hand, starts with all data points in a single cluster and iteratively splits the clusters based on their dissimilarities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Science Interview Questions

Can you explain k-mean?

1 Answers  


What is the goal of A/B Testing?

1 Answers  


Which plot will you use to access the uncertainty of a statistic?

1 Answers  


What packages are used for data mining in python and r?

1 Answers  


You are given a training dataset of users that contain their demographic details, the pages on Facebook they have liked so far and results of psychology test based on their personality i.e. their openness to like FB pages or not. How will you predict the age, gender and other demographics of unseen data?

1 Answers   American Express,


What is missing value imputation? How do you handle missing values in python or r?

1 Answers  


Explain data preparation?

1 Answers  


How will you prove that the square root of 2 is irrational?

1 Answers   Goldman Sachs,


How can outlier values be treated?

1 Answers  


What is f test?

1 Answers  


Define the unit test with PyUnit?

1 Answers  


Explain difference between binomial and Poisson distribution?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)