1. Introduction and Methodological Foundations
This practical how-to guide presents the theoretical foundations, structural mathematical equations, detailed breakdown of 3 specialized lessons, and multi-platform replication workflows for 1. Introduction and Methodological Foundations from the textbook Time Series Econometrics for Macroeconomics and Finance, with direct cross-references to the authoritative source material at https://sachktl.tnsai.vn/vi/csipk20u1/c1/.
1. Methodological Foundations, Mathematical Specification, and Identification
Giới thiệu chuỗi thời gian trong kinh tế và tài chính An Introduction to Time Series in Economics and Finance Chào mừng đến với thế giới của dữ liệu động Chào mừng các bạn sinh viên đến với chuỗi bài học về phân tích chuỗi thời gian trong kinh tế và tài chính! Trong thế giới hiện đại, từ giá cổ phiếu biến động từng giây, tỷ lệ lạm phát hàng quý, đến tốc độ tăng trưởng GDP hàng năm, hầu hết dữ liệu kinh tế quan trọng đều được ghi nhận theo dòng thời gian.
1.1. Structural Equations and Representative Estimator
1.2. Core Identification Assumptions and Applicability Conditions
- Time series processes must satisfy covariance stationarity or be differenced to their appropriate order of integration prior to estimation.
- Roots of the autoregressive and moving-average lag polynomials must lie strictly outside the complex unit circle.
- In conditional volatility GARCH specifications, the persistence condition ensures finite unconditional variance.
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 chuỗi thời gian và ứng dụng
Nền tảng chuỗi thời gian và ứng dụng Time series foundations and applications Giới thiệu: Từ ảnh chụp đến thước phim kinh tế Trong bài học mở đầu, chúng ta đã cùng nhau nhận định rằng hầu hết dữ liệu trong kinh tế và tài chính đều mang đặc tính của chuỗi thời gian. Bây giờ, hãy đào sâu hơn vào ý nghĩa thực sự của nó. Hãy tưởng tượng dữ liệu mặt cắt giống như một bức ảnh chụp nhanh, ghi lại thông tin của nhiều đối tượng tại một thời điểm duy nhất – ví dụ, thu nhập của 1000 người trong năm 2023.
Key Methodological Sub-Topics Covered in This Lesson:
-
Giới thiệu: Từ ảnh chụp đến thước phim kinh tế
-
Các khái niệm cốt lõi của chuỗi thời gian
-
Chuỗi thời gian là gì?
-
Các thành phần của một chuỗi thời gian
-
Lộ trình phân tích chuỗi thời gian
-
Ứng dụng thực tiễn trong kinh tế và tài chính
-
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.2. Phân tích chuỗi thời gian kinh tế với stata
Phân tích chuỗi thời gian kinh tế với stata Economic time series analysis with stata Giới thiệu: Từ lý thuyết đến dòng lệnh Tuyệt vời! Trong bài học trước, chúng ta đã cùng nhau xây dựng một nền tảng lý thuyết vững chắc, tìm hiểu về bản chất, các thành phần và lộ trình phân tích một chuỗi thời gian. Các bạn đã biết rằng một chuỗi dữ liệu kinh tế không chỉ là một dãy số, mà là một "thước phim" chứa đựng xu hướng, tính mùa vụ, và cả những biến động ngẫu nhiên.
Key Methodological Sub-Topics Covered in This Lesson:
-
Giới thiệu: Từ lý thuyết đến dòng lệnh
-
Chuẩn bị môi trường và dữ liệu
-
Quy trình phân tích khám phá
-
Hướng dẫn từng bước với Stata
-
Bước 1: Trực quan hóa chuỗi thời gian
-
Bước 2: Phân tách và làm mượt xu hướng
-
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.3. Tổng hợp kiến thức chuỗi thời gian cơ bản
Tổng hợp nền tảng chuỗi thời gian và ứng dụng Synthesizing time series foundations and applications 1. Tổng quan: Dịch chuyển tư duy trong kinh tế lượng Chúng ta đã cùng nhau đi qua những bước đầu tiên trong hành trình khám phá phân tích chuỗi thời gian. Giờ là lúc lùi lại một bước để nhìn vào bức tranh toàn cảnh và hiểu rõ vị trí của chủ đề này trong lĩnh vực kinh tế lượng rộng lớn.
Key Methodological Sub-Topics Covered in This Lesson:
-
1. Tổng quan: Dịch chuyển tư duy trong kinh tế lượng
-
2. Hệ thống lý thuyết: Từ quá trình ngẫu nhiên đến tính dừng
-
3. Hệ thống phương pháp: Quy trình 5 bước khám phá dữ liệu
-
Những cạm bẫy cần tránh
-
4. Ví dụ thực hành tổng hợp: Phân tích chuỗi thất nghiệp
-
5. Tổng kết và hướng phát triển
-
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 and Methodological Foundations. 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 chuỗi thời gian, kiểm định nghiệm đơn vị và ước lượng ARIMA / GARCH
version 18.0
clear all
set more off
import delimited "sachktl_timeseries_finco.csv", clear encoding("utf-8")
tsset time_id
dfuller y, lags(4) trend regress
pperron y, lags(4) trend
* 1. Ước lượng mô hình ARIMA và kiểm định nhiễu trắng phần dư
arima y, arima(1,1,1) vce(robust)
predict resid_arima, resid
wntestq resid_arima, lags(12)
* 2. Ước lượng mô hình phương sai có điều kiện thay đổi ARCH/GARCH(1,1)
arch d.y x1 x2, arch(1) garch(1) vce(robust)
# Nạp thư viện chuỗi thời gian và ước lượng ARIMA / GARCH(1,1)
library(tseries)
library(forecast)
library(rugarch)
df <- read.csv("sachktl_timeseries_finco.csv")
y_ts <- ts(df$y, frequency = 12)
# 1. Kiểm định nghiệm đơn vị ADF và ước lượng ARIMA tối ưu theo AICc
adf.test(y_ts)
fit_arima <- auto.arima(y_ts, seasonal = FALSE, ic = "aicc")
summary(fit_arima)
checkresiduals(fit_arima)
# 2. Ước lượng mô hình GARCH(1,1) cho chuỗi lợi suất
spec <- ugarchspec(variance.model = list(model = "sGARCH", garchOrder = c(1, 1)),
mean.model = list(armaOrder = c(1, 0), include.mean = TRUE))
fit_garch <- ugarchfit(spec = spec, data = diff(y_ts))
show(fit_garch)
# Nạp thư viện statsmodels và arch để phân tích chuỗi thời gian & biến động
import pandas as pd
from statsmodels.tsa.stattools import adfuller
from statsmodels.tsa.arima.model import ARIMA
from arch import arch_model
df = pd.read_csv("sachktl_timeseries_finco.csv")
y = df["y"].dropna()
# 1. Kiểm định nghiệm đơn vị ADF và ước lượng ARIMA(1,1,1)
adf_stat, p_val, *_ = adfuller(y, autolag="AIC")
print(f"ADF Statistic: {adf_stat:.4f}, p-value: {p_val:.4f}")
arima_res = ARIMA(y, order=(1, 1, 1)).fit()
print(arima_res.summary())
# 2. Ước lượng mô hình GARCH(1,1) với phân phối Student-t
ret = y.diff().dropna() * 100
garch_res = arch_model(ret, vol="Garch", p=1, q=1, dist="t").fit(disp="off")
print(garch_res.summary())
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 and Methodological Foundations 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 chuỗi thời gian và ứng dụng | Stata 18 MP | Open Original Lesson on SachKTL |
| 1.2 | Phân tích chuỗi thời gian kinh tế với stata | Stata 18 MP | Open Original Lesson on SachKTL |
| 1.3 | Tổng hợp kiến thức chuỗi thời gian cơ bản | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |