How to Decipher a Biplots Observation

7 views (last 30 days)
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

Accepted Answer

Eric Lin
Eric Lin on 18 Jun 2015
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);

More Answers (1)

James Ooi
James Ooi on 19 Jun 2015
Thank you Eric. Your explanation is very detailed and I appreciate it!

Community Treasure Hunt

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

Start Hunting!