simple forecast with AR model

Version 1.0.0.0 (1.65 KB) by raffaele
forecast with iterative or direct methods, a general AR(p) model, choosing the best p with AIC algo
906 Downloads
Updated 7 Jul 2015

View License

This function performs a forecast, h-periods-ahead, supposing the process follows an AR process. The best number p of lags is detrmined by the AIC principle, with a simplified formula. Once the best number of lags is determined, the algorithm performs a forecast, choosing an iterative o direct method.
The iterative method performs a first forecast for the next period, then uses this forecast as the last observation of the time series, and perform again a forecast using this last informtion. Simple OLS is used to find parameters of the forecast.
The direct method performs an OLS regression of the variable into its h-th lags, thus it does not uses "new" information, but the variable is regressed directly from its past values.

Cite As

raffaele (2024). simple forecast with AR model (https://www.mathworks.com/matlabcentral/fileexchange/52010-simple-forecast-with-ar-model), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on System Identification Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0