Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

A Tutorial on Principal Component Analysis

Principal component analysis finds the directions that carry most of the variance in data

  • Problem Recorded measurements are often redundant and noisy, so the underlying dynamics stay hidden. Naive camera coordinates mix the motion along arbitrary axes, and the useful direction is hard to see.
  • Method PCA rotates the naive basis toward directions of largest variance. It takes the eigenvectors of the covariance matrix as the new basis, so the new coordinates are uncorrelated and ranked by variance.
  • Results The authors show that the eigenvectors of the covariance matrix give principal components with a diagonal covariance. The spring example is illustrative only, with no measured comparison against other methods.

Why raw measurements hide the dynamics

Picture an experimenter who films a ball on an ideal spring with three cameras, each reporting a two-dimensional position. Stacking the six image coordinates gives one six-dimensional sample, and ten minutes at 120 Hz yields 72000 samples. The motion truly runs along one axis, yet the camera angles are arbitrary and the real axes are unknown, so the recordings look tangled.

Air, imperfect cameras and friction add noise that hides the dynamics further.

What the experimenter needs is a way to find the one direction that carries the motion. PCA is offered as that method, because it re-expresses the measurements so that the important dimension stands out. The toy spring problem is therefore a test of whether that re-expression recovers the x direction.

PCA as a linear change of basis

The key idea is to write every sample as a linear combination of new basis vectors chosen to suit the data. The starting point is the naive basis of the cameras, which is the identity and mirrors how the data were recorded rather than any deeper structure. So PCA asks whether another basis, built linearly from the original one, expresses the data better.

Let X be an m by n matrix whose columns are samples, so in the toy case m is 6 and n is 72000. A matrix Y is then related to X by a linear transform P, which the authors write as PX = Y. \[ PX = Y \] Each entry of a column of Y is a dot product of one row of P with one sample, so the rows of P serve as basis vectors.

Linearity alone does not pin down P, so further assumptions are needed to choose it. Those assumptions are what the next sections build up.

Variance as signal and covariance as redundancy

Large variance along a direction is treated as signal, and spread that departs from the trend is treated as noise. The signal-to-noise ratio compares the two variances, and a high value marks a precise measurement. The authors assume that directions with the largest variance carry the dynamics of interest. In the spring example, the best-fit line through camera A's cloud points along the motion, so rotating the naive basis onto that line recovers it.

Two recordings that are strongly correlated are redundant, because one can be computed from the other. Covariance quantifies this linear relationship, and the authors define it as an average product of zero-mean measurements. For many measurement types they collect the samples into a matrix and define the covariance matrix as follows. \[ C_X = \frac{1}{n} X X^{T} \] A footnote notes that practice uses a 1/(n-1) normalization instead.

The diagonal of this matrix holds the variances of each measurement type, and the off-diagonal entries hold their covariances. PCA therefore wants a transformed covariance that is diagonal, so the new coordinates are uncorrelated and ranked by variance. Requiring orthonormal basis vectors makes this search tractable, while a greedy search would pick one direction at a time.

An analytical solution to the search exists, so the greedy procedure is not needed.

Solving with eigenvectors of the covariance

The idea is that a symmetric matrix is diagonalized by the matrix of its orthonormal eigenvectors. So PCA can pick P from the eigenvectors of the covariance matrix, which is symmetric.

Substituting Y = PX into the covariance of Y gives a formula in terms of P and C_X. \[ C_Y = P C_X P^{T} \] Choosing P as the transpose of the eigenvector matrix E, and using the fact that P's inverse equals its transpose, makes C_Y equal to a diagonal matrix D.

In practice this means subtracting the mean of each measurement type and then computing the eigenvectors of C_X. The ith diagonal value of C_Y is then the variance of X along the ith principal component. The authors provide a Matlab function, pca1, that follows this covariance route, although they note it is explanatory rather than efficient.

The SVD route to the same answer

The authors derive SVD from the matrix X^T X, whose eigenvectors v give singular values as square roots of their eigenvalues. Each left vector is then u equal to X v divided by its singular value, which yields the scalar relation below. \[ X\hat{v}_i = \sigma_i \hat{u}_i \]

Stacking these scalar relations gives XV = UΣ, and multiplying by V transpose yields X = UΣV^T.

Rewriting the decomposition as U^T X = Z shows that U^T is a change of basis, and its rows span the column space of X. The same argument applied to X^T gives V as the basis of the row space.

For PCA, the authors define Y as one over the square root of n times X transpose, so that Y^T Y equals the covariance matrix. \[ Y^{T} Y = C_X \] The columns of V from the SVD of Y are therefore the eigenvectors of C_X, which are the principal components. The matching Matlab function pca2 follows this SVD route.

What the evidence does and doesn't show

The paper has no benchmark tables, so its support is the algebraic derivation, the appendix proofs and the spring illustration. The main experiment-like check is the spring example, which is described in prose rather than with measured numbers.

The authors describe the spring case as one in which most variation falls along a single dimension, even though six dimensions are recorded. That is an illustrative claim about the toy setup, not a measured comparison against another method.

Appendix A proves that an orthogonal matrix's inverse equals its transpose, and that symmetric matrices diagonalize by orthonormal eigenvectors. These proofs support the eigenvector and SVD derivations rather than any empirical result.

The authors state that under mean squared error PCA gives the optimal reduced representation, and they say this can be proved. The text does not give that proof.

Limits of PCA

PCA removes only second-order dependencies, so higher-order structure in the data is left in place. Because PCA takes no parameters to tune, it ignores how the data were recorded.

A person tracked on a ferris wheel can be described by one angle, yet PCA would not recover that variable. Data with non-Gaussian distributions and non-orthogonal axes also make the high-variance axes point the wrong way.

Kernel PCA applies a nonlinearity first, which requires prior knowledge of a suitable naive basis. Independent component analysis instead requires statistical independence, which succeeds in many domains but can be hard to compute. The paper does not run either alternative.

Paper info

Authors
Jonathon Shlens
Venue
arXiv · Preprint
First published
2014-4-3
Added
2026-11-12
Updated
2014-4-3
Version
v1
arXiv
1404.1100
Category
cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Jonathon Shlens (2014). A Tutorial on Principal Component Analysis. arXiv:1404.1100v1. https://arxiv.org/abs/1404.1100v1

BibTeX
@misc{shlens2014tutorial,
  title = {{A Tutorial on Principal Component Analysis}},
  author = {Jonathon Shlens},
  year = {2014},
  eprint = {1404.1100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1404.1100v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up