Giter VIP home page Giter VIP logo

yen_for_the_future's Introduction

A Yen for the Future

Yen Photo

Background

The financial departments of large companies often have to make foreign currency transactions when doing international business, while hedge funds are also interested in anything that will provide an edge in predicting currency movements. Hence, both are always eager to gain a better understanding of the future direction and risk of various currencies.

In this assignment, you will test the many time series tools that you have learned in order to predict future movements in the value of the Canadian dollar versus the Japanese yen.

You will gain proficiency in the following tasks:

  1. Time series forecasting
  2. Linear regression modelling

Files

Time-Series Starter Notebook

Linear Regression Starter Notebook

CAD/JPY Data CSV File


Instructions

Time-Series Forecasting

In this notebook, you will load historical CAD-JPY exchange rate data and apply time series analysis and modelling to determine if there is any predictable behaviour.

Follow the steps outlined in the time series starter notebook to complete the following:

  1. Plotting the Settle price to check for long or short-term patterns.

    • Do you see any patterns, long-term and/or short?
  2. Decomposition using a Hodrick-Prescott filter (decompose the settle price into trend and noise).

    • Do you see any patterns, long-term and/or short?
  3. Forecasting returns using an ARMA model.

    • Based on the p-value, is the model a good fit?
  4. Forecasting the exchange rate price using an ARIMA model.

    • What does the model forecast will happen to the Japanese Yen in the near term?
  5. Forecasting volatility with GARCH.

    • What does the model forecast will happen to volatility in the near term?

Use the results of the completed time series analysis and modelling to answer the following questions:

  1. Based on your time series analysis, would you buy the yen now?
  2. Is the risk of the yen expected to increase or decrease?
  3. Based on the model evaluation, would you feel confident in using these models for trading?

Linear Regression Forecasting

In this notebook, you will build a Scikit-Learn linear regression model to predict CAD/JPY returns with lagged CAD/JPY futures returns and categorical calendar seasonal effects (e.g., day-of-week or week-of-year seasonal effects).

Follow the steps outlined in the regression_analysis starter notebook to complete the following:

  1. Data preparation (creating returns and lagged returns, and splitting the data into training and testing data)
  2. Fitting a linear regression model.
  3. Making predictions using the testing data.
  4. Out-of-sample performance.
  5. In-sample performance.

Use the results of the linear regression analysis and modelling to answer the following question:

  • Does this model perform better or worse on out-of-sample data compared to in-sample data?

Hints and Considerations

  • Out-of-sample data is data that the model hasn't seen before (testing data).
  • In-sample data is data that the model was trained on (training data).

yen_for_the_future's People

Contributors

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