Giter VIP home page Giter VIP logo

tenuousbeliefs's Introduction

VAR Estimation

This repository contains code which estimates the empirical model in "Macroeconomic Uncertainty Prices when Beliefs are Tenuous" by Lars Peter Hansen and Thomas J Sargent. Appendix B from that paper outlines the methodology employed in this software.

Getting Started

To copy the code to your machine, you may either download it from the Github website directly or you may clone the repository in read-only mode.

Prerequisites

This project simply requires the Anaconda distribution of Python version 3.x. Additional dependencies and prerequisites are handled automatically in setup.

Installing

Navigate to the folder containing the code and run the setup.sh script by entering

source setup.sh

Press y to proceed with installation when prompted. You will know that setup has been correctly implemented if the word (tenuous) contained in parenthesis appears on the current line of your terminal window.

Running the estimation

To run the code, simply use

python tenuous_estimation.py

This code will print in terminal the estimated 10th, 50th, and 90th percentiles for the data. The results printed as weighted percentiles should be close to the results listed in Appendix B, with variations in random number generation accounting for any differences. The code will also produce a histogram for each of the relevant parameters, showing their distributions.

Authors

Acknowledgments

  • Thanks to Lloyd Han for a preliminary version of this code in Matlab

tenuousbeliefs's People

Contributors

johnrwilson avatar

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.