rolling window forecast

版本 1.0.0.0 (2.0 KB) 作者: raffaele
choose the best forecast of an AR(p) model, by comparing all AR(p) forecast with realized values
411.0 次下载
更新时间 2015/7/7

查看许可证

This function split the time series into rolling windows. Then, for each of these rolling windows, the algorithm analyzes some AR(p) processes. Then it produces a forecast for each of these processes and for each of the rolling windows. These forecast are compared with the realized values of the time series, and then the function looks for the "best" p-order. This "best" p is chosen by minimizing the quadratic loss function, that is, the squared difference between the forecast and the realized values. the model with smallest quadratic loss function is the best selected, and the it is performed a direct forecast in order to produce the final forecast.
Minimizing the quadratic loss function means that the best model is the one with less distance from the observed values.

引用格式

raffaele (2024). rolling window forecast (https://www.mathworks.com/matlabcentral/fileexchange/52011-rolling-window-forecast), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0