Live data from Hacker News

Principal Component Analysis Explained Visually (2015)

setosa.io

11–20 of 28 posts

Re: Principal Component Analysis Explained Visually (2015)

#11
post #10

As someone who knows nothing about machine learning and nothing about PCA (well, until now :)), can someone please explain how the two relate to each other? Is one of them a subset to the other, or what?

In very broad terms, PCA can be thought of as a pre-processing step to reduce the original data set to the "components" which account for the most variation in the data.

Essentially it's distilling your data down to what is most relevant, and thus helps say a classification algorithm work better by only training on the reduced "more manageable" data.

Re: Principal Component Analysis Explained Visually (2015)

#13
Hey HN. Co author here. Crazy to see this up here again. Anyway, just letting y'all know I finished my phd and teaching for now so there will be a lot more visualizations like this coming out this summer. Will get Vicapow back in the game for one last score, too. 1. PDE's 2. Lorenz attractor with a waterwheel in threejs 3. Macroscopic fundamental diagram theory of traffic flow in cities 4.??? 5. Profit

Re: Principal Component Analysis Explained Visually (2015)

#15

Hey HN. Co author here. Crazy to see this up here again. Anyway, just letting y'all know I finished my phd and teaching for now so there will be a lot more visualizations like this coming out this summer. Will get Vicapow back in the game for one last score, too. 1. PDE's 2. Lorenz attractor with a waterwheel in threejs 3. Macroscopic fundamental diagram theory of traffic flow in cities 4.??? 5. Profit

I am especially excited to see more great content from setosa.io

Re: Principal Component Analysis Explained Visually (2015)

#16
post #7
post #2

Nice visualization! This provides me an opportunity to go on a random tangent on PCA: The post considers PCA from visualization perspective, but the exactly same thing can also be viewed as a method for reducing number of dimensions in the original dataset. [1] Now, one of the interesting questions in a dimensionality reduction task is, how to pick the number of dimensions (principal components)? A good number? In a…

you can look at it in terms of reconstruction error

This is the standard way when looking for reduced order models in fluid mechanics.

Variations on this: i) How 'faithfully' does it represent the data, eg, how many modes (components) are needed to resolve accuracy in a particular metric, or the entire system ii) What is the cut-off component number which has a signal of order of the measurement uncertainty.

Re: Principal Component Analysis Explained Visually (2015)

#17
post #10

As someone who knows nothing about machine learning and nothing about PCA (well, until now :)), can someone please explain how the two relate to each other? Is one of them a subset to the other, or what?

Machine learning (and more specifically here, supervised learning) is about predicting a specific attribute of a new sample, based on the attributes of the samples that you've acquired. For example, if you have access to the database of the clients of a bank, containing their attributes such as their income, their age, their occupation and whether or not the bank accepted to give them a loan, you may want to create a system that based on this database, can predict whether a new person will get a loan or not.

It happens that having too much different features is not necessarily a good thing, in a phenomenom called curse of dimensionality.

Due to this, we are interested in trying to reduce the number of attributes our algorithm will process. There are two big categories of methods to do that: feature selection and feature extraction.

In feature selection, you try to select the attributes that are the "best" to predict your value. For example, computing the statistical correlation between the attributes and the value you want to predict, and choose those with the highest correlations.

In feature extraction, you create new attributes that are a linear combinations of the original attributes. PCA is a feature extraction algorithm.

Re: Principal Component Analysis Explained Visually (2015)

#18
post #7
post #2

Nice visualization! This provides me an opportunity to go on a random tangent on PCA: The post considers PCA from visualization perspective, but the exactly same thing can also be viewed as a method for reducing number of dimensions in the original dataset. [1] Now, one of the interesting questions in a dimensionality reduction task is, how to pick the number of dimensions (principal components)? A good number? In a…

you can look at it in terms of reconstruction error

Yeah PCA will give you eigenvalues of the PCs in descending order of variance explained so just summing and weighting those tells you the first 3 PCs explain say 93% of the variance in the data.

Re: Principal Component Analysis Explained Visually (2015)

#19

Hey HN. Co author here. Crazy to see this up here again. Anyway, just letting y'all know I finished my phd and teaching for now so there will be a lot more visualizations like this coming out this summer. Will get Vicapow back in the game for one last score, too. 1. PDE's 2. Lorenz attractor with a waterwheel in threejs 3. Macroscopic fundamental diagram theory of traffic flow in cities 4.??? 5. Profit

You guys are awesome!

Re: Principal Component Analysis Explained Visually (2015)

#20
post #10

As someone who knows nothing about machine learning and nothing about PCA (well, until now :)), can someone please explain how the two relate to each other? Is one of them a subset to the other, or what?

Machine learning (and more specifically here, supervised learning) is about predicting a specific attribute of a new sample, based on the attributes of the samples that you've acquired. For example, if you have access to the database of the clients of a bank, containing their attributes such as their income, their age, their occupation and whether or not the bank accepted to give them a loan, you may want to create a…

Beautiful explanation, thank you.
Post reply on HN