Solved – Time lag between correlated signals

correlationcross correlationtime series

What options are there for finding out what the time lag is for different time series? I'm looking at market data here – for example, if sugar does bad in a year, it's likely that soda might be hit the next year. I've come across cross-correlation, but am not sure how to go about using it. Are there any libraries that perform fast cross-correlation if that is the only way to go?

Best Answer

The cross-correlation between two time can be computed but is of little(none) value in assessing the time delay as statistical tests for the cross-correlation coefficients require normality (i.e. independence of successive observations ) and more. One can pre-whiten the "cause" series via an ARIMA model to create a surrogate x and then apply the ARMA coefficients to the Y variable (appropriately made stationary) to get a surrogate y. Proceed to get meaningful cross correlation coefficients which may suggest the time lag between the originally measured series (Y and X). This is referred to as Transfer Function Model Identification.