How to Decipher a Biplots Observation

조회 수: 5 (최근 30일)
James Ooi
James Ooi 2015년 6월 17일
답변: James Ooi 2015년 6월 19일
Hi all, I made a biplot based on my data set (10000x9). Each of the 9 category is labeled as such on the biplots. I used the data cursor to point to a point (red dots) on the biplot and it shows me:
==============
Scores
Component 1: 0.2323
Component 2: -0,3763
Observation: 508
==============
I m trying to understand what is the observation number correspond to? How do I find out the data that corresponds to these PC score?
Thank you for your time.
Best, James

채택된 답변

Eric Lin
Eric Lin 2015년 6월 18일
The "Observation" number simply corresponds to the row number of the original data point. That is, you will have 10,000 observations given your data set. Note that the component scores shown in the data tip may not match the scores returned by "pca" according to the "biplot" documentation:
biplot scales the scores so that they fit on the plot: It divides each score by the maximum absolute value of all scores, and multiplies by the maximum coefficient length of coefs. Then biplot changes the sign of score coordinates according to the sign convention for the coefs.
In R2015a, the exact transformation steps can be seen in lines 198 and 199 of "biplot.m":
maxCoefLen = sqrt(max(sum(coefs.^2,2)));
scores = bsxfun(@times, maxCoefLen.*(scores ./ max(abs(scores(:)))), colsign);

추가 답변 (1개)

James Ooi
James Ooi 2015년 6월 19일
Thank you Eric. Your explanation is very detailed and I appreciate it!

카테고리

Help CenterFile Exchange에서 Dimensionality 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