Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use R to answer the question. Thank you! 3.5 1.4 ## ## 1 ## 2 ## 3 ## 4 ## 5 ## 6 Sepal.Length

image text in transcribedPlease use R to answer the question. Thank you!

3.5 1.4 ## ## 1 ## 2 ## 3 ## 4 ## 5 ## 6 Sepal.Length Sepal.Width Petal.Length Petal.Width Species 5.1 0.2 setosa 4.9 3.0 1.4 0.2 setosa 4.7 3.2 1.3 0.2 setosa 3.1 1.5 0.2 setosa 5.0 3.6 1.4 0.2 setosa 5.4 3.9 1.7 0.4 setosa 4.6 As a data scientist, you are interested in the minimal number of features among Sepal.Length, Sepal.Width, Petal.Length and Petal.Width that are able to partition the observations into 3 clusters since there are only subspecies setosa, versicolor and virginica in the data set. For example, it may be true that Petal.Length and Petal.Width do just as well as all of Sepal.Length, Sepal.Width, Petal.Length and Petal.Width for this task since Sepal.Length, Sepal.Width, Petal.Length and Petal.Width may be highly correlated and using 4 highly correlated features does not sufficiently improve the classification performance than using just the highly uncorrelated ones. You need to do the following: Q1. Study the pairwise correlations for the 4 features Sepal.Length, Sepal.Width, Petal.Length and Petal.Width, pick two features that are the least correlated, apply K-means with K = 3 to these features, and report how many obervations are correctly classified into a cluster, i.e., as being the same sub-species. Based on the selected features, what is the estimated number of clusters given by the gap statistic via the command clusGap? 3.5 1.4 ## ## 1 ## 2 ## 3 ## 4 ## 5 ## 6 Sepal.Length Sepal.Width Petal.Length Petal.Width Species 5.1 0.2 setosa 4.9 3.0 1.4 0.2 setosa 4.7 3.2 1.3 0.2 setosa 3.1 1.5 0.2 setosa 5.0 3.6 1.4 0.2 setosa 5.4 3.9 1.7 0.4 setosa 4.6 As a data scientist, you are interested in the minimal number of features among Sepal.Length, Sepal.Width, Petal.Length and Petal.Width that are able to partition the observations into 3 clusters since there are only subspecies setosa, versicolor and virginica in the data set. For example, it may be true that Petal.Length and Petal.Width do just as well as all of Sepal.Length, Sepal.Width, Petal.Length and Petal.Width for this task since Sepal.Length, Sepal.Width, Petal.Length and Petal.Width may be highly correlated and using 4 highly correlated features does not sufficiently improve the classification performance than using just the highly uncorrelated ones. You need to do the following: Q1. Study the pairwise correlations for the 4 features Sepal.Length, Sepal.Width, Petal.Length and Petal.Width, pick two features that are the least correlated, apply K-means with K = 3 to these features, and report how many obervations are correctly classified into a cluster, i.e., as being the same sub-species. Based on the selected features, what is the estimated number of clusters given by the gap statistic via the command clusGap

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

Excel 2024 In 7 Days

Authors: Alan Dinkins

1st Edition

B0CJ3X98XK, 979-8861224000

More Books

Students also viewed these Databases questions

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago