フィルターのクリア

Forecasting an ARIMA model

5 ビュー (過去 30 日間)
Mak
Mak 2020 年 4 月 14 日
回答済み: Aman 2024 年 10 月 8 日
Hi,
I am trying to forecast an ARIMA model. I have looked at the forecast function (https://se.mathworks.com/help/econ/arima.forecast.html), but have a question.
In my in-sample I have 108 observations and 72 in out-of-sample. This is my code:
[YF,YMSE] = forecast(EstMdl,72,'Y0',Crash(1:108));
The most common estimation windows are Expanding- and Rolling estimation window. Which estimation window are the "forecast" function using? Are the in-sample constant all the time, or is it dynamic?

回答 (1 件)

Aman
Aman 2024 年 10 月 8 日
Hi @Mak,
The estimation window, I guess, is not inheritant of the function; instead, it depends on how you implement the forecasting process. You can apply the expanding and rolling estimation window in the below manner:
  • In order to implement the expanding window, you continuously need to add new data to your training set as they become available, retraining or updating your model with the entire dataset up to the current time point.
  • In order to implement the rolling window, you need to maintain a fixed-size dataset by removing the oldest data point and adding the newest one, retraining or updating your model with this subset of data.
I hope this clears your doubt :)

カテゴリ

Help Center および File ExchangeConditional Mean Models についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by