Code Monkey home page Code Monkey logo

time-series-models's Introduction

Time Series Prediction Models

In my journey to explore the vast world of Machine Learning and Deep Learning, I delved into various time series prediction models.

Overview

The primary aim was to understand, implement, and evaluate different models on their capability to forecast time series data, specifically stock prices. The Close price was predominantly chosen as a feature for model building.

📊 What's Inside:

1️⃣ Data Preparation

  • Data contain 'timestamp', 'Open', 'High', 'Low', 'Close', 'Volume' dataframes.
  • Split the data into training and test sets.
  • Scaled the data for smoother model ingestion.

Data Preparation

2️⃣ Prophet Model

  • Conducted parameter tuning using grid search to identify the optimal changepoint and seasonality prior scales.
  • Utilized the best performing parameters for predictions on the test data.

Prophet Model

3️⃣ XGBoost

  • Employed random search over a broad parameter space for hyperparameter optimization.
  • Assessed the model's performance on a hold-out test set.

XGBoost

4️⃣ SARIMA & ARIMA

  • Implemented these classic time series forecasting methods.
  • Benchmarked their performance using metrics like MAE (Mean Absolute Error) and RMSE (Root Mean Squared Error).

5️⃣ Linear Regression

  • Utilized dates as a single feature to predict the 'Close' prices.
  • Analyzed its forecasting power with MAE and RMSE.

SARIMA & ARIMA and LR

Outputs of Performance:

  • 1 Day Data (40 Data):

1 Day Data

  • 12 Hours Data (90 Data):

12 Hours Data

  • 1 Hour Data (1000 Data):

1 Hour Data

📌 Note

The code and methods highlighted above offer a simplified representation of the entire process. The insights gleaned from the results were both fascinating and invaluable in understanding stock price behaviors.

🤝 Let's Connect!

Connect with me on LinkedIn.

For more insights into my work, check out my latest project: tafou.io.

I'm always eager to learn, share, and collaborate. If you have experiences, insights, or thoughts about RL, Prophet, XGBoost, SARIMA, ARIMA, or even simple Linear Regression in the domain of forecasting, please create an issue, drop a comment, or even better, submit a PR!

Let's learn and grow together! 🌱

time-series-models's People

Contributors

tzelalouzeir avatar

Stargazers

小方块 avatar Yasin Yücetaş avatar

Watchers

Kostas Georgiou 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.