Any help how to Backcast ???

조회 수: 3 (최근 30일)
Panty
Panty 2014년 10월 14일
댓글: O.Hubert 2022년 9월 1일
Hi guys,
Does anyone know how to backcast a time-series lets say with an AR(2) model ?? any link or whatever??
Many thanks
  댓글 수: 2
Panty
Panty 2014년 10월 14일
Here is a code I use for forecasting..So I am looking for a way to modify this code so I can conduct backcastings..Do you know If I can modify it?? Many thanks.
row=75;
data(1:row,1)=USActualGDPPotentialsandOutputGapsS1(1:row,1);
mdl=arima(3,0,0);
for ii=0:99;
RecursiveData=data(1:row,1);
mdlEstimate = estimate(mdl,RecursiveData,'print',false);
[Y,YMSE,~] = forecast(mdlEstimate,1,'Y0',RecursiveData);
forecastY(ii+1,1) = Y;
data(row+1,1)= Y;
row=row+1;
end;
O.Hubert
O.Hubert 2022년 9월 1일
A backcast is essentially a forecast backwards.
In that case, simply flip your data with
flipud
and use your code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Preprocess Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by