GithubHelp home page GithubHelp logo

cgmportfolio's Introduction

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

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

Description

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

Location of main files:

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

  2. A document going into more detail on our attempt to replicate can be found at CGMPortfolio.pdf.

  3. The code that generates all the figures and results in the previous document can be found at Code/Python. Files can be run independently, or all at once through the script ./do_ALL.py. Additional files ./do_MIN.py and ./do_MID.py are made available to execute subsets of the results.

  • ./do_MIN.py: solves the baseline model plotting its policy functions, and presents mean simulated life-cycle behavior of variables of interest. Runtime: ~400 seconds.
  • ./do_MID.py: additionally compares the policy functions obtained with HARK with those that we obtain from executing the authors' FORTRAN 90 code. Runtime: ~600 seconds.
  • ./do_ALL.py: additionally computes all the results from the apendices, in which we alter the baseline model in HARK to cases in which analytical solutions are available. Runtime: ~1300 seconds.

Note: runtimes are estimated using an Intel Core i7-6700HQ CPU @ 2.60GHz.

  1. The original Fortran 90 code made available by the authors can be found in Code/Fortran.

Package requirements

The following packages are required for executing the REMARK notebook:

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

For executing do_ALL.py additional requirements are:

  • seaborn

cgmportfolio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cgmportfolio's Issues

no release tag

there is no release tag for a version of this repo that meets the REMARK requirements

fix #5 first

.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.