Time Series Analysis With MATLAB and Econometrics Toolbox
Time Series Analysis With MATLAB and Econometrics Toolbox
Import data
Transform data
Select models
First-Order Differencing
dy = diff(y);
∆𝑦𝑡= 𝑦𝑡− 𝑦𝑡−1
Detrending
y = detrend(y);
Model Comparisons
Akaike or Bayesian Information Criteria
Learn more: mathworks.com/help/econ
[aic,bic] = aicbic(logL,numParam,numObs);
mathworks.com
Specification Tests Conditional Mean Models
ARMA, ARIMA, and ARIMAX
Stationarity
Create Models
[h,pValue] = testName(y);
Mdl = arima(p,D,q);
adftest Augmented Dickey-Fuller test
kpsstest KPSS test for stationarity Estimate/Fit
Correlation
Ljung-Box Q-Test for autocorrelation
[h,pValue] = lbqtest(residual);
Estimate / Fit
[EstMdl,EstParamCov,logL,info] = estimate(Mdl,Y);
Simulate Forecast
[V,Y] = V =
simulate(EstMdl,numObs); forecast(EstMdl,numperiods,Y0);
Forecast
[Y,YMSE] = forecast(EstMdl,numperiods,Y0);
mathworks.com
© 2019 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See mathworks.com/trademarks for a list of additional trademarks.
Other product or brand names may be trademarks or registered trademarks of their respective holders.