Skip to Main Content Skip to Search
Product Documentation

Function Reference


Model Specification and Testing
Univariate Time Series Analysis
Multivariate Time Series Analysis
Stochastic Differential Equations (SDE)
Lag Operator Polynomials

Model Specification and Testing

adftestAugmented Dickey-Fuller test
aicbicAkaike and Bayesian information criteria
archtestEngle test for residual heteroscedasticity
autocorrSample autocorrelation
collintestBelsley collinearity diagnostics
corrplotPlot predictor correlations
crosscorrSample cross-correlation
egcitestEngle-Granger cointegration test
i10testPaired integration and stationarity tests
jcitestJohansen cointegration test
jcontest Johansen constraint test
kpsstestKPSS test for stationarity
lbqtestLjung-Box Q-test for residual autocorrelation
lmctestLeybourne-McCabe stationarity test
lmtestLagrange multiplier test of model specification
lratiotestLikelihood ratio test of model specification
parcorrSample partial autocorrelation
pptestPhillips-Perron test for one unit root
recessionplotAdd recession bands to time series plot
vratiotestVariance ratio test for random walk
waldtestWald test of model specification

Univariate Time Series Analysis

Data Filtering
ARMAX/GARCH Specification
ARMAX/GARCH Modeling
ARMAX/GARCH Utilities

Data Filtering

hpfilterHodrick-Prescott filter for trend and cyclical components

ARMAX/GARCH Specification

garchgetGet ARMAX/GARCH model specification parameters
garchsetSet ARMAX/GARCH model specification parameters

ARMAX/GARCH Modeling

garchfitEstimate ARMAX/GARCH model parameters
garchinferInfer ARMAX/GARCH model innovations
garchplotPlot ARMAX/GARCH model responses
garchpredForecast ARMAX/GARCH model responses
garchsimSimulate ARMAX/GARCH model responses

ARMAX/GARCH Utilities

garcharConvert ARMA model to AR model
garchcountCount ARMAX/GARCH model parameters
garchdispDisplay ARMAX/GARCH model parameters and statistics
garchmaConvert ARMA model to MA model
lagmatrixCreate matrix of lagged time series
price2retConvert prices to returns
ret2priceConvert returns to prices

Multivariate Time Series Analysis

VARMAX Specification
VARMAX Modeling
VARMAX Utilities

VARMAX Specification

vgxgetGet VARMAX model specification parameters
vgxsetSet VARMAX model specification parameters

VARMAX Modeling

vgxinferInfer VARMAX model innovations
vgxplotPlot VARMAX model responses
vgxpredForecast VARMAX model responses
vgxprocGenerate VARMAX model responses from innovations
vgxsimSimulate VARMAX model responses
vgxvarxEstimate VARX model parameters

VARMAX Utilities

vartovecVector autoregression (VAR) to vector error-correction model (VEC)
vectovarVector error-correction (VEC) to vector autoregression (VAR)
vgxarConvert VARMA model to VAR model
vgxcountCount VARMAX model parameters
vgxdispDisplay VARMAX model parameters and statistics
vgxloglikVARMAX model loglikelihoods
vgxmaConvert VARMA model to VMA model
vgxqualTest VARMAX model for stability/invertibility

Stochastic Differential Equations (SDE)

General SDE

interpolateBrownian interpolation of stochastic differential equations
sdeCreate SDE model from user-specified functions
simByEulerEuler simulation of stochastic differential equations (SDEs)
simulateSimulate multivariate stochastic differential equations (SDEs)

SDE from Drift and Diffusion Components (SDEDDO)

sdeddoCreate sdeddo model from Drift and Diffusion objects
simByEulerEuler simulation of stochastic differential equations (SDEs)

SDE with Linear Drift (SDELD)

sdeldConstruct stochastic differential equation from linear drift-rate models

SDE with Mean-Reverting Drift (SDEMRD)

sdemrdConstruct stochastic differential equation from mean-reverting drift-rate models

Brownian Motion (BM)

bmBrownian motion models

Geometric Brownian Motion (GBM)

gbmCreate GBM model
simByEulerEuler simulation of stochastic differential equations (SDEs)
simBySolutionSimulate approximate solution of diagonal-drift HWV and GBM processes

Heston Stochastic Volatility (HESTON)

hestonCreate Heston model

Hull-White/Vasicek Gaussian Diffusion (HWV)

hwvCreate HWV model
simBySolutionSimulate approximate solution of diagonal-drift HWV and GBM processes

Cox-Ingersoll-Ross Square Root Diffusion (CIR)

cirCox-Ingersoll-Ross mean-reverting square root diffusion models

Constant Elasticity of Variance (CEV)

cevConstruct constant elasticity of variance models (objects of class CEV)

SDE Component Classes

diffusionConstruct diffusion-rate model components
driftConstruct drift-rate model components

SDE Utilities

ts2funcConvert time series arrays to functions of time and state

Lag Operator Polynomials

filter (LagOp)Apply lag operator polynomial to filter time series
isEqLagOp (LagOp)Determine if two LagOp objects are same mathematical polynomial
isNonZero (LagOp)Find lags associated with nonzero coefficients of LagOp objects
isStable (LagOp)Determine stability of lag operator polynomial
LagOpCreate lag operator polynomial (LagOp) object
minus (LagOp)Lag operator polynomial subtraction
mldivide (LagOp)Lag operator polynomial left division
mrdivide (LagOp)Lag operator polynomial right division
mtimes (LagOp)Lag operator polynomial multiplication
plus (LagOp)Lag operator polynomial addition
reflect (LagOp)Reflect lag operator polynomial coefficients around lag zero
toCellArray (LagOp)Convert lag operator polynomial object to cell array
  


Free Interactive Computational Finance CD

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-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS