Jupyter Notebook examples of the ConSav package
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BufferStockModel
DurableConsumptionModel
Numba and C++
Tools
.gitignore
LICENSE
README.md

README.md

Contains Jupyter Notebooks showcasing the ConSav package.

Getting Started

The main tool in the ConSav package is the ConsumptionSavingModel class with predefined methods for e.g. saving and loading. Each concrete model inherits these methods and then adds methods for e.g. solving and simulating. The simplest example is the canonical buffer-stock consumption model, see the BufferStockModel notebook.

The DurableConsumptioModel notebook contains more advanced examples. Specifically, it implements the solution methods proposed in A Guide On Solving Non-Convex Consumption-Saving Models. See also the results notebook for this paper.

To get started:

  1. Install the ConSav package (requires git): pip install git+https://github.com/NumEconCopenhagen/ConsumptionSaving
  2. Clone or download this repository
  3. Open your notebook of choice

We recommend running the notebooks in JupyerLab. A set of guides on how to install Python and JupyterLab is available here.

New to Python? Try out this online course, Introduction to programming and numerical analysis.

Overview

The main notebooks are:

  1. Tools/
  2. BufferStockModel/
  3. DurableConsumptionModel/
  4. Numba and C++/