Page 1 of 1
rolling regression window size
Posted: February 27th, 2012, 7:49 pm
by HorseRider
I am trying to some time series regression, is there an optimal lookback window for regression?I am always also curious about in a pairs trading, how to determine the optimal lookback window to calibrate your spread?Not sure if these two are related. Any advice would be appreciated greatly.
rolling regression window size
Posted: February 27th, 2012, 11:59 pm
by yugmorf2
There is no 'optimal', since the answer depends on many factors, not least of which include; asset class, execution speed, and trading costs. Nor, is it likely to be stable, since what might work in one regime might not work in another (eg high/low volatility).For marketing purposes, a sometimes used practice is to try lots of different window sizes and then present the one that gives the best performance, but without understanding what was driving that performance (eg say if it was due to some special circumstances specific to that time period, and those circumstances are not likely to persist). This is one reason why back-tested performance cannot always be trusted as an indicator of live trading performance.Good luck!
rolling regression window size
Posted: February 28th, 2012, 1:34 pm
by HorseRider
Thanks
rolling regression window size
Posted: February 28th, 2012, 4:02 pm
by Alan
QuoteOriginally posted by: yugmorf2There is no 'optimal', since the answer depends on many factors, not least of which include; asset class, execution speed, and trading costs. Nor, is it likely to be stable, since what might work in one regime might not work in another (eg high/low volatility).For marketing purposes, a sometimes used practice is to try lots of different window sizes and then present the one that gives the best performance, but without understanding what was driving that performance (eg say if it was due to some special circumstances specific to that time period, and those circumstances are not likely to persist). This is one reason why back-tested performance cannot always be trusted as an indicator of live trading performance.Good luck!All good comments. I will just add, that there is some theory, too, under the rubrik of 'optimal filtering'.An example of optimal filtering theory is Nelson & Foster. To the extent that you really understand what is driving your observations, there could be a rationale for a particular window size.
rolling regression window size
Posted: March 13th, 2012, 2:05 pm
by yuryr
could go bayesian for that task and use all possible window sizes at once!
rolling regression window size
Posted: March 14th, 2012, 5:57 pm
by ClosetChartist
OLS Regression assumes that there is a constant (but noisy) relationship that you are attempting to discover.A rolling regression pre-supposes that the relationship changes over time. PRINCIPLE: Whenever you are trying to have it both ways, you are asking for trouble.Which is it (constant or changing)? Decide and select the right tool for the job.Bayesian Regression (Dynamic Linear Models) are your best bet.