Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Notebooks

Johns Hopkins University

This directory contains MyST Markdown computational notebooks that serve as companions to the lecture slides. Each notebook provides detailed derivations, Python implementations, and exercises.

Contents

FileTopic
consumption_two_period.mdThe Fisher two-period consumption problem, CRRA utility, Fisherian separation, and the labor supply puzzle
olg_extra.mdThe Diamond OLG model: competitive equilibrium, social planner, Golden Rule, and dynamic efficiency
envelope_crra.mdThe envelope condition, multiperiod Euler equation, and the perfect foresight CRRA consumption model
random_walk_cons_fn.mdHall’s random walk proposition, the permanent income hypothesis, and MPCs out of permanent vs transitory shocks
advanced_consumption.mdHabit formation, durable goods, and quasi-hyperbolic discounting (Laibson)
risk_and_consumption.mdCRRA with risky returns, CARA with income risk, and Campbell-Mankiw time-varying interest rates
investment_qmodel.mdFirm dynamic optimization under convex adjustment costs, derivation of the investment Euler equation, and numerical solutions to the Abel-Hayashi marginal qq model

Libraries

The notebooks demonstrate the use of:

Running the Notebooks

See the Getting Started section in the root README for initial setup.

To build the notebooks:

uv run myst build --execute

To run interactively in JupyterLab:

uv run jupyter lab

Then right-click any .md file and select Open With > Notebook.