Skip to content
Interactive guide to Auclert, Bardóczy, Rognlie, and Straub (2019): "Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models".
Jupyter Notebook Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Added visualization of DAG for RBC model notebook Jul 31, 2019
figures Added visualization of DAG for RBC model notebook Jul 31, 2019
.gitignore Initial commit! May 15, 2019
README.md Update README.md Jul 26, 2019
asymptotic.py major cleanup and documentation for asymptotic and determinacy Jul 25, 2019
determinacy.py revised krusell-smith notebook, finalized Jul 25, 2019
estimation.py fully updated comments and documentation on all modules except block-… Jul 25, 2019
hank.ipynb final versions and runs of all notebooks Jul 26, 2019
hank.py Cosmetic changes to hank.py. Aug 7, 2019
het_block.py completely overhauled het_jacobian notebook Jul 26, 2019
het_jacobian.ipynb completely overhauled het_jacobian notebook Jul 26, 2019
jacobian.py fixed type checks in jacobian Jul 25, 2019
krusell_smith.ipynb final versions and runs of all notebooks Jul 26, 2019
krusell_smith.py increase too-low default amax in krusell_smith, also increase too-low… Jul 18, 2019
nonlinear.py fully updated comments and documentation on all modules except block-… Jul 25, 2019
rbc.ipynb Added visualization of DAG for RBC model notebook Jul 31, 2019
simple_block.py asymptotics work together with winding criterion and give the exact r… Jul 24, 2019
solved_block.py completed documentation for blocks as well, fixed circular import ari… Jul 25, 2019
two_asset.ipynb final versions and runs of all notebooks Jul 26, 2019
two_asset.py streamlined two_asset and added text Jul 26, 2019
utils.py fully updated comments and documentation on all modules except block-… Jul 25, 2019

README.md

Sequence-Space Jacobian

Interactive guide to Auclert, Bardóczy, Rognlie, Straub (2019): "Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models".

Click here to download all files as a zip. Note: major update on July 26, 2019.

1. Resources

1.1 RBC notebook

Warm-up. Get familiar with solving models in sequence space using our tools. If you don't have Python, just start by reading the html version. If you do, we recommend downloading our code and running the Jupyter notebook directly on your computer.

1.2. Krusell-Smith notebook

The first example. A comprehensive tutorial in the context of a simple, well-known HA model. Shows how to compute the Jacobian both "by hand" and with our automated tools. Also shows how to calculate second moments and the likelihood function.

1.3. One-asset HANK notebook

The second example. Generalizes to a more complex model, with a focus on our automated tools to streamline the workflow. Introduces our winding number criterion for local determinacy.

1.4. Two-asset HANK notebook

The third example. Showcases the workflow for solving a state-of-the-art HANK model where households hold liquid and illiquid assets, and there are sticky prices, sticky wages, and capital adjustment costs on the production side. Introduces the concept of solved blocks.

1.5. HA Jacobian notebook

Inside the black box. A step-by-step examination of our fake news algorithm to compute Jacobians of HA blocks.

2. Setting up Python

To install a full distribution of Python, with all of the packages and tools you will need to run our code, download the latest Python 3 Anaconda distribution. Note: make sure you choose the installer for Python version 3. Once you install Anaconda, you will be able to play with the notebooks we provided. Just open a terminal, change directory to the folder with notebooks, and type jupyter notebook. This will launch the notebook dashboard in your default browser. Click on a notebook to get started.

For more information on Jupyter notebooks, check out the official quick start guide. If you'd like to learn more about Python, the QuantEcon lectures of Tom Sargent and John Stachurski are a great place to start.

You can’t perform that action at this time.