Question: You are asked to write a Python program to calculate the Elbow value and the Silhouette value. For this question, you will use the CARS.CSV
You are asked to write a Python program to calculate the Elbow value and the Silhouette value. For this question, you will use the CARS.CSV dataset to test your program. Here are the specifications for performing the respective analyses.
Clustering
- The input interval variables are Horsepower and Weight
- The distance metric is Euclidean
- The maximum number of clusters is 15
- Consider the silhouette_score function for calculating the Silhouette value
- Specify random_state = 60616 in calling the KMeans function
Please answer the following questions.
- (15 points) List the Elbow values and the Silhouette values for your 1-cluster to 15-cluster solutions.
Elbow values : 1-Cluster
Silhouette values: 15-Cluster
- (5 points) Based on the Elbow values and the Silhouette values, what do you suggest for the number of clusters?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
