alicevillar / stock_market_prediction_lstm

Deep Learning model with LSTM to predict the future behavior of Petrobras stock prices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stock market prediction using LSTM

Python deep learning model with Keras Long Short-Term Memory (LSTM) to predict the future behavior of Petrobras stock prices.

The purpose of this project was to get started forecasting time series with LSTM models. Based on the historical daily prices of Petrobras stocks from 2012 to 2018, the model predicts the opening prices of 2019. I still have to create different versions and improve the results.

Currently in progress ! 💻

Table of Contents

1. Overview

In this project I use Keras Long Short-Term Memory (LSTM) Model to Predict Petrobras Stock Prices. LSTMs are very powerful in sequence prediction problems because they're able to store past information. This is important here because the previous price of a stock is crucial in predicting its future price. Stock market data is a great choice for this kind of study because it’s quite regular and widely available to everyone.

2. Quick Start

Checkout a static version of the notebook with Jupyter NBViewer from the comfort of your web browser.

3. What is LSTM and how it works

Long Short-Term Memory (LSTM) networks are a type of recurrent neural network capable of learning order dependence in sequence prediction problems. LSTMs have feedback connections, which enables it to process entire sequences of data (e.g. time series). Rather than treating each point in the sequence independently, LSTMs retains useful information about previous data in the sequence to help with the processing of new data points. As a result, LSTMs are particularly good at processing sequences of data such as text, speech and general time-series.

4. Dataset

For this project I used the Yahoo Finance for the historical daily prices of Petrobras stocks.

  • Training dataset: historical daily prices of Petrobras stocks from 2012 to 2018
  • Test dataset: historical daily prices of Petrobras stocks of 2019

5. Approach

  • PART 1: Data Handling -> Importing Data with Pandas, Cleaning Data, Data description.
  • PART 2: Data Analysis -> Supervised ML Technique: LSTM algorithm
  • PART 3: Valuation of the Analysis -> Plotting results

6. Dependencies

7. Results

print

8. Useful

About

Deep Learning model with LSTM to predict the future behavior of Petrobras stock prices


Languages

Language:Jupyter Notebook 100.0%