필터 지우기
필터 지우기

How to use for loop GARCH simulation?

조회 수: 1 (최근 30일)
Adhish Aggarwal
Adhish Aggarwal 2018년 2월 25일
I am trying to simulate GARCH volatility on rolling 90 basis and using that to predict the value.
numOb = 1;
numPath = 500;
price = fts2mat(w); % data
a = zeros(300,2);
ret = tick2ret(price);
for a2 = 91:374
ToEstMdl = garch(1,1);
estmdl = estimate(ToEstMdl,ret(a2-90:a2));
[~,d] = simulate(estmdl,numOb,'NumPaths',numPath);
a(a2,1) = prctile(w(a2)*(1+3*d),0.2);
a(a2,2)= prctile(w(a2)*(1-3*d),0.8);
end

답변 (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