Docsity

Machine Learning for Macroeconomics, Exams of Artificial Intelligence

Partial preview of the text

Download Machine Learning for Macroeconomics and more Exams Artificial Intelligence in PDF only on Docsity!

Machine Learning for Macroeconomics

Jes´us Fern´andez-Villaverde

and Galo Nu˜no

September 1, 2022

University of Pennsylvania

Banco de Espa˜na

What is machine learning?, I

  • Wide set of algorithms to detect and learn from patterns in the data and use them for decision

making or to forecast future realizations of random variables.

  • Focus on recursive processing of information to improve performance over time.
  • In fact, this is clearer to see in its name in other languages: Apprentissage automatique or

aprendizaje autom´atico.

  • Even in English: Statistical learning.
  • More formally: we use rich data to select appropriate functions in a dense functional space.

What is machine learning?, II

  • Opposition with traditional scientific computation (both standard numerical analysis and Monte

Carlos).

  • Opposition with symbolic reasoning, expert systems, and cognitive model approaches in artificial

intelligence.

  • Think about the example of how to program a computer to play chess.
  • Operational definition of learning (i.e., Turing test and Chinese room).

Data sizes

Y

0

1

2

3

4

5

6

7

8

9

Dataset

size

(number

examples)

Iris

MNIST

Public SVHN

ImageNet

CIFAR-

ImageNet10k

ILSVRC 2014

Sports-1M

Rotated T vs. C

T vs. G vs. F

Criminals

Canadian Hansard

WMT

Figure 1.8: Dataset sizes have increased greatly over time. In the early 1900s, statisticians

studied datasets using hundreds or thousands of manually compiled measurements (Garson

9

Number of transistors

l

l

l l ll l

l l l

l l

l

l l

l

l

l

l

l l

l

l

l

l

l

l

l

l l

l

l

l

l l

l

l l

l l l l

l l

l

ll

l l

l

l l

l

l

l l

l

l l

l l

l l l

l

l

l l

l (^) ll l l^ l

ll lll l l l l l^ l^ l lll

l (^) ll l l ll^ l l ll

l l (^) l l l l l^ l l l l ll

l l

ll

1,

10,

100,

1,000,

10,000,

100,000,

1,000,000,

10,000,000,

1971 1976 1981 1986 1991 1996 2001 2006 2011 2016

Year

Transistors

Relation with other fields

  • Link with computer science, statistical learning, data science, data mining, predictive analytics, and

optimization: frontiers are often fuzzy.

  • Many similarities with econometrics and statistical learning, but emphasis is somewhat different:

1. No unified approach.

2. Practical algorithms vs. theoretical properties (scalability vs. asymptotic properties).

3. Traditional statistical inference is de-emphasized.

4. More interest in forecasting than in causality assertions (cross-validation, regularization).

The many uses of machine learning in macroeconomics

  • Recent boom in economics:

1. New solution methods for economic models: my own work on deep learning.

2. Alternative to older bounded rationality models: reinforcement learning.

3. Data processing: Blumenstock et al. (2017).

4. Alternative empirical models: deep IVs by Hartford et al. (2017) and text analysis.

  • However, important to distinguish signal from noise.
  • Machine learning is a catch-all name for a large family of methods.
  • Some of them are old-fashioned methods in statistics and econometrics presented under alternative

names.

Course outline, I

  • Block 1: Coding Machine Learning Algorithms.
  • Block 2: Challenges Solving Economic Models.
  • Block 3: Introduction to Deep Learning.
  • Block 4: Optimization in Deep Learning.
  • Block 5: Deep Learning for Solving Economic Models.
  • Block 6: Advanced Topics in Deep Learning.
  • Block 7: Symmetry in Dynamic Programming (if time allows).
  • Block 8: Transversality and Stationarity with Deep Learning (if time allows).

References