Scree Plot have the same variances explained for all principal components

I've done pca on my data. I know scree plot should have decrasing graph, but my scree plots shows same number of variances explained by all the 7 PCs. Below is my code. Anyone knows what is the factor that makes my scree plot like this?Variance explained.PNG
[coeff3,score3,latent3,explained3,tsquared3]=pca(X(2:8,2:end));
plot(score3(:,1),score3(:,2),'s')
xlabel('1st Principal Component')
ylabel('2nd Principal Component')
title('Blood Samples and Cortisol')
gname
xh=gca;
color='y';
linestyle = '--';
axh=gca;
line(get(axh,'XLim'), [0 0], 'Color', color, 'LineStyle', linestyle);
line([0 0], get(axh,'YLim'), 'Color', color, 'LineStyle', linestyle);
pareto(explained)

1 件のコメント

ack
ack 2021 年 9 月 8 日
I think this is more to do with your input data. I used to have something like a flat scree plots and refining input data helps for me.

サインインしてコメントする。

回答 (1 件)

Guan Wang
Guan Wang 2022 年 7 月 25 日

0 投票

the fouth and 5th outputs, named explained3 and tsqured, should be reordered to tquared and explained3.
pareto(the 5th output)

カテゴリ

ヘルプ センター および File ExchangeData Distribution Plots についてさらに検索

製品

質問済み:

2018 年 11 月 27 日

回答済み:

2022 年 7 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by