TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Principal component analysis explained visually

187 pointsby vicapowover 10 years ago

11 comments

jrullmannover 10 years ago
Seeing how each visualization adjusts as I change the original dataset is so useful. The technique reminds me of Bret Victor&#x27;s amazing work.<p>Ladder of Abstraction Essay: <a href="http://worrydream.com/#!2/LadderOfAbstraction" rel="nofollow">http:&#x2F;&#x2F;worrydream.com&#x2F;#!2&#x2F;LadderOfAbstraction</a><p>Stop Drawing Dead Fish Video: <a href="https://vimeo.com/64895205" rel="nofollow">https:&#x2F;&#x2F;vimeo.com&#x2F;64895205</a><p>This is awesome, thanks for sharing!
kaitaiover 10 years ago
Very nice! I actually used the featured example from Mark Richardson&#x27;s class notes on Principal Component Analysis (<a href="http://people.maths.ox.ac.uk/richardsonm/SignalProcPCA.pdf" rel="nofollow">http:&#x2F;&#x2F;people.maths.ox.ac.uk&#x2F;richardsonm&#x2F;SignalProcPCA.pdf</a>) in teaching. It was astounding how clear it was to some people and how unclear to others.<p>I did a singular value decomposition on a data set similar to the one Richardson used (except with international data). The original post here looks at the projection to country-coordinates, looking at what axes describe primary differences between countries. My students had no problem with that -- Wales and North Ireland are most different, in your example, and &#x27;give&#x27; the first principal axis. But then I continued to do it with the foods, as Richardson did (look at Figure 4 in the linked file). Students concluded in large numbers that people just don&#x27;t like fresh fruit and do like fresh potatoes. Hm. They didn&#x27;t conclude that people don&#x27;t like Wales and do like North Ireland; they accurately saw it as an axis. But once we were talking about food instead of countries, students saw projection to the eigenspace as being indicative of some percentage of approval.<p>How could we visually display both parts of this principal component analysis to combat this prejudice that sometimes leads us to read left to right as worse to better?
评论 #9043836 未加载
hobbyistover 10 years ago
How differently is linear regression than PCA? I understand the procedure and methods are completely different, but isn&#x27;t linear regression also going to give the same solution on these data sets?
评论 #9041053 未加载
评论 #9041464 未加载
评论 #9043790 未加载
rrosen326over 10 years ago
This is truly fantastic.<p>Excuse me for being daft, but how do you transform back into &#x27;what does this mean&#x27;?<p>For instance, in ex 3, we see that N. Ireland is an outlier. It wasn&#x27;t obvious to me that the cause was potatoes and fruit.<p>How does PCA help you with the fundamental meaning?
评论 #9041120 未加载
评论 #9041094 未加载
评论 #9042824 未加载
haihaibyeover 10 years ago
A webapp for doing SVD&#x2F;PCA:<p><a href="http://biographserv.com/bgs/docs/svd_graph_editor/" rel="nofollow">http:&#x2F;&#x2F;biographserv.com&#x2F;bgs&#x2F;docs&#x2F;svd_graph_editor&#x2F;</a>
CmonDevover 10 years ago
I think the 3D chart requires a WebGL plug-in... Where can I download one for Chrome 40.x?
languagehackerover 10 years ago
PCA is a pretty okay method for dimensionality reduction. Latent Dirichlet allocation is pretty good too. It depends on what you&#x27;re trying to do and how the data is distributed in N-dimensional space.
评论 #9043233 未加载
nathellover 10 years ago
This is great. The only thing I&#x27;m missing is explanation of the various methods of rotating the principal axes (varimax, oblimin, etc.)
benten10over 10 years ago
Hope I&#x27;m not late to the party...Does anyone have an implementation(s) to recommend in Python?
评论 #9044439 未加载
scottmcdotover 10 years ago
Strange font, particularly the &#x27;s&#x27;. It&#x27;s hard to read. Anyone else having the same experience?
评论 #9041732 未加载
_almosnowover 10 years ago
Pretty nice page, but it doesn&#x27;t say much about PCA. &quot;Visualizing PCA output&quot; would be a more appropiate post title.