Git Product home page Git Product logo

mfm-dev's Introduction

MFM Model Repository

The MFM Model Repository is an ongoing project that aims to assess and include models and frameworks in the macro-financial literature. It also evaluates numerical and computational methods that are essential in solving models.

To download and install the latest version, use the follow command line:

git clone https://github.com/BFI-MFM/mfm-dev.git

You should see directory mfm_dev being created. Run the following at the command line:

cd mfm-dev
git submodule init
git submodule update

After that, start MATLAB and run

set_path_mfm

This will set up the environment for you.

Models

Currently, we have a few models available (Brunnermeier & Sannikov (2014), He & Krishnamurthy (2013), Brock & Mirman (1972), and Klimenko, Pfeil, Rochet, & Nicolo (2016)). As an example, we will show how you can run Brunnermei and Sannikov (2014).

Brunnermeier and Sannikov (2014)

The model is based on A Macroeconomic Model with a Financial Sector. A more detailed instruction file is in the model folder. To compute the equilibrium, run

solve_equilibrium

The model will generate two figures:

  • Figure 1: shows important equilibrium quantities such as q, psi, and drift and volatility of eta.

  • Figure 2: shows expert and household utility within the model.

You can customize the model parameters. Please read the detailed instructions in the model folder.

Tools and Numerical Methods

As of now we have developed tools to compute shock elasticities based on the work by Borovicka and Hansen (2012) and the numerical method to compute Chernoff entropy in Hansen and Sargent (2012). We will use shock elasticities as an example.

Shock Elasticities

Both shock exposure and price elasticities can be computed, along with many auxiliary measures such as the stationary density and term structures, through the toolbox deveoped by Yiran Fan and Paymon Khorrami. As a demo, you can run

demo_BS2014_SEimfd1

It uses the model by Brunnermeier & Sannikov (2014) as an example and computes the shock elasticities and other auxiliary outputs (stationary density, etc.)

The toolbox is versatile and contains many useful functions. For more information, look at the PDF guide.

To Do List

The MFM team is very active in assessing models and developing code based on the macro-financial literature. In the near future, we aim to add

  • More macro-financial models in different programming languages
  • A model comparison framework to diagnose and assess model strengths and weaknesses
  • Tools to measure uncertainty and risk in models
  • High performance computing tools for solving models

mfm-dev's People

Contributors

jhuangsa avatar vzhorin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.