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.

  1. (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

  1. (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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!