How extract rotated PCs' eigenvalue and explained variance?
8 views (last 30 days)
Show older comments
Hi, I used pca function in matlab and then I rotated first 4 PCs with rotatedfactors function. now I want to derive explained variance and eigenvalue of rotated PCs. Whta should I do?
0 Comments
Answers (1)
arushi
on 1 Aug 2024
Hi Farshad,
When you rotate the principal components (PCs) using the `rotatefactors` function in MATLAB, the explained variance and eigenvalues of the rotated PCs are not directly provided.You can compute them from the rotated loadings -
- Use the `pca` function to obtain the principal components and the explained variance.
- Use the `rotatefactors` function to rotate the loadings (principal components).
- The explained variance of the rotated PCs can be derived from the sum of the squared loadings for each component.
- The eigenvalues can be computed from the explained variance.The eigenvalues can be derived from the explained variance by multiplying by the number of observations minus one (degrees of freedom).
Hope this helps.
0 Comments
See Also
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!