how is YMSE calculated

2 ビュー (過去 30 日間)
jialun chen
jialun chen 2021 年 5 月 21 日
コメント済み: Shashank Gupta 2021 年 5 月 25 日
[YF,YMSE] = forecast(AR_model,step,data)
Could anyone guide me on how is YMSE calculated, I couldn't find any code or algorithm for calculating YMSE?
Thank you!

採用された回答

Shashank Gupta
Shashank Gupta 2021 年 5 月 25 日
Hi,
forecast function explicitly does not return the error matrix, The function forecasts the output of an identified time series model in to some steps into the future. Although you can use compare function and find out the goodness of fit of your predicted model. Alternately you can use your own error matrix to check if the forecast model working as intended.
I hope this helps.
Cheers.
  2 件のコメント
jialun chen
jialun chen 2021 年 5 月 25 日
編集済み: jialun chen 2021 年 5 月 25 日
Thank you for your answer. I am referring to this website. Error variances of forecasted observations (ymse) was calculated by this forecast function. However, I don't understand how he calculated this.
Shashank Gupta
Shashank Gupta 2021 年 5 月 25 日
YMSE - Forecast error variances of future observations
For time-invariant models in which the length of each observation vector (n) is the same, this is a numPeriods-by-n matrix. For time-varying models in which the length of the observation vector changes, this is a numPeriods-by-1 cell array in which each element contains a time-varying n-element vector of forecast error variances associated with the corresponding period.
If you want to know more information for the function, You can access the code simply by
edit forecast

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by