define N as the number of eigenvectors needed to capture at least "99.9" of the variation in d
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How find find?
Réponses (2)
John D'Errico
le 9 Mar 2021
Lets see. Do you know how to compute what is the total variation? I hope so! Call it totalVar.
What is 99.9% of that number? totalVar*0.999.
Now look at the eigenvalues. Start summing them up from the largest down, (you might even use cumsum) until you just exceed totalVar*0.999.
I don't see the problem.
1 commentaire
the cyclist
le 9 Mar 2021
Modifié(e) : the cyclist
le 9 Mar 2021
In general, you should provide more context and information about your question, so that we do not have to guess at what you are doing.
However, I am going to make a guess here. If you have the Statistics and Machine Learning Toolbox, then I think you can use the pca function. It has output called explained, which is the fraction of variation that each principal component captures.
You might also want to see my answer to this question, which gives a lot of explanation about how to use and interpret pca results.
0 commentaires
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!