Skip to content

best method for rolling forecast based on linear fit

2 messages · John Putz, Brian G. Peterson

#
John Putz wrote:
RollingRegression performs the regression over a rolling window on a 
time series.  Nothing Else.  rollapply in zoo (which is used by 
RollingRegression) would do the same.

Regression, in and of itself, is not a predictive tool.  Unlike GARCH, 
ARIMA, etc, there is not a built-in "prediction" from a regression 
analysis.

The *comparison* of how well the ex post regression result on the 
rolling window compares to the out of sample t+1 performance is your 
(proposed) trading or analytical model.  You would need to write the 
code to do that comparison at the appropriate time lag.

Regards,

    - Brian