Thank you for your explanation, it is very helpful. but still one thing confusing me. when I did the PCA by R, the total variances usually equal to the number of PCs, such as the example as the following:
Comp.1 Comp.2 Comp.3 Comp.4
Standard deviation 1.5748783 0.9948694 0.5971291 0.41644938
Proportion of Variance 0.6200604 0.2474413 0.0891408 0.04335752
Cumulative Proportion 0.6200604 0.8675017 0.9566425 1.00000000
It gives Standard deviation (sd) instead of variance, so you have to square sd to get the variance.
total variance=(1.5748783^2+ 0.9948694^2+ 0.5971291^2+ 0.41644938^2)=4
but my .eigenval file of the plink is as following ,which not as the rule above (the total variance not equal to the number of PCs, 20), would you help me explain that? Thank you
20.0134
2.98845
2.32333
1.94295
1.93421
1.91117
1.88628
1.86544
1.85781
1.84763
1.76204
1.5532
1.3277
1.1808
1.14857
1.13482
1.13316
1.12439
1.1194
1.11312