| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Econometrics Toolbox |
| Contents | Index |
| Learn more about Econometrics Toolbox |
Use the model from Estimation to compute forecasts for the nasdaq return series 30 days into the future.
Set the forecast horizon to 30 days (one month):
horizon = 30; % Define the forecast horizon
Call the forecasting engine, garchpred, with the estimated model parameters, coeff, the nasdaq returns, and the forecast horizon:
[sigmaForecast,meanForecast,sigmaTotal,meanRMSE] = ...
garchpred(coeff,nasdaq,horizon);This call to garchpred returns the following parameters:
Forecasts of conditional standard deviations of the residuals (sigmaForecast)
Forecasts of the nasdaq returns (meanForecast)
Forecasts of the standard deviations of the cumulative holding period nasdaq returns (sigmaTotal)
Standard errors associated with forecasts of nasdaq returns (meanRMSE)
Because the return series nasdaq is a vector, all garchpred outputs are vectors. Because garchpred uses iterated conditional expectations to successively update forecasts, all of its outputs have 30 rows. The first row stores the 1-period-ahead forecasts, the second row stores the 2-period-ahead forecasts, and so on. Thus, the last row stores the forecasts at the 30-day horizon.

![]() | Estimation | Simulation | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |