BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
doudou66
Calcite | Level 5

Hello, All

Suppose my data have two variables A and B. Total_Variance_Original_Data = Var(A) + Var(B) + 2Cov(A,B)

Now I do Principle Components Analysis and get two new variables, say PC_1 and PC_2, with eigenvalues λ_1, and λ_2; Total_Variance_PCA_Explained = λ_1 +  λ_2


My question is: are theses two variances equal to each other, Total_Variance_Original_Data = Total_Variance_PCA_Explained ?

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Yes, if you do the analysis on the covariance matrix, that is, with the COV option (it is not the default option in PRINCOMP). You should analyse the covariance matrix only when your variables are roughly on the same scale.

PG

PG

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Yes, if you do the analysis on the covariance matrix, that is, with the COV option (it is not the default option in PRINCOMP). You should analyse the covariance matrix only when your variables are roughly on the same scale.

PG

PG
doudou66
Calcite | Level 5

Thank you very much for helping me.

If variables are not on the same scale (say, variable A is ~1000, and variable B is ~1), should I do normalization on each original variable (i.e. (original_variable - mean)/standard_deviation ) before doing PCA? or is there any other method?

PGStats
Opal | Level 21

Exactly! PRINCOMP without the COV option does that normalization for you. - PG

PG
doudou66
Calcite | Level 5

Thank you very much.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1437 views
  • 0 likes
  • 2 in conversation