November 20th, 2008, 12:18 am
QuoteOriginally posted by: surideepakHi, I have been trying to look into serial autocorrelation in stock prices. The tests and methods I have been able to read so far are the Durbin-Watson test and the Portmanteau test(Chi square analysis). The biggest problem I have is that these are valid for linear regression models and serial autocorrelation is defined as the correlation between the residuals of the First regression between the stock prices series. An expansion of the equations looks like thisY(t)= a + b.X(t) + residuals1(t), where:residuals1(t)=Rho*Residuals(t-1)+residuals2The second equation can be treated as a new regression system with intercept of 0 and hence can be solved on for the Autocorrelation(Rho). This is where I start pulling put my hair, because the second residuals are very high in magnitude and cloud the whole meaning of trying to do a linear fit across the first residuals.For example, performing the above test for stock prices of SPX on a 30 day window, with a lag of 1 day, I get an autocorrelation of -5%. The first residuals range between 0.1% to 0.8% of the stock prices but the second residuals are almost 1%-80% of the second residual values which is obscene to admist as a good analysis.Kindly suggest what approach could be used to analyse this autocorrelation? Also, in one of the forums I read that this factor is used to correct volatility by sqrt(1-rho^2), which vol is being talked about here? If its implied vol, how do you decide upon maturity (assuming the correction factor applies across all strikes)Thanks(1) I'm not really sure what you're talking about regarding 'correlation between the residuals of the first regression...', so let's start here: - Correlation between series X and Y in general is defined as the covariance of X and Y over the vol of X time the vol of Y: rho = cov(X,Y) / std(x)*std(y), assuming X and Y are stationary - Autocorrelation for a given lag, k, is merely X as the time series itself minus the last k days of the series and Y as X lagged k days. - With X and Y, the calculation for rho is straightforward. - You can then use any test for validity you'd like (Durbin-Watson, Ljung-Box, etc.) to assess significance.(2) You can't calculate correlation, or autocorrelation, of variables that aren't stationary (ie, use returns, not prices)I'm not really sure what you're doing, but I'd wager the bulk of your problem lies in you using S&P prices as opposed to returns.