Visually compare forcasted values (ARIMA model) in MATLAB -


i'm new time-series analysis. forecast values based on arima model , plot them against hold out data.

here's have:

% retrieve ibm closing prices c = yahoo; imb_data = fetch(c,'ibm','close','1-sept-2014','31-dec-2014'); imb_date = imb_data(:,1); imb_close = imb_data(:,2); % contains 85 data points 

using autocorr , parcorr, deduce appropriate model should be:

mdl = arima(1,0,0); 

fit model first 60 observations, , reserve remaining 15 observations evaluate forecast performance.

fit_model = estimate(mdl, imb_close(1:60)); 

use fitted model forecast 15-period horizon:

[y, mse] = forecast(fit_model,15,'y0',imb_close(1:60)); 

visually compare forecasts holdout data:

figure plot(imb_date, imb_close,'color',[.7,.7,.7]) datetick hold on plot(61:85,y,'b'); hold off 

the problem forecasted values not being ploted, doing wrong?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -