Hi all,
I’m relatively new to Mathematica and working with PCA (Principal Component Analysis).
From biological experiments on the foraging of nematodes I’ve collected some data points (approx 200) of 100 dimensions each. The data is stored in a matrix, 100 rows and approx. 200 columns.
Now, to find the major aspects of the foraging movement, I’ve done a PCA on the data:
pca=PrincipalComponents[data]
Great!
I’ve got the principal components, of which the first four are the most relevant, explaining the lion’s share of the total variance.
From theoretical considerations, I assume that PC1 and PC2 amplitudes are related as follows (idealized, of course):
Now, how can I plot something like that? First, I would need a list of amplitudes a1, a2, a3, a4 for the first four Principal Components and for all 200 data points. Then I somehow need to plot the relation
Plot[a2[a1], {a1,-.2,.2}]
Any ideas on how to get the amplitudes and how to plot them?
.
Thanks, any input would help a lot!
David.
