

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Stat 5600, Homework 3, due Monday Feb 9
1. Lichen Data. Consider the lichen data from Homework 1. In fact, the variables tmin1 and tmax are daily minimum and maximum temperatures, averaged over all days in January. Similarly, tmin2 and tmax2 are for February, etc. a) Use the commands lichens=read.csv("../data/laq3.csv") tmins=paste("tmin",1:12,sep="") tmaxs=paste("tmax",1:12,sep="") lichenmin = lichens[,tmins] lichenmax = lichens[,tmaxs] lichentemp = lichens[,c(tmins,tmaxs)] to create 3 new datasets. b) Explain why it is NOT necessary to standardize these data before performing PCA. c) For the lichenmin data, perform PCA and interpret the first two principal components. d) For the lichenmax data, perform PCA and interpret the first two principal components. e) For the lichentemp data, perform PCA and interpret the first three principal components. 2. Cognition Data. Consider the cognition data from the text, available from www.math.usu.edu/~adele/s5600/data/COGNITION.txt You can read in the data and remove observations with missing values using:
cog=read.table("cognition.txt",na.strings=".") cog2=na.omit(cog) a) Perform PCA with scale=T and verify the results of Table 4.3 in the text. b) Compare the results for scale=T and scale=F. How would you decide which one to use? c) Using your analysis from part a), what percentage of the variance in the data is “accounted for” by the first principal component? Does this single component do an adequate job of summarizing the data? Why/why not? d) An alternative to PCA would be to simply average the items, after reversing the sign of the “reverse- coded” items. Explain why PCA is preferred to this averaging procedure. (Hint: consider what would happen if one of the questions was badly-phrased). e) Examine the scatterplot of the first two principal components of the cognition data. Is there any interesting structure? Are there obvious outliers?