Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use R Markdown to produce your solution to the hw and provide a pdf version of it. Perform a PCA of the Iris data set

Use R Markdown to produce your solution to the hw and provide a pdf version of it.

Perform a PCA of the Iris data set and answer the following questions: a. Give a summary of the PCA results in R b. Looking at the loadings of the second PC could we interpret it as Dimension of the Sepal? Explain why or why not. c. Use the biplot to visualize the first two PC loading vectors and scores. Use colors to separate the three species on the graph. Try to describe the main features of the graph, for example, based on the graph how would you say the Setosa is different from the other two species? How could the virginica and the Versicolor be possibly distinguished? (Hint: to reproduce the colors it would be better to define a data set with the factor scores and the Species and use ggplot, to add the loadings vector is necessary to create a different data set and add a layer to the scatterplot of the scores) d. What is the PVE of the first two components? Produce the scree plots for your analysis

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

Algebra 1

Authors: Mary P. Dolciani, Richard A. Swanson

(McDougal Littell High School Math)

9780395535899, 0395535891

More Books

Students also viewed these Mathematics questions

Question

Trace the good-dog problem of Example

Answered: 1 week ago