In: Statistics and Probability
Question 1.
What is k-means clustering? How does it work? Give a few examples that you would use this algorithm.
----------------
Question 2.
What is k-nearest neighbor? How does it work? Give a few examples that you would use this algorithm.
SOLUTION1:
K Means Clustering
K means is an iterative clustering algorithm that aims to find local maxima in each iteration. This algorithm works in these 5 steps :
. Applications of Clustering
Clustering has a large no. of applications spread across various domains. Some of the most popular applications of clustering are:
Solution2:
KNN can be used for both classification and regression predictive problems. However, it is more widely used in classification problems in the industry. To evaluate any technique we generally look at 3 important aspects:
1. Ease to interpret output
2. Calculation time
3. Predictive Power
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
We were unable to transcribe this image
Applications of KNN Classifier Used in classification Used to get missing values . Used in pattern recognition Used in gene expression Used in protein-protein prediction Used to get 3D structure of protein . Used to measure document similarity