필터 지우기
필터 지우기

GARCH Prediction not possible

조회 수: 2 (최근 30일)
Clemens Mueller
Clemens Mueller 2015년 8월 18일
댓글: Clemens Mueller 2015년 8월 18일
Hello everyone,
I have a very small problem that is bothering me in my GARCH estimation/prediction: The estimation part works perfectly, however I encounter a problem when I want to predict/forecast the conditional variance for the next period. Here is part of my code:
Mdl = garch(1,1);
opts = optimset('fmincon');
opts.Algorithm = 'interior-point';
EstMdl = estimate(Mdl,return,'options',opts);
Vf1 = forecast(Mdl,1,'Y0',return);
Now, in the last line of code, I run into the problem... The error message is as follows:
Conditional variance constant must be specified.
Error in Code (line 774)
Vf1 = forecast(Mdl,1,'Y0',return);
But I cannot understand why this problem appears... The returns consist of a vector (60,1) and everything should normally be perfectly fine..
Thank you guys very much already! I appreciate your help a lot!

채택된 답변

Roger Wohlwend
Roger Wohlwend 2015년 8월 18일
You invoke the function forecast with Mdl, which is just a model specification and thus contains no coefficients. You have to use EstMdl instead. That's the estimated model with the coefficients.
Vf1 = forecast(EstMdl,1,'Y0',return);
  댓글 수: 1
Clemens Mueller
Clemens Mueller 2015년 8월 18일
Oh.. Yes, I agree this was a rather stupid mistake. I apologize, but thank you very much for pointing this out to me

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conditional Variance Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by