comparing results of PCA and NNMF - what percentage of the original data's variance is retained?

1 view (last 30 days)
Hello,
I have a big data matrix (100000*200) on which I performed PCA. Luckily PCA works great and only 4 variables recover ~95% of the variance. The way I got this is that I used the command:
cumsum(latent)./sum(latent)
as the example shows on matlab's PCA website (<http://www.mathworks.co.uk/help/stats/princomp.html)>. However for various reasons I want to do non-negative matrix factorisation on the same data matrix. My question is that how can I make an apples-to-apples comparison between the results of PCA and NNMF? That is how can I calculate the percentage of the original data's variance retained after NNMF?
Shall I just add up the variances of the variables and compare it to the same quantity of the original data? If I do that will that give me the same result as the command above in the case of PCA?
best regards, b

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!