Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started