Serving the Quantitative Finance Community

 
User avatar
HorseRider
Topic Author
Posts: 0
Joined: December 8th, 2004, 4:12 am

rolling regression window size

February 27th, 2012, 7:49 pm

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.
 
User avatar
yugmorf2
Posts: 0
Joined: November 21st, 2010, 5:18 pm

rolling regression window size

February 27th, 2012, 11:59 pm

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!
 
User avatar
HorseRider
Topic Author
Posts: 0
Joined: December 8th, 2004, 4:12 am

rolling regression window size

February 28th, 2012, 1:34 pm

Thanks
 
User avatar
Alan
Posts: 2958
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

rolling regression window size

February 28th, 2012, 4:02 pm

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.
Last edited by Alan on February 27th, 2012, 11:00 pm, edited 1 time in total.
 
User avatar
yuryr
Posts: 0
Joined: November 5th, 2007, 12:47 pm

rolling regression window size

March 13th, 2012, 2:05 pm

could go bayesian for that task and use all possible window sizes at once!
 
User avatar
ClosetChartist
Posts: 0
Joined: July 17th, 2003, 4:41 pm

rolling regression window size

March 14th, 2012, 5:57 pm

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.