PCA

Econometrics questions and discussions
zoo
Posts: 2
Joined: Thu Nov 09, 2006 3:32 am

PCA

Unread post by zoo »

I am having a look to the routines for principal component analysis and factor analysis.

The output contain eigenvalues and eigenvectors. I have seen a paper which shows "factor loadings" instead. What are these "factor loadings"?
TedKury
Posts: 7
Joined: Tue Nov 14, 2006 8:38 am

Unread post by TedKury »

Without knowing the paper, I can't give you a definitive answer.

However, if you multiply each eigenvector by the square root of its respective eigenvalue, that 'weights' each eigenvector by its importance in explaining the system. Perhaps that is what the paper refers to.

For example, if you are using the first k principal components of a NxN correlation matrix to simulate correlated standard normal random numbers, you would multiply a 1xk vector of independent random numbers by the kxN weighted eigenvectors to get a 1xN vector of correlated random numbers.

I hope that this helps.

Ted
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Unread post by TomDoan »

The examples from the Tsay second edition, those from tsayp408 to tsayp437, all do various forms of factor analysis. We've added or updated quite a few procedures for implementing these.

Regarding the "loadings", the basic factor model is X (the observed data) = L * F + U

F are the factors and U are the idiosyncratic shocks. L are the loadings from the factors to the actual variables. If the X's are roughly the same scale (factor analysis is often done on correlation matrices to make that true), then relatively high values of a loading indicate that a factor is relatively important. What you generally hope to see (in a multi-factor model) is one factor loading heavily on one set of variables and another loading heavily on a different set. Since only the space spanned by the factors, not the factors themselves, are determined by the estimation procedure, there are ways to "rotate" the factors to try to achieve such a simple interpretation.
anozman
Posts: 59
Joined: Mon Jan 30, 2012 5:16 pm

Re: PCA

Unread post by anozman »

Hi Tom,

Are there any RATS examples to extract PCAs from nonstationary time series?

Many thanks,
Anozman
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: PCA

Unread post by TomDoan »

It's PC (Principal Components), not PCA (Principal Components Analysis---that is, the technique).

Although @PRINCOMP can be applied to non-stationary series, it's a bad idea. Non-stationary series don't have a constant mean, much less a constant covariance matrix. If you try to extract PC's from a set of I(1) series, you are likely to get what amounts to being a "spurious regression" component. Both cointegration and common trends approaches use calculations closely related to PCA but more carefully deal with the dynamics of the process.
sanjeev
Posts: 191
Joined: Mon Jun 18, 2012 6:51 am

Re: PCA

Unread post by sanjeev »

Dear Tom,
Does RATS provide any course on principal components analysis also?

Thanks.
Regards.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: PCA

Unread post by TomDoan »

No. PCA (which is basically static factor analysis) is primarily a subject for other social sciences such as psychology.
Post Reply