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

Weighted PCA #35

Open
hamster-on-wheels opened this issue Jan 9, 2019 · 0 comments
Open

Weighted PCA #35

hamster-on-wheels opened this issue Jan 9, 2019 · 0 comments

Comments

@hamster-on-wheels
Copy link

hamster-on-wheels commented Jan 9, 2019

All observations form a matrix X where each row is one observation and each column is one feature.
Each observation also has a weight wi, which means the observation has occurred for wi times.
For example, a weight of 2 means the same observation actually occurs for twice.

Can I do weighted sparse PCA by the following method?

  1. Center each column of X by weighted average with wi as weights.
  2. Form matrix Y by multiplying each row of X by square root of wi.
  3. Calculate (robust) sparse PCA of Y with ristretto, which provides matrices A and B.
  4. The matrix X is approximately XBAT, where AT is transpose of A.

Thank you.

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