필터 지우기
필터 지우기

varimax rotation of PCs

조회 수: 12 (최근 30일)
caterina
caterina 2013년 3월 2일
Hi I need to rotate a PCs coming from a Principal Component Analysis. I know I shouldn't but the analysis I'm doing requests this step. I used function rotatefactors() but it does not produce the eingenvalues of the rotated PCs. At the same time I can't use factorian() routine because my covariance matrix is not positive definite. Does anyone have an idea? Thanks!
  댓글 수: 1
Tom Lane
Tom Lane 2013년 3월 7일
I would have thought that if you rotate the coordinate system away from the eigenvectors, then it is no longer meaningful to compute eigenvalues.

댓글을 달려면 로그인하십시오.

채택된 답변

Tom Lane
Tom Lane 2013년 3월 8일
On reflection, if you are thinking of the eigenvalues as the variances of the scores, perhaps this is what you want after rotation:
% Eigenvalues are the variances of the scores
load hald
[C,S,latent] = pca(ingredients);
V = cov(ingredients);
var(S) % variance of scores
latent' % latent values
Sigma = eig(V)' % eigenvalues
% Rotate away from the principal components
[L,T] = rotatefactors(C(:,1:2));
% Variances of the rotated scores, if we have S
var1 = diag(cov(S(:,1:2)*T))'
% Variances computed without using the scores
var2 = diag(L'*V*L)'

추가 답변 (1개)

caterina
caterina 2013년 3월 10일
Thank you very much! You helped me a lot. c.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by