Answered step by step
Verified Expert Solution
Link Copied!

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.

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions

Question

Express 2 7j in polar form.

Answered: 1 week ago

Question

6. Conclude with the same strength as in the introduction

Answered: 1 week ago

Question

7. Prepare an effective outline

Answered: 1 week ago