Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The file is present on this link: https://drive.google.com/file/d/1tmNuq5_P9bUVc5iVks8O964Dcb4XofPo/view?usp=sharing If anyone could help solve this problem on Python. Exercise 2 We shall work on a dataset
The file is present on this link: https://drive.google.com/file/d/1tmNuq5_P9bUVc5iVks8O964Dcb4XofPo/view?usp=sharing
If anyone could help solve this problem on Python.
Exercise 2 We shall work on a dataset of applicants for a credit. The dataset can be downloaded on the website of the course 1. Import the dataset clustering.csv into a dataframe df 2. We will use only two features ['ApplicantIncome', 'LoanAmount'] so that we can visualize the clusters on a 2D plane. Extract only these two features df_short=df [ ['ApplicantIncome', 'LoanAmount'] ] 3. Use K-means to perform clustering on these new data with K=2,3 clusters 4. (a) Include the additional feature Coapplicant Income df long=df [ ['CoapplicantIncome', 'ApplicantIncome', 'LoanAmount'] ] (b) Perform a PCA and thereafter perform clustering with K=2,3 clusters. What is your conclusionStep 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