Documentation Center

  • Trial Software
  • Product Updates

Forecast a Conditional Variance Model

This example shows how to forecast a conditional variance model using forecast.

Step 1. Load the data and specify the model.

Load the Deutschmark/British pound foreign exchange rate data included with the toolbox, and convert to returns. Specify and fit a GARCH(1,1) model.

load Data_MarkPound
r = price2ret(Data);
N = length(r);
model = garch(1,1);
fit = estimate(model,r);

Step 2. Generate MMSE forecasts.

Use the fitted model to generate MMSE forecasts over a 200-period horizon. Use the observed return series as presample data. By default, forecast infers the corresponding presample conditional variances. Compare the asymptote of the variance forecast to the theoretical unconditional variance of the GARCH(1,1) model.

V = forecast(fit,200,'Y0',r);
sig2 = fit.Constant/(1-fit.GARCH{1}-fit.ARCH{1});

hold on
title('Forecast Conditional Variance')
hold off

The MMSE forecasts converge to the theoretical unconditional variance after about 160 steps.

See Also

| |

Related Examples

More About

Was this topic helpful?