# Matrix algebra vs. PrincipalComponents and Varimax/Oblimin

Using matrix algebra I can calculate loadings and scores from the covariance matrix (data matrix is column centered):

covariancematrix=Covariance[data];

scores2=PrincipalComponents[data];