Giter VIP home page Giter VIP logo

10_japanese_yen_returns_volatility_forecast_time_series's Introduction

week10_time_series_project

  • This project forecasts the returns of Japanese Yen via Auto Regressive Moving Average (ARMA), Auto Regressive Integrated Moving Average (ARIMA) and Linear Rgression. Also th volatility of the Yen is projected via Generalized AutoRegressive Conditioal Heteroskedasticity (GARCH)

Libraries/Technologies used

  • arch
  • numpy
  • pandas
  • pathlib
  • matplotlib
  • statsmodels.api
  • statsmodels.tsa.arima_model
  • sklearn.linear_model
  • sklearn.metrics

Tools used

  • Github
  • Gitbash
  • Gitlab
  • Slack
  • Jupyter lab
  • Microsoft CSV

Data Given

  • Historical prices of Japanese Yen from 1976

Notebooks created

  • time_series_analysis: ARMA, ARIMA, GARCH forecasts
  • regression_analysis: Linear Regression

Metrics calcuated

  • Trend and noise, using Hodrick Prescott filter
  • Percentage change in returns from 1990.
  • Summary of ARMA results
  • Summary of ARIMA results
  • Summary of GARCH results
  • Annualized 5-day volatility forecast

Plots created

  • Yen settle prices from 1990- 2019
  • Yen settle prices vs trend from 2015- 2019.
  • Yen noise (outliers) from 1990- 2019
  • Five-day returns forecast (using ARMA)
  • Five-day prices forecast (using ARIMA)
  • Five-day volatility forecast
  • Actual returns vs Predicted returns (using 2018-2019 as test data)

Training and Test data

  • Training (In-sample): 1990-2017
  • Test (Out-of-sample): 2018-2019

Interpretation of plots

  • (For a detailed description, refer to the respective Jupyter notebooks)
  • The settle price plot does not exhibit a predictable pattern
  • The settle price from 2015- 2019 most closely resembles the trend
  • For both the ARMA and ARIMA plots, the p-values are greater than 0.05, indicating that the models are not a good fit.
  • For the GARCH model, all p-values except one, are less than 0.05, indicating a potential good fit.
  • From the regression analysis, the Root Mean Squared Error of the in-sample data is greater than the out-of sample data, signifying that the training data is an overfit.

Conclusion

  • Based on the analysis, Yen is not a worthy investment
  • The risk of the Yen is expected to increase
  • The model cannot be used for trading. A Partial Auto Correlation Function (PACF) graph needs to be plotted to determine how many lags have an influence on the other days. Subsequently, the ARIMA needs to be re-run via different values of 'p' (trail and error) to find a reliable model.
  • A better way of projecting returns could be to alternatively assign 3 months of data for training and 1 month of data for testing, for the period in consideration.

Contributors

  • Satheesh Narasimman

People who helped

  • Khaled Karman, Bootcamp personal tutor

References

10_japanese_yen_returns_volatility_forecast_time_series's People

Contributors

satheeshnarasimman avatar

Watchers

 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.