Econometrics計量經濟學

Preface前言

Econometrics is the set of methods economists use to learn from data: to measure how much one thing changes with another, and to judge how far that measurement can be trusted. Its central tool is regression, and most of this course is about understanding regression properly.

計量經濟學是經濟學家從數據中學習的一套方法:量度一件事情隨另一件事情改變多少,並判斷這個量度有多可信。它的核心工具是回歸分析,這門課大部分內容都是為了真正理解回歸。

These notes follow a one-semester introductory course, week by week. Each page states the model, derives the estimator step by step, and works through a real dataset. Wherever a lecture says “after some algebra”, the algebra is written out, in a section you can expand when you want it.

這套筆記按一個學期的入門課程逐週編寫。每一頁先寫出模型,再逐步推導估計量,然後用真實數據演示。凡是講義寫「經過一些代數運算」的地方,這裏都會把運算完整寫出,放在可以展開的段落中,需要時才打開。

You will need some linear algebra and probability: matrices, expectations, variances and conditional expectations. Weeks 1 and 2 review these. Code is given in R and Python, and every number on these pages can be reproduced from public data.

閱讀前需要一些線性代數和概率論基礎:矩陣、期望值、方差和條件期望。第 1 週和第 2 週會重溫這些內容。程式碼提供 R 和 Python 兩個版本,頁面上的所有數字都可以用公開數據重現。