1. Introduction to Econometrics and Statistical Software
This practical how-to guide presents the theoretical foundations, structural mathematical equations, detailed breakdown of 4 specialized lessons, and multi-platform replication workflows for 1. Introduction to Econometrics and Statistical Software from the textbook Econometrics: Theory and Practice, with direct cross-references to the authoritative source material at https://sachktl.tnsai.vn/vi/dsask19u1/c1/.
1. Methodological Foundations, Mathematical Specification, and Identification
Nhập môn Kinh tế lượng và Ứng dụng với Stata Kinh tế lượng, một lĩnh vực học thuật tinh hoa, là sự giao thoa mạnh mẽ giữa lý thuyết kinh tế, toán học và thống kê. Nó không chỉ dừng lại ở việc mô tả các hiện tượng kinh tế một cách định tính, mà còn cung cấp một bộ công cụ mạnh mẽ để lượng hóa, kiểm định và dự báo các mối quan hệ kinh tế phức tạp trong thế giới thực.
1.1. Structural Equations and Representative Estimator
1.2. Core Identification Assumptions and Applicability Conditions
- Correct functional form specification in parameters without omitting relevant covariates correlated with included regressors.
- Zero conditional mean of disturbances , ensuring unbiasedness and asymptotic consistency.
- Full column rank of the design matrix without exact multicollinearity, paired with HC1 or cluster-robust standard errors under heteroskedasticity.
Read the complete theoretical derivations, mathematical proofs, and worked examples for this chapter on SachKTL.
Extract standardized Vietnamese macroeconomic, corporate financial, and household survey data for hands-on replication.
Execute econometric specifications, run diagnostic battery tests, and export APA 7th / AER publication-grade tables automatically.
2. Lesson-by-Lesson Academic Breakdown
2.1. Nền tảng Kinh tế lượng
Chào mừng bạn đến với bài học đầu tiên trong chuỗi bài về Kinh tế lượng ứng dụng. Trong bài giới thiệu tổng quan, chúng ta đã phác thảo bức tranh toàn cảnh về lĩnh vực này như một sự hợp nhất của lý thuyết kinh tế, toán học và thống kê. Bài học hôm nay sẽ là bước đi nền tảng, giúp bạn xây dựng một nền móng vững chắc bằng cách làm rõ những khái niệm cốt lõi nhất. Mục tiêu của chúng ta là trả lời hai câu hỏi cơ bản nhưng vô cùng quan trọng: Kinh tế lượng thực sự là gì?
Key Methodological Sub-Topics Covered in This Lesson:
-
Nền tảng lý thuyết cốt lõi
-
Bản chất của kinh tế lượng
-
Từ mô hình kinh tế đến mô hình kinh tế lượng
-
Tổng kết bài học
-
Analytical Environments:
Stata 18 MP, R 4.x, Python 3.11+· Authoritative Source: Read Full Original Lesson on SachKTL
2.2. Hàm hồi quy tổng thể, hồi quy mẫu
Ở bài học trước, chúng ta đã thiết lập một nguyên lý nền tảng: mô hình kinh tế lượng khác biệt với mô hình kinh tế bởi sự hiện diện của thành phần sai số ngẫu nhiên, yếu tố biến một mối quan hệ tất định thành một mối quan hệ ngẫu nhiên. Bài học này sẽ đào sâu hơn vào hệ quả của nguyên lý đó. Nếu mối quan hệ là ngẫu nhiên, làm thế nào chúng ta có thể mô tả nó một cách chính xác? Và quan trọng hơn, làm thế nào chúng ta có thể ước lượng được nó từ dữ liệu thực tế mà chúng ta có trong tay?
Key Methodological Sub-Topics Covered in This Lesson:
-
Nền tảng lý thuyết
-
Hàm hồi quy tổng thể
-
Hàm hồi quy mẫu
-
Mô hình tham số và phi tham số
-
Phương pháp: Các dạng hàm hồi quy phổ biến
-
1. Mô hình Log-Log
-
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.3. Quy trình xây dựng Mô hình Kinh tế lượng
Trong hai bài học trước, chúng ta đã xây dựng nền tảng lý thuyết vững chắc: từ việc phân biệt mô hình kinh tế và kinh tế lượng, đến việc làm rõ hai khái niệm trụ cột là Hàm Hồi quy Tổng thể và Hàm Hồi quy Mẫu. Chúng ta đã hiểu rằng mục tiêu của mình là sử dụng dữ liệu mẫu để ước lượng một mối quan hệ lý thuyết không thể quan sát. Tuy nhiên, việc đi từ lý thuyết đến kết quả thực nghiệm đòi hỏi một quy trình có hệ thống. Làm thế nào để chúng ta bắt đầu?
Key Methodological Sub-Topics Covered in This Lesson:
-
Quy trình nghiên cứu kinh tế lượng
-
Bốn bước xây dựng mô hình kinh tế lượng
-
Bước 1: Xác định mô hình
-
Bước 2: Ước lượng
-
Bước 3: Kiểm định giả thuyết
-
Bước 4: Dự báo
-
Analytical Environments:
Stata 18 MP, R 4.x, Python 3.11+· Authoritative Source: Read Full Original Lesson on SachKTL
2.4. Dữ liệu - Nền tảng của phân tích kinh tế lượng
Trong suốt ba bài học vừa qua, chúng ta đã cùng nhau xây dựng một bộ khung tư duy hoàn chỉnh về kinh tế lượng: bắt đầu từ việc định nghĩa bản chất của ngành học, phân biệt các loại mô hình, và sau đó là vạch ra một quy trình nghiên cứu khoa học gồm bốn bước. Về mặt lý thuyết và phương pháp luận, chúng ta đã có một tấm bản đồ rõ ràng. Tuy nhiên, một tấm bản đồ sẽ trở nên vô dụng nếu không có lãnh thổ để khám phá, và trong kinh tế lượng, "lãnh thổ" đó chính là dữ liệu.
Key Methodological Sub-Topics Covered in This Lesson:
-
Các loại dữ liệu trong kinh tế lượng
-
1. Dữ liệu chéo
-
2. Dữ liệu chuỗi thời gian
-
Các loại dữ liệu khác
-
Tổng kết bài học
-
Analytical Environments:
Stata 18 MP, R 4.x, Python 3.11+· Authoritative Source: Read Full Original Lesson on SachKTL
3. Step-by-Step Empirical Implementation Workflow
1. Formulate the Research Question and Prepare Data on EcoData & Finco
Define the dependent variable, core explanatory variables, and control covariates aligned with 1. Introduction to Econometrics and Statistical Software. Extract standardized Vietnamese empirical series from EcoData or Finco, and screen for missing observations and extreme outliers.
2. Conduct Descriptive Profiling, Correlation Analysis, and Pre-Estimation Checks
Examine empirical distributions, construct summary statistics tables, and evaluate collinearity using pairwise correlation matrices and Variance Inflation Factors (VIF).
3. Estimate the Model Across Stata 18 MP, R 4.x, and Python 3.11+
Execute the parameter estimation scripts matching the structural equations in Section 1.1 while cross-checking theoretical derivations at SachKTL.
4. Perform Post-Estimation Diagnostics and Robust Variance Correction
Test for heteroskedasticity, serial correlation, Ramsey RESET functional form misspecification, and regressor endogeneity. Apply White HC1 or cluster-robust standard errors for valid inference.
4. Multi-Platform Implementation Scripts in Stata, R, and Python
- Stata 18 MP
- R 4.x
- Python 3.11+
* Thiết lập môi trường, ước lượng mô hình và kiểm định chẩn đoán toàn diện
version 18.0
clear all
set more off
import delimited "sachktl_empirical_ecodata.csv", clear encoding("utf-8")
describe
summarize y x1 x2 x3, detail
* 1. Ước lượng mô hình cơ sở và kiểm định phương sai thay đổi / đa cộng tuyến / dạng hàm
regress y x1 x2 x3
estat hettest
estat imtest, white
estat vif
estat ovtest
* 2. Ước lượng với sai số chuẩn vững White HC1 và xuất tác động biên
regress y c.x1##c.x2 x3, vce(robust)
margins, dydx(x1 x2 x3)
# Nạp thư viện phân tích kinh tế lượng và thực thi kiểm định chẩn đoán
library(tidyverse)
library(lmtest)
library(sandwich)
library(car)
df <- read.csv("sachktl_empirical_ecodata.csv")
summary(df)
# 1. Ước lượng mô hình tuyến tính và kiểm định Breusch-Pagan, RESET, VIF
fit <- lm(y ~ x1 + x2 + x3, data = df)
bptest(fit)
resettest(fit, power = 2:3, type = "fitted")
vif(fit)
# 2. Xuất bảng hệ số ước lượng với sai số chuẩn vững HC1
coeftest(fit, vcov = vcovHC(fit, type = "HC1"))
# Nạp thư viện statsmodels và thực thi ước lượng kèm chẩn đoán phần dư
import pandas as pd
import statsmodels.api as sm
import statsmodels.formula.api as smf
from statsmodels.stats.diagnostic import het_breuschpagan, linear_reset
from statsmodels.stats.outliers_influence import variance_inflation_factor
df = pd.read_csv("sachktl_empirical_ecodata.csv")
# 1. Ước lượng mô hình với sai số chuẩn vững HC1
model = smf.ols("y ~ x1 + x2 + x3", data=df).fit(cov_type="HC1")
print(model.summary())
# 2. Kiểm định phương sai thay đổi Breusch-Pagan, Ramsey RESET và hệ số VIF
bp_lm, bp_pval, _, _ = het_breuschpagan(model.resid, model.model.exog)
reset_res = linear_reset(model, power=2, use_f=True)
X = sm.add_constant(df[["x1", "x2", "x3"]].dropna())
vifs = {col: variance_inflation_factor(X.values, i) for i, col in enumerate(X.columns)}
print(f"Breusch-Pagan p={bp_pval:.4f} | RESET p={reset_res.pvalue:.4f} | VIF={vifs}")
5. Post-Estimation Diagnostic and Interpretation Guide
| Diagnostic Criterion | Null Hypothesis | Benchmark Threshold | Corrective Action When Is Rejected |
|---|---|---|---|
| Heteroskedasticity | Constant error variance | rejects | Apply vce(robust), vcovHC(HC1), or FGLS/WLS weighted estimation |
| Multicollinearity | No severe linear dependence among regressors | acceptable | Drop redundant covariates, center interactions, or apply LASSO/Ridge regularization |
| Ramsey RESET Functional Form | No omitted nonlinear or higher-order terms | retains | Add interaction terms, quadratic polynomials, or log-transform skewed positive variables |
| Regressor Exogeneity | Orthogonality | Durbin-Wu-Hausman | Transition to IV/2SLS, LIML, or GMM estimation with validated instruments |
6. Video Tutorial Walkthrough
Video Tutorial: Practical Walkthrough for 1. Introduction to Econometrics and Statistical Software on SachKTL
7. Complete Lesson Directory and Backlinks to Original SachKTL Articles
| Lesson Code | Lesson Title | Supported Software | Original Source Link on SachKTL |
|---|---|---|---|
| 1.1 | Nền tảng Kinh tế lượng | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |
| 1.2 | Hàm hồi quy tổng thể, hồi quy mẫu | Stata 18 MP | Open Original Lesson on SachKTL |
| 1.3 | Quy trình xây dựng Mô hình Kinh tế lượng | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |
| 1.4 | Dữ liệu - Nền tảng của phân tích kinh tế lượng | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |