PCA in financial time series

Econometrics questions and discussions
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

PCA in financial time series

Unread post by fan »

Hi Tom,

I am trying to apply PCA to the time series data I have. I am not familiar with the procedures in Rats. Particularly, I would like to how to save and plot the factors. Is there any good example I can read? Thanks
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: PCA in financial time series

Unread post by TomDoan »

See Tsay examples TSAYP485.RPF, TSAYP493.RPF and TSAYP500.RPF.
fan
Posts: 215
Joined: Wed Jun 19, 2013 5:14 pm

Re: PCA in financial time series

Unread post by fan »

TomDoan wrote:See Tsay examples TSAYP485.RPF, TSAYP493.RPF and TSAYP500.RPF.
Thanks for the examples. One question in my mind now is that how I can obtain the factor returns in example TSAYP485.RPF.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: PCA in financial time series

Unread post by TomDoan »

The factors are computed from the raw data using the columns of the eigenvectors so you would have to save those (VECTORS option) and build the factors. The @PRINCOMP procedure is designed more for going from data to data rather than analyzing just the covariance or correlation matrix.
Post Reply