what n and p denotes in n*p input matrix of pca?
2 ビュー (過去 30 日間)
古いコメントを表示
I m bit confused matrix which is to be fed as input to princomp should be in the form of 160*25 or 25*160 where 25 are coffecients and 160 are features. as when I give input as 25*160 it is generating coefficient matrix and with 160*25 generating error Eigen value<0. Kindly help me.
thanx
0 件のコメント
採用された回答
Walter Roberson
2016 年 11 月 27 日
"Rows of X correspond to observations, columns to variables"
Features would correspond to variables, but it is not obvious what you mean by "coefficients".
I would expect there to be problems if you implicitly told it there were more variables than there were observations, by using an array that was taller than it was wide, so I would expect that you need to pass in the 25 x 160 matrix.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!