11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

288 PRINCIPAL COMPONENT ANALYSISTo maximise a function of several variables subject <strong>to</strong> one or more constraints,the method of Lagrange multipliers is used. In this case this leads<strong>to</strong> the solution that a 1 is the eigenvec<strong>to</strong>r of the sample covariance matrix,S, corresponding <strong>to</strong> its largest eigenvalue – full details are given in Morrison(2005).The other components are derived in similar fashion, with a j being theeigenvec<strong>to</strong>r of S associated with its jth largest eigenvalue. If the eigenvaluesof S are λ 1 , λ 2 , ...,λ q , then since a ⊤ j a j = 1, the variance of the jth componentis given by λ j .The <strong>to</strong>tal variance of the q principal components will equal the <strong>to</strong>tal varianceof the original variables so thatq∑λ j = s 2 1 + s 2 2 + · · · + s 2 qj=1where s 2 j is the sample variance of x j. We can write this more concisely asq∑λ j = trace(S).j=1Consequently, the jth principal component accounts for a proportion P j ofthe <strong>to</strong>tal variation of the original data, whereP j =λ jtrace(S) .The first m principal components, where m < q, account for a proportionm∑λ jj=1P (m) =trace(S) .When the variables are on very different scales principal component analysis isusally carried out on the correlation matrix rather than the covariance matrix.16.3 Analysis Using RTo begin it will help <strong>to</strong> score all seven events in the same direction, so that‘large’ values are ‘good’. We will recode the running events <strong>to</strong> achieve this;R> data("heptathlon", package = "HSAUR2")R> heptathlon$hurdles heptathlon$run200m heptathlon$run800m

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!