FUNCTION REFERENCE
forecast
Forecast conditional variances from a volatility model.
The source help has multiple entries for this name. They are preserved below in source order, including differing compatibility notes.
Source entry 1
Forecast responses and integrated psi-weight mean square errors.
Syntax
[Y,YMSE,V] = forecast(m,n,Y0,Name=Value)Example
m = arima(Constant=0,AR=0.5,Variance=1); [y,mse] = forecast(m,3,2)Differences from MATLAB: Numeric series only; lag degrees up to 256 per component and 128 active parameters. Conditional variance objects are not supported yet. An ARIMAX forecast infers E0 from Y0 only when X0 is given; otherwise E0 = 0.
Source entry 2
Forecast conditional variances from a volatility model.
Syntax
v = forecast(m,numPeriods,Y0,V0=v0)GARCH degree P refers to variance lags; Q refers to innovation lags. NaN parameters are estimated, known values stay fixed. Gaussian and standardized Student t innovations are supported.
Example
forecast(garch(Constant=0.1,GARCH=0.7,ARCH=0.2),3,[1;-1;2])Differences from MATLAB: numeric arrays only; degree limited to 128 and estimated parameters to 128. MLE uses the shared native constrained SQP with OPG covariance (see estimate for algorithms and constraints). EGARCH forecasts exponentiate expected log variance and have the documented Jensen bias.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.