Question
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
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