Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCA: the calculation of proportion of vairance #39

Open
keineahnung2345 opened this issue Oct 9, 2018 · 0 comments
Open

PCA: the calculation of proportion of vairance #39

keineahnung2345 opened this issue Oct 9, 2018 · 0 comments

Comments

@keineahnung2345
Copy link
Contributor

In https://github.com/rushter/MLAlgorithms/blob/master/mla/pca.py#L48, the variance ratio of a component is calculated as the square of its eigenvalue divided by the sum of all squared eigenvalues.
But according to https://stats.stackexchange.com/questions/31908/what-is-percentage-of-variance-in-pca, the proportion of variance of a component should be its eigenvector divided by the sum of all eigenvectors. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant