12. Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics
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
4specialized methodological parts from12.1to12.4and16empirical model lessons validated on Vietnamese datasets from EcoData and Finco.
Core structural equation for Chapter 12:
12.2. Explore the 4 Methodological Parts in Chapter 12
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Simultaneous Equations and Structural Demand Systems estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Bayesian Econometrics and Bayesian Model Averaging estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Econometric Machine Learning estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Deep Sequence Time-Series Networks estimators.
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
| Section | Econometric Model Lesson Title | Estimator Key | Level | Software Packages Stata · R · Python | Support |
|---|---|---|---|---|---|
| 12.1.1 | 12.1.1. Zellner Seemingly Unrelated Regressions — SUR | sur | L1 | base Stata · systemfit · linearmodels | Available |
| 12.1.2 | 12.1.2. Three-Stage Least Squares Simultaneous System — 3SLS | three_stage_ls | L2 | base Stata · systemfit · linearmodels | Available |
| 12.1.3 | 12.1.3. Dynamic System Generalized Method of Moments | system_gmm | L3 | base Stata · systemfit / gmm · linearmodels | Available |
| 12.1.4 | 12.1.4. Banks-Blundell-Lewbel Quadratic Almost Ideal Demand System | quaids_demand_system | L4 | Stata 18 demandsys · micEconAids · linearmodels | Available |
| 12.2.1 | 12.2.1. Conjugate Bayesian Linear Regression | bayesian_linear | L2 | Stata 18 bayes · MCMCpack / stats · scipy / statsmodels | Available |
| 12.2.2 | 12.2.2. Bayesian Vector Autoregression | bayesian_var | L3 | Stata 18 bayes · BVAR / vars · scipy / statsmodels | Available |
| 12.2.3 | 12.2.3. Bayesian Model Averaging under Zellner g-Prior | bma_model_averaging | L4 | Stata 18 bmaregress · BMS / BAS · statsmodels / numpy | Available |
| 12.3.1 | 12.3.1. Breiman Random Forest Ensemble Regression | random_forest_regressor | L4 | Stata rforest · randomForest · scikit-learn | Available |
| 12.3.2 | 12.3.2. Friedman Gradient Boosting Regression | gradient_boosting_regressor | L4 | Stata boost · gbm · scikit-learn | Available |
| 12.3.3 | 12.3.3. Cross-Validated Support Vector Regression with Partial Effects | svr_econometric | L4 | svmachines · e1071 · scikit-learn | Available |
| 12.3.4 | 12.3.4. Multi-Layer Perceptron Econometric Nonlinear Regressor | mlp_regressor | L4 | Stata Python bridge · nnet · scikit-learn | Available |
| 12.4.1 | 12.4.1. Walk-Forward LSTM Sequence Forecaster with Diebold-Mariano Test | lstm_forecaster | L4 | Stata PyTorch bridge · forecast · torch | Available |
| 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.