Skip to main content

12. Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Chapter 12. Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics provides step-by-step How-To implementation guides for 16 econometric model lessons organized across 4 methodological parts from Section 12.1.1 to 12.4.2. Every guide is synchronized with the full academic lecture at VietLOD Chapter 12 and supports automated cloud execution on EcoLab.

Video Tutorial: How-To Guide for Chapter 12: Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics in Stata 18, R 4.x, and Python 3.11+

12.1. Central Research Question and Core Mathematical Specification​

  • Central Research Question: How to jointly estimate multi-equation structural systems, consumer expenditure shares, Bayesian posterior distributions, and interpretable machine learning models?
  • Chapter Architecture: Encompasses 4 specialized methodological parts from 12.1 to 12.4 and 16 empirical model lessons validated on Vietnamese datasets from EcoData and Finco.

Core structural equation for Chapter 12:

wik=αk+∑j=1Gγkjln⁡pij+βkln⁡[mia(pi)]+λkb(pi){ln⁡[mia(pi)]}2+uikw_{ik} = \alpha_k + \sum_{j=1}^G \gamma_{kj}\ln p_{ij} + \beta_k \ln\left[\frac{m_i}{a(p_i)}\right] + \frac{\lambda_k}{b(p_i)}\left\{\ln\left[\frac{m_i}{a(p_i)}\right]\right\}^2 + u_{ik}
Methodological Scope Boundary:Single-equation estimation ignores cross-equation error correlations and structural budget-share additivity constraints in demand systems. Mandatory diagnostics for this chapter include: Breusch–Pagan Cross-Equation Independence, Slutsky Symmetry & Negativity, Posterior Inclusion Probability (PIP) & Gelman–Rubin R-hat, Out-of-Sample Diebold–Mariano Test.

12.2. Explore the 4 Methodological Parts in Chapter 12​

5 Lessons
12.1. Simultaneous Equations and Structural Demand Systems

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Simultaneous Equations and Structural Demand Systems estimators.

Explore Guide
5 Lessons
12.2. Bayesian Econometrics and Bayesian Model Averaging

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Bayesian Econometrics and Bayesian Model Averaging estimators.

Explore Guide
4 Lessons
12.3. Econometric Machine Learning

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Econometric Machine Learning estimators.

Explore Guide
2 Lessons
12.4. Deep Sequence Time-Series Networks

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Deep Sequence Time-Series Networks estimators.

Explore Guide

12.3. Four-Step Workflow for Selecting and Executing Models in Chapter 12​

Step 1. Select the Appropriate Methodological Part From 12.1 to 12.4

Match your economic hypothesis and sample structure against the identification requirements in Chapter 12 to select the appropriate A.B.C model lesson.

Step 2. Prepare Standardized Datasets From EcoData or Finco

Download the standardized .csv practice file for your target estimator from /src/ecoaz/data/ or extract live empirical series from EcoData and Finco.

Step 3. Estimate Parameters and Run Diagnostics in Stata 18, R 4.x, and Python 3.11+

Execute the tri-engine scripts provided in each model guide and verify the mandatory post-estimation diagnostics: Breusch–Pagan Cross-Equation Independence, Slutsky Symmetry & Negativity, Posterior Inclusion Probability (PIP) & Gelman–Rubin R-hat, Out-of-Sample Diebold–Mariano Test.

Step 4. Verify Three-Software Convergence and Export Publication Tables on EcoLab

Confirm numerical convergence across Stata, R, and Python using the three-panel empirical figure and generate journal-grade tables on EcoLab.

12.4. Complete Directory of 16 Econometric Model Lessons in Chapter 12​

SectionEconometric Model Lesson TitleEstimator KeyLevelSoftware Packages Stata · R · PythonSupport
12.1.112.1.1. Zellner Seemingly Unrelated Regressions — SURsurL1base Stata · systemfit · linearmodelsAvailable
12.1.212.1.2. Three-Stage Least Squares Simultaneous System — 3SLSthree_stage_lsL2base Stata · systemfit · linearmodelsAvailable
12.1.312.1.3. Dynamic System Generalized Method of Momentssystem_gmmL3base Stata · systemfit / gmm · linearmodelsAvailable
12.1.412.1.4. Banks-Blundell-Lewbel Quadratic Almost Ideal Demand Systemquaids_demand_systemL4Stata 18 demandsys · micEconAids · linearmodelsAvailable
12.2.112.2.1. Conjugate Bayesian Linear Regressionbayesian_linearL2Stata 18 bayes · MCMCpack / stats · scipy / statsmodelsAvailable
12.2.212.2.2. Bayesian Vector Autoregressionbayesian_varL3Stata 18 bayes · BVAR / vars · scipy / statsmodelsAvailable
12.2.312.2.3. Bayesian Model Averaging under Zellner g-Priorbma_model_averagingL4Stata 18 bmaregress · BMS / BAS · statsmodels / numpyAvailable
12.3.112.3.1. Breiman Random Forest Ensemble Regressionrandom_forest_regressorL4Stata rforest · randomForest · scikit-learnAvailable
12.3.212.3.2. Friedman Gradient Boosting Regressiongradient_boosting_regressorL4Stata boost · gbm · scikit-learnAvailable
12.3.312.3.3. Cross-Validated Support Vector Regression with Partial Effectssvr_econometricL4svmachines · e1071 · scikit-learnAvailable
12.3.412.3.4. Multi-Layer Perceptron Econometric Nonlinear Regressormlp_regressorL4Stata Python bridge · nnet · scikit-learnAvailable
12.4.112.4.1. Walk-Forward LSTM Sequence Forecaster with Diebold-Mariano Testlstm_forecasterL4Stata PyTorch bridge · forecast · torchAvailable

| 12.1.5 | 12.1.5. Simulated Method of Moments and Indirect Inference McFadden Gourieroux Monfort | simulated_method_of_moments_smm | L4 | gmm · momentfit · scipy | Available | | 12.2.4 | 12.2.4. George McCulloch Stochastic Search Variable Selection and Spike Slab BMA | bayesian_stochastic_search_ssvs | L4 | bmaregress · BoomSpikeSlab · scipy | Available | | 12.2.5 | 12.2.5. Time Varying Parameter State Space Carter Kohn Kalman Smoother | bayesian_state_space_tvp | L4 | sspace · dlm · statsmodels | Available | | 12.4.2 | 12.4.2. Bayesian Additive Regression Trees Chipman George McCulloch | bart_additive_trees | L4 | regress · dbarts · sklearn | Available |

12.5. Key Academic References​

  • Zellner, A.(1962). An efficient method of estimating seemingly unrelated regressions and tests for aggregation bias. Journal of the American Statistical Association, 57, số 298, 348–368.
  • Banks, Blundell, & Lewbel(1997). Econometric specification, identification, and asymptotic inference.
  • Sala-i-Martin, Doppelhofer, & Miller(2004). Econometric specification, identification, and asymptotic inference.
  • Mullainathan, S, & Spiess, J.(2017). Machine learning: An applied econometric approach. Journal of Economic Perspectives, 31, số 2, 87–106.
  • Coulombe et al.(2022). Econometric specification, identification, and asymptotic inference.
  • Greene, W. H.(2019). Econometric Analysis, 8th ed, Chương 10 & 16: Systems of Regression Equations, SUR, 3SLS & Bayesian Econometrics. Pearson.
  • Wooldridge, J. M.(2010). Econometric Analysis of Cross Section and Panel Data, 2nd ed, Chương 7–9: Estimating Systems of Equations by OLS, GLS and GMM. MIT Press.
  • Cameron, A. C, & Trivedi, P. K.(2022). Microeconometrics Using Stata, 2nd ed, Vol. 2, Chương 28 & 30: Machine Learning and Bayesian Methods. Stata Press.
  • Hansen, B. E.(2022). Econometrics, Chương 11, 13 & 29: Multivariate Regression, GMM and Machine Learning. Princeton University Press.