Lecture Slides

© Zhigang Feng — shared for personal study. Every deck is free to download; no password needed. Each page carries a copyright watermark. Please do not redistribute, repost, or mirror them without permission, and cite the source if you build on them.

Thirteen decks covering the twelve topics — 1,033 slides in total. The syllabus says what each topic covers and which lab goes with it, and most topics were also taught on camera: where a recording exists, it is linked beside the deck.

Reading order

Topics 1–4 build the foundation (what AI is good for, what quantitative macro needs, Python/PyTorch, core numerical methods). Topics 5–6 add machine learning and apply it to macro models. Topics 7–10 are the classical core — dynamic programming, accuracy, perturbation and projection, parallel computing. Topics 11–12 put it together on heterogeneous-agent and OLG models. Topic 3A is a standalone session on AI-assisted coding and can be read at any point.

Topic 1 — Artificial Intelligence for Economics Research Available

The paradigm shift from coder to Research Architect; the evolution of AI; where it helps economic research and where human judgment stays essential.

92 slides Download PDF ▶ Recording

Topic 2 — Introduction to Computation for Macroeconomists Available

What quantitative macro is; the workhorse models; the theory behind computing the optimal growth model; which numerical techniques you will need.

45 slides Download PDF ▶ Recording

Topic 3 — Programming Basics for Economists Available

Python and PyTorch from the ground up: data types, functions and classes, control flow, NumPy, and working with an AI assistant on numerical code.

90 slides Download PDF ▶ Recording (2025)

Topic 3A — AI Coding for Dynamic Equilibrium Models Available

A practical Research Architect workflow: separate algorithm design from implementation, iterate Design → Implement → Validate → Extend, and organize a project with CLAUDE.md, skills, agents and rules. Pairs with the starter project.

83 slides Download PDF ▶ Recording

Topic 4 — Numerical Methods for Macroeconomists Available

Function approximation, optimization, root-finding, interpolation, differentiation and quadrature; discretizing AR(1) shocks with Tauchen and Rouwenhorst.

78 slides Download PDF ▶ Recording 1 ▶ Recording 2

Topic 5 — Introduction to Machine Learning for Economists Available

PyTorch for economists — tensors, autograd, torch.nn, training loops; deep learning fundamentals; custom losses that encode economic constraints.

98 slides Download PDF ▶ Recording

Topic 6 — Solving Macroeconomic Models Using Machine Learning Available

Value-function approaches (deep VFI, actor-critic) and Euler-equation approaches (residual minimization as supervised learning), with the accuracy and scalability trade-offs against classical methods.

67 slides Download PDF ▶ Recording 1 ▶ Recording 2

Topic 7 — Numerical Solution Methods for Dynamic Models Available

Discrete-time dynamic programming, the contraction mapping theorem, value function iteration with its grid and interpolation choices, and time iteration on Euler equations.

58 slides Download PDF ▶ Recording

Topic 8 — Advanced Numerical Methods and Accuracy Assessment Available

Howard's policy improvement, MacQueen-Porteus bounds, the endogenous grid method, and how to tell whether a solution is actually right — Euler equation errors and Den Haan-Marcet statistics.

61 slides Download PDF ▶ Recording

Topic 9 — Perturbation and Projection Methods Available

Perturbation around the steady state (first and second order, Blanchard-Kahn, pruning) and global projection methods (Chebyshev, Smolyak, finite elements, collocation versus Galerkin) — and when each is the right tool.

133 slides Download PDF ▶ Recording

Topic 10 — High-Performance and Parallel Computing Available

New to the site. Serial versus parallel computing, Amdahl's law and scaling, MPI with mpi4py, PyTorch DataParallel and DDP, and running jobs on an HPC cluster under SLURM.

33 slides Download PDF

Topic 11 — Heterogeneous Agents Models with Machine Learning Available

Aiyagari-Bewley-Huggett foundations and the canonical stationary pipeline, then Krusell-Smith with modern methods — DeepHAM's value/policy networks against DEQN's Euler-residual training, and what each buys you.

122 slides Download PDF ▶ Recording +3 more sessions

Topic 12 — Heterogeneous-Agent OLG Models Available

New to the site. Life-cycle models two ways: classical nested fixed point with backward induction and a transition-matrix distribution, then a neural network with an embedded market-clearing layer, Fisher-Burmeister constraints and homotopy training for stability.

73 slides Download PDF

Looking for language models, RAG, or agentic AI?

Those topics used to sit at the end of this syllabus and now have a course of their own: AI for Economic Research: Dynamic Models, Language, and Agents. See the retired topics page for where each one went.