Skip to main content

6.2. Univariate Time Series Forecasting

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

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ị ∣λi∣<1|\lambda_i| \lt 1, đồ thị hàm tự tương quan riêng phần PACF cắt cụt sau trễ pp và kiểm định nhiễu trắng Ljung–Box QQ.

Core structural specification for Part 6.2:

Yt=c+∑j=1pϕjYt−j+εtY_t = c + \sum_{j=1}^p \phi_j Y_{t-j} + \varepsilon_t

Estimator objective and moment conditions:

θ^T=arg⁡max⁡θ∈ΘℓT(Y1,…,YT;θ),Φ(L)(1−L)dYt=μ+Θ(L)εt\hat{\theta}_T = \arg\max_{\theta \in \Theta} \ell_T\left(Y_1, \dots, Y_T; \theta\right), \quad \Phi(L)(1-L)^d Y_t = \mu + \Theta(L)\varepsilon_t
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 6.2, researchers should transition to the extended methodological parts in Chapter 6 or apply appropriate instrumental-variable and cluster-robust corrections.

6.2.2. Econometric Model Lessons in Part 6.2​

6.2.1 · ar
6.2.1. Autoregressive Time Series — AR

Estimates the Autoregressive Time Series — AR specification within the Univariate Time Series Forecasting framework by optimizing the struct...

Explore Guide
6.2.2 · ma
6.2.2. Moving-Average Time Series — MA

Estimates the Moving-Average Time Series — MA specification within the Univariate Time Series Forecasting framework by optimizing the struct...

Explore Guide
6.2.3 · arma
6.2.3. Autoregressive Moving-Average — ARMA

Estimates the Autoregressive Moving-Average — ARMA specification within the Univariate Time Series Forecasting framework by optimizing the s...

Explore Guide
6.2.4 · arima
6.2.4. Autoregressive Integrated Moving-Average — ARIMA

Estimates the Autoregressive Integrated Moving-Average — ARIMA specification within the Univariate Time Series Forecasting framework by opti...

Explore Guide
6.2.5 · sarima
6.2.5. Seasonal ARIMA Time Series

Estimates the Seasonal ARIMA Time Series specification within the Univariate Time Series Forecasting framework by optimizing the structural ...

Explore Guide

6.2.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+​

Section & Model TitleEstimator KeyStata 18 MP SyntaxR 4.x SyntaxPython 3.11+ SyntaxSupport
6.2.1 · Autoregressive Time Series — ARararima y, ar(1/2)arima(y, order = c(2, 0, 0))AutoReg(y, lags=2).fit()Available
6.2.2 · Moving-Average Time Series — MAmaarima 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 — ARMAarmaarima 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 — ARIMAarimaarima 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 Seriessarimaarima 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ị ∣λi∣<1|\lambda_i| \lt 1, đồ thị hàm tự tương quan riêng phần PACF cắt cụt sau trễ pp và kiểm định nhiễu trắng Ljung–Box QQ and dispatch the specification to EcoLab for automated journal-grade reporting.