Code Monkey home page Code Monkey logo

fx_forecasting_model's Introduction

Foreign Exchange Forecasting Model (for the paper): Can Interest Rate Factors Explain Exchange Rate Fluctuations?

The level, slope, and curvature of the yield curve are known predictors of excess bond returns and economic activity, reflecting time variation in investors’ risk premia. In this paper, I develop a term structure model under complete markets and no arbitrage that describes exchange rate fluctuations as a function of these interest rate factors. The Gaussian properties of the stochastic discount factors imply non-linearities in exchange rate risk premia that can account for up to half of the in-sample variation in one-year currency returns for different country pairs during the 1980s–2016 period. Interest rate factors can help explain exchange rate fluctuations in and out of sample, particularly at longer horizons, and yield profitable currency portfolios relative to standard carry trade strategies.

Understanding the Code Files

  • main.py contains the code for foreign exchange forecasting model.
  • data folder contains all the data files required for running the forecasting model.
  • imports.py contains imports of all python packages necessary for running the foreign exchange forecasting model code.

More Info

  • This code reproduces the out-of-sample forecasting exercise in Section 7, following Equation (B.37) derived in the Online Appendix.
  • If you use the code, please cite the paper as follows: Yung, J., 2021. Can interest rate factors explain exchange rate fluctuations? Journal of Empirical Finance 61, 34-56.

fx_forecasting_model's People

Contributors

asaficontact avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.