February 13th, 2011, 3:15 pm
QuoteOriginally posted by: CiportneHi all,I am trying to perform a co-integration test on a file containing 10 years of daily closing equity prices and I'm trying to find the best approach. The flat file contains approx 6 million lines with all the time series listed sequentially for each stock. I'm trying to figure out the best way to perform the analysis in Matlab. Especially considering that a number of the time series will have broken start/end dates (The CRSP database contains all stocks, listed and de-listed).Fortunately i have access to an unlimited KDB+\Q environment. There i uploaded our 16million lines of data from a day and from matlab i can query the data to perform the cointegration test. But this is still a pain to wait.Some papers suggest to calculate the discrete fourier transformation and take only the first 60 or 80 coefficients to perform the cointegration test.