6.2. Univariate Time Series Forecasting
Methodological Part 6.2. Univariate Time Series Forecasting in 6. Univariate, Nonlinear, Structural Break and Bubble Time Series provides step-by-step How-To implementation guides for 8 econometric model lessons spanning from Section 6.2.1 to 6.2.8. Full theoretical derivations are available at VietLOD Part 6.2 alongside cloud execution on EcoLab.
Video Tutorial: How-To Guide for Part 6.2: Univariate Time Series Forecasting in Stata 18, R 4.x, and Python 3.11+
6.2.1. Methodological Overview and Structural Equations
- Methodological Focus: Provides consistent estimation and robust inference for Univariate Time Series Forecasting specifications within Univariate, Nonlinear, Structural Break and Bubble Time Series.
- Mandatory Post-Estimation Diagnostics: Điều kiện dừng nghiệm đa thức đặc trưng nằm ngoài vòng tròn đơn vị , đồ thị hàm tự tương quan riêng phần PACF cắt cụt sau trễ và kiểm định nhiễu trắng Ljung–Box .
Core structural specification for Part 6.2:
Estimator objective and moment conditions:
6.2.2. Econometric Model Lessons in Part 6.2
Estimates the Autoregressive Time Series — AR specification within the Univariate Time Series Forecasting framework by optimizing the struct...
Estimates the Moving-Average Time Series — MA specification within the Univariate Time Series Forecasting framework by optimizing the struct...
Estimates the Autoregressive Moving-Average — ARMA specification within the Univariate Time Series Forecasting framework by optimizing the s...
Estimates the Autoregressive Integrated Moving-Average — ARIMA specification within the Univariate Time Series Forecasting framework by opti...
Estimates the Seasonal ARIMA Time Series specification within the Univariate Time Series Forecasting framework by optimizing the structural ...
6.2.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+
| Section & Model Title | Estimator Key | Stata 18 MP Syntax | R 4.x Syntax | Python 3.11+ Syntax | Support |
|---|---|---|---|---|---|
| 6.2.1 · Autoregressive Time Series — AR | ar | arima y, ar(1/2) | arima(y, order = c(2, 0, 0)) | AutoReg(y, lags=2).fit() | Available |
| 6.2.2 · Moving-Average Time Series — MA | ma | arima y, ma(1/2) | arima(y, order = c(0, 0, 2)) | ARIMA(y, order=(0, 0, 2)).fit() | Available |
| 6.2.3 · Autoregressive Moving-Average — ARMA | arma | arima y, arima(1,0,1) | arima(y, order = c(1, 0, 1)) | ARIMA(y, order=(1, 0, 1)).fit() | Available |
| 6.2.4 · Autoregressive Integrated Moving-Average — ARIMA | arima | arima y, arima(1,1,1) | arima(y, order = c(1, 1, 1)) | ARIMA(y, order=(1, 1, 1)).fit() | Available |
| 6.2.5 · Seasonal ARIMA Time Series | sarima | arima y, arima(1,1,1) sarima(1,1,1,12) | arima(y, order = c(1,1,1), seasonal = list(order = c(1,1,1), period = 12)) | SARIMAX(y, order=(1,1,1), seasonal_order=(1,1,1,12)).fit() | Available |
| 6.2.6 · Hildreth Lu Grid Search AR1 Regression | hildreth_lu_ar1 | prais y x1 x2, ssesearch | HoRM::hildreth.lu / prais::prais_winsten | Global rho grid search + Prais-Winsten exact initial observation GLS | Available |
| 6.2.7 · Diebold Mariano Equal Predictive Accuracy Test Model | diebold_mariano_forecast_eval | dmariano y yhat1 yhat2, crit(mse) kernel(bartlett) | forecast::dm.test | Rolling OOS forecast loss differential + HAC HLN-adjusted DM test | Available |
| 6.2.8 · Model Confidence Set Superior Predictive Set Hansen Lunde Nason | model_confidence_set_mcs | regress y x1 x2, vce(robust) | MCS::MCSprocedure | Sequential max-t equivalence elimination MCS algorithm | Available |
6.2.4. Standard Implementation Workflow for Part 6.2
Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco
Download the model-specific .csv practice dataset in Part 6.2 or extract custom empirical panels from EcoData and Finco.
Step 2. Select the Optimal Estimator for Your Error and Sample Structure
Compare the estimators from 6.2.1 to 6.2.8 in the syntax matrix above and execute the estimation in Stata 18 MP, R 4.x, or Python 3.11+.
Step 3. Run Mandatory Diagnostics and Export Publication Tables on EcoLab
Verify all required diagnostics including Điều kiện dừng nghiệm đa thức đặc trưng nằm ngoài vòng tròn đơn vị , đồ thị hàm tự tương quan riêng phần PACF cắt cụt sau trễ và kiểm định nhiễu trắng Ljung–Box and dispatch the specification to EcoLab for automated journal-grade reporting.