Flexible, or just unstable?
HEC Montréal
| 1 | Read the paper | 45–60 min |
| 2 | Get both datasets — the paper’s, and your own angle | 10 min |
| 3 | Attempt the self-check | 15 min |
The lecture assumes all three are done. The practice assumes you have already read both datasets once on your own machine.
Bluwstein, Buckmann, Joseph, Kapadia & Şimşek (2023), Credit growth, the yield curve and financial crisis prediction: evidence from a machine learning approach, Journal of International Economics 145
Read for the argument, not for coverage. Annotate four things:
| 1 | The research question, in one sentence |
| 2 | The method or design, and why they chose it |
| 3 | The strongest single piece of evidence |
| 4 | One limitation you would raise as a referee |
The practice uses two: the paper’s data, to reproduce one of its results, and your own angle, to apply the method. Read both once before you arrive.
a) The paper’s data — the Jordà–Schularick–Taylor Macrohistory Database, on the course site
18 advanced economies, 1870–2020, 88 banking crises, with the paper’s predictors already derived (credit growth, the yield-curve slope, …). Copy this into a file in a folder of your own, and run it:
import pandas as pd
SITE = "https://warint.github.io/quantitative-methods/data/"
# One row per country-year. crisis_next2 = 1 if a banking crisis starts within two years.
jst = pd.read_csv(SITE + "session-08/jst_crises.csv")
print(jst.shape) # (2718, 12)
print(jst["crisis_next2"].value_counts()) # how many country-years have a crisis aheadJordà, Schularick & Taylor (2017), Macrofinancial History and the New Business Cycle Facts, NBER Macroeconomics Annual 2016 · shared under CC BY-NC-SA 4.0, as the publisher’s licence requires.
import pandas as pd
SITE = "https://warint.github.io/quantitative-methods/data/"
core = pd.read_csv(SITE + "core.csv") # shared by every group
mine = pd.read_csv(SITE + "angle_c_country.csv") # REPLACE with your own angle
print(core.shape, mine.shape)angle_c_country is an example, not your angle. Yours is named in RESEARCH-MANDATES.md.
Both blocks printed a shape? Then download the practice script, which does the rest: session08_practice.py — save it in the same folder. You will run it in class; you may read it now.
Answer these on paper. If you cannot, that is what the lecture is for.
By the end of the session you should be able to:
Arrive with: the paper read and annotated · both datasets read once on your machine · session08_practice.py in your folder · your self-check answers on paper.
Session 08 runs in a folder of your own — Desktop/session-08, say — not in the course repository. Open it in VS Codium (File → Open Folder…), then, once, in its terminal:
Your prompt begins with (.venv), and in VS Codium this folder’s .venv is the interpreter (Ctrl/Cmd + Shift + P → Python: Select Interpreter). Every new terminal needs the activate line again.
CERTIFICATE_VERIFY_FAILED on a Mac: run the first macOS line. ModuleNotFoundError: the prompt has no (.venv) — activate, then pip install again.
Session 08: README.md · the lecture: 01-lecture/
MATH60033A · Session 08 pre-session · Thierry Warin, PhD · HEC Montréal