Skip to content
Switch branches/tags
Go to file


Failed to load latest commit information.
Latest commit message
Commit time
Dec 17, 2019
Dec 17, 2019
Dec 17, 2019

Cocco, Gomes, & Maenhout (2005), "Consumption and Portfolio Choice Over the Life Cycle"

A replication by Mateo Velásquez-Giraldo and Matthew Zahn.

Quick launch: the following link launches a Jupyter notebook with the main results. Binder


This repository corresponds to the Final assignment of the course Advanced Macroeconomics I at Johns Hopkins University, by Professor Christopher D. Carroll.

We upload our entire work environment to show we replicated the framework exemplified by the Buffer Stock Theory paper to our best ability, as required. However, most users will find all the materials relevant to them in the folder CGMPort-Shared (or CGMPort-Public).

Location of main files:

  1. A notebook attempting to replicate the paper's main results using HARK can be found at CGMPort-Public/Code/Python/CGM_REMARK.ipynb.

  2. A document going into more detail on our attempt to replicate can be found at CGMPort-Public/CGMPort.pdf.

  3. The code that generates all the figures and results in the previous document can be found at CGMPort-Public/Code/Python. Files can be run independently, or all at once through the script CGMPort-Public/Code/Python/do_ALL.

  4. The original Fortran 90 code made available by the authors can be found in CGMPort-Public/Code/Fortran.

  5. A bash script that produces all the results and generates all the documents can be found in CGMPort-make/

Package requirements

The following packages are required for executing the REMARK notebook:

  • matplotlib
  • numpy
  • scipy
  • pandas
  • econ-ark >= 0.10.3

For executing additional requirements are:

  • seaborn


No description, website, or topics provided.



No releases published


No packages published