The financial departments of large companies often deal with foreign currency transactions while doing international business. As a result, they are always looking for anything that can help them better understand the future direction and risk of various currencies. Hedge funds, too, are keenly interested in anything that will give them a consistent edge in predicting currency movements.
We will test the many time-series tools in order to predict future movements in the value of the Japanese yen versus the U.S. dollar.
The following tasks will be performed:
- Time Series Forecasting
- Linear Regression Modeling
Use the following starter code:
Note: The starter code shows example calculations and figures to use as a guide.
Linear Regression Starter Notebook
Apply time series analysis and modeling to determine whether there is any predictable behavior from historical Dollar-Yen exchange rate futures data.
Notebook:
- Decomposition using a Hodrick-Prescott Filter (Decompose the Settle price into trend and noise).
- Forecasting Returns using an ARMA Model.
- Forecasting the Settle Price using an ARIMA Model.
- Forecasting Volatility with GARCH.
- Medium-risk, High-risk investors would consider buying to maximize returns.
- The risk is excepted to increase along with volatility.
- The ARIMA and GARCH models produce confident outputs related to probability to use for trading.
Building a Scikit-Learn linear regression model to predict Yen futures ("settle") returns with lagged Yen futures returns and categorical calendar seasonal effects (e.g., day-of-week or week-of-year seasonal effects).
Regression_analysis starter notebook:
- Data Preparation (Creating Returns and Lagged Returns and splitting the data into training and testing data)
- Fitting a Linear Regression Model.
- Making predictions using the testing data.
- Out-of-sample performance.
- In-sample performance.
- The Out-Of-Sample RMSE is lower than the In-sample RMSE.
- Typically the training data is lower but is higher in the data above.