PCA input matrix dimensions

4 ビュー (過去 30 日間)
Tahariet Sharon
Tahariet Sharon 2017 年 11 月 12 日
コメント済み: Tahariet Sharon 2017 年 11 月 13 日
Hi,
The formula for PCA is X=UV, where X is a pxn matrix (columns: observations; rows: variables), U (the coeff matrix) is a pxp matrix, and V (scores) is a pxn matrix. However, in Matlab the input should be transposed (this is, a nxp matrix, where columns are the variables, and not observations). I wonder why the consistency of the original formula was changed. Thank you.
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 11 月 12 日
"Consider a data matrix, X, with column-wise zero empirical mean (the sample mean of each column has been shifted to zero), where each of the n rows represents a different repetition of the experiment, and each of the p columns gives a particular kind of feature (say, the results from a particular sensor)."
That is columns as variables and rows as observations, the same order that MATLAB uses.
Tahariet Sharon
Tahariet Sharon 2017 年 11 月 13 日
Thanks you, Walter. So if X is time x sensors, then COEFF is time x PCs?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by