Is Calculating Variance Reduction in PCA Accurate?

AI Thread Summary
Calculating variance reduction in PCA using the correlation matrix is valid, but results differ from using the covariance matrix, which should be considered when interpreting outcomes. The proportion of variance thrown away when using the first two principal components is approximately 13%, based on the provided eigenvalues. Equal eigenvalues for the 4th and 5th components indicate high correlation, but this can occur by chance and does not imply they are identical unless their loadings are the same. Component correlations for PC1 can be calculated using the eigenvalue divided by the degrees of freedom, yielding a high correlation value. Understanding component loadings is crucial, as they represent the contribution of each variable to the principal components.
Philip Wong
Messages
95
Reaction score
0
hi guys, several things about PCA (principle component analysis) I hope someone can run over with me and correct me if I'm wrong.

say I've done a PCA on correlation matrix and the eigenvlaues are: 2.37,1.18,0.58,0.28,0.28.

1) if I then do a reduced space plot using the first 2 pcs, is this how I calculate the proportion of total variance being thrown away:

the sum of all eigenvalues is: 4.59
proportion of variance thrown away is: (2.37*4.59)/(1.18*2.59) = 0.7734. So there is about 13% or 0.13 of data being thrown away?


2) let's go back to the eigenvalues I worked out above, I should pay more attention on interpreting the 4th and 5th components (both = 0.28). Because the closer the eigenvalues of any pair of components the more they are correlated (i.e. the higher the covariance). hence the 4th and 5th component give the same eigenvalue, it meant that they are highly correlated. It seems rather unusual to have equal eigenvalue, I might want to go back and look at my original data, such that I might have a type 1 error for 4th and 5th components (i.e. they might be the same sample printed twice).
is my interpretation corrected?

3) let say everything was correct (i.e. indeed the 4th and 5th component indeed is separate data sets giving the same eigenvalue). how do I calculate the component correlations for PC1?

do is use the following formula: (eigenvalues for PC1)/ (n-1). where n-1 is the degrees of freedom. i.e. 2.37/ (5-1) . 2.37/4 = 0.5925. 0.5925 is relatively high in correlation sense (because it only goes up to 1), therefore components for PC1 is relatively correlated.

4) lastly what does component loading measures?


I might have several more questions relating to PCA and PCO. that I'll add later, but for now can somebody please go over with me the questions above!

thanks!
 
Physics news on Phys.org


For starters you need to caculate the PCA from the covariance matrix, not the correlation matrix.
 


You are wrong. You can indeed calculate the principal components from the correlation matrix. In some cases it is even advisable. When your variables are measured in different units you can't make meaningful linear combinations out of them. When you do it from the correlation matrix you are doing it on standardized non dimensional variables. So the pcs are also non dimensional. However you need to take that into account when you interpret the results. Getting the pcs from the covariance and the correlation matrix yield different results.
 


Philip Wong the pcs aren't never correlated between each other. That's one of the restrictions when you do a pca. They might be after you do a rotation on the loadings. Getting PCs with equal eigen values (variance) is just a coincidence. Those two principal components are only the same, if the loadings (the variable coefficients) are exactly the same on both linear combinations.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top