Code Monkey home page Code Monkey logo

sector-rotation-prediction-python's Introduction

Sector Rotation Prediction with Python

Overview

This project develops a predictive model for sector rotation using high-frequency price data condensed into 30-minute bars to forecast the highest returning sector in the next interval. The sectors are defined by averaging the returns of DJIA stocks within each sector.

Target

The model aims to predict one out of five sectors that will yield the highest return in the upcoming 30-minute interval.

Data Transformation

Data is transformed from high-frequency price data to 30-minute bars, then to returns.

Alternate Data

The project also considers alternate data such as GDP, Jobs, and SPDR ETF Daily Returns as part of the features (X).

Challenges

The project addresses challenges such as insufficient granularity of external data and potential data leakage.

Models Used

Random Forest LSTM XGBoost

Current Status

The current models show poor performance (F1/AUC scores), with results not significantly better than chance. Future improvements may include careful data shifting and inclusion of alternate data to enhance predictions.

Notes

Data leakage is a concern; care is taken to not pair future X data with the wrong Y. Predictions are shifted accordingly to ensure we are forecasting a future winning sector (Y).

Contribution

This project is part of a group effort, and contributions are welcome to improve the model's predictive capabilities.

sector-rotation-prediction-python's People

Contributors

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