News for hackers. Stuff that matters.
Re:A tutorial on Principal Component Analysis by presscast on Friday October 19, 2018 @03:30PM (#18259322)
Relatedly, from a colleague for whom I have a lot of respect: http://gael-varoquaux.info/science/ica_vs_pca.html
Re:A tutorial on Principal Component Analysis by mayankkaizen on Saturday October 20, 2018 @03:38PM (#18265011)
Your colleague is actually quite famous in ML space. You are lucky to have him as your colleague.
Re:A tutorial on Principal Component Analysis by presscast on Saturday October 20, 2018 @03:59PM (#18265106)
Oh, I know!

(To be fair, I should have said former colleague, back when I worked at NeuroSpin in 2010-2012).

Re:A tutorial on Principal Component Analysis by najarvg on Friday October 19, 2018 @04:57PM (#18260008)
Incredibly insightful! Thanks for sharing, I've bookmarked this
Re:A tutorial on Principal Component Analysis by radus on Friday October 19, 2018 @11:02PM (#18261494)
Thanks, this was great!
Re:A tutorial on Principal Component Analysis by rundigen12 on Friday October 19, 2018 @05:14PM (#18260123)
"By defining \mathbb{E}\left[\mathbf{x}\right]=\muE[x]=μ, ...and using the linearity of the expectation operator \mathbb{E}E, we easily arive [sic] to the following conclusion..."

Yikes. You don't define that \mathbb{E} was an 'expectation operator', or what an expectation operator even does, or the fact that it's linear. The v's disappeared somehow from inside the square brackets -- maybe you meant \muE[v]=μ?

So far this "tutorial" isn't defining its terms very well. I'm lost and it's only the very beginning.

Re:A tutorial on Principal Component Analysis by IngoBlechschmid on Friday October 19, 2018 @07:26PM (#18260812)
"E[foo]" is syntax to mean the expected value of the random variable foo, roughly speaking the mean value. (For instance the expected value of a dice roll is 3.5. The terminology is slightly suboptimal, since we will never expect a dice to come up 3.5.)

Hence the "E" itself is called an "operator". It can be applied to a random value in order to yield its expected value. You can read up on it here: https://en.wikipedia.org/wiki/Expected_value

The definition "E[x] = mu" is correct, though I would write it the other way, as "mu = E[x]", as it's the variable mu which is being defined.

The v's disappear because of a suppresed calculation:

sigma^2 = E[ (v^T x - E[v^T x])^2 ] = E[ (v^T x - E[v^T x]) (v^T x - E[v^T x]) ] = E[ v^T x v^T x - 2 v^T x E[v^T x] + E[v^T x] E[v^T x] ] = E[ v^T x x^T v - 2 v^T x v^T E[x] + v^T E[x] v^T E[x] ] = E[ v^T x x^T v - 2 v^T x E[x]^T v + v^T E[x] E[x]^T v ] = E[ v^T (x x^T - 2 x E[x]^T + E[x] E[x]^T) v ] = v^T E[ x x^T - 2 x E[x]^T + E[x] E[x]^T ] v = v^T E[ (x - E[x]) (x - E[x])^T ] v = v^T E[ (x - mu) (x - mu)^T ] v = v^T Sigma v.

Re:A tutorial on Principal Component Analysis by bunderbunder on Friday October 19, 2018 @09:25PM (#18261178)
Also, the "E[foo]" notation is something you'd pick up in an introductory statistics course. Which, IMO, means it's perfectly appropriate to use it without further explanation in this sort of context.

It's not really reasonable to expect technical subjects like this to always be presented in a way that's easily digestible to people who lack any background in the subject area. This article is clearly aimed at people who are studying machine learning, and anyone who is studying machine learning should already have a good command of basic statistics in linear algebra.

Re:A tutorial on Principal Component Analysis by johndough on Saturday October 20, 2018 @03:31AM (#18262216)
Slightly more formated: http://mathb.in/28658
Re:A tutorial on Principal Component Analysis by em500 on Saturday October 20, 2018 @03:44AM (#18262248)
Rewind to the start of the paragraph: "Let \mathbf{x} be a random vector with N dimensions."

You're assumed to already know what a "random vector with N dimensions" is. It's very resonable then to also assume you know what expectations and covariances of random vectors are, and some of their basic properties, such as linearity of expectations and quadratic forms of covariance matrices, since all of these are typically taught in the same course.

Re:A tutorial on Principal Component Analysis by doublerebel on Friday October 19, 2018 @06:47PM (#18260643)
That's code for KaTeX/MathJax. It should be rendered, check your script blocker.
Re:A tutorial on Principal Component Analysis by IngoBlechschmid on Friday October 19, 2018 @07:14PM (#18260752)
An important application of principal component analysis is "low-rank approximation of matrices"; very roughly, this can be used for "dimension reduction": Substituting a system of hundreds of thousands of equations by a system with only hundreds.

This is neatly illustrated by applying the technique to compress images, even if all the usual compression techniques actually employ vastly different methods. An interactive demo is here: https://timbaumann.info/svd-image-compression-demo/

Re:A tutorial on Principal Component Analysis by mitchtbaum on Friday October 19, 2018 @05:01PM (#18260034)
Re:A tutorial on Principal Component Analysis by bunderbunder on Friday October 19, 2018 @05:05PM (#18260064)
FWIW, latent semantic analysis is just a particular application of principal component analysis.
Re:A tutorial on Principal Component Analysis by closed on Friday October 19, 2018 @05:36PM (#18260239)
And principle component analysis is a special case of factor analysis, which definitely makes all this stuff fit together nicely!

https://www.microsoft.com/en-us/research/wp-content/uploads/...

Re:A tutorial on Principal Component Analysis by kurthr on Saturday October 20, 2018 @01:46AM (#18261943)
This PPCA is really clever... allowing MLE for missing data/variance in a PCA in genius.