ALY3015 Assignment 4
For the dataset “mtcars” dataset within R,
i) Perform. PCA on the centered dataset without the “mpg” variable. Which variables would you exclude from the dataset prior to doing PCA? Plot the screeplot and the biplot of the PCA results. Describe the findings from both plots (15 points)
ii) What fraction of total variation is explained by the 1st PC? Which variables have top 3 positive and negative loadings on the 1st PC? Describe your findings. (10 points)
iii) Calculate correlation between “mpg” variable and all PC’s. State one conclusion from your findings from question ii and iii (5 points)
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。