Giter Club home page Giter Club logo

goldman-sachs-stock-prediction's Introduction

Goldman-Sachs-Stock-Prediction

Table of Content

Data

As our model need to train and predict daily, we will use prices of different financial securities as the features of our model. On the other hand, we generated some feature to capture the trends and behaviour of the stock price and performed some natural language processing to obtain investors' opnion towards the market.

Related Stocks Price

We believe that stocks related to Goldman Sachs will affect the price movement of GS. Therefore, we include some of the stocks that is related to Goldman Sachs. We consider which stocks to be included based on 3 different criterion.

    1. Economical Analysis. We examined if the stock is related Goldman Sachs based on some economical reasoning, for example, are they belong to the same industry, do they have to same customer maket.
    1. Statistical Analysis. We calculated the correlation of the stock price and stock return of the related stocks.
    1. Bloomberg Indicator. Bloomberg Intelligence can tell us some of the major competitors of Goldman Sachs. We included those competitors in this category.

Fixed Income Security

We believe that the fixed income market affect the stock market in general significantly. Also, as an investment bank, the business will be greatly affected by any fluctuation in interest rate. Therefore, we include several fixed income securities such as LIBOR, Fed Funds, and some other fixed income ETF.

Global and Local Economy

The overal performance of the economy is a great factor affecting the stock market. Therefore, we include some composite indeces and ETF to reflect the economy. Eg, S&P500, HSI, FTSE, etc.

Technical Indicator of GS

Base on the theory of techinical analysis, the technical indicators can tell us some of the short term and long term trends of the stock price. We include technical indicator in order to capture those trends.

ARIMA of GS

In statistics, ARIMA can predict the stock price reasonably accurately. After some validation of the model, ARIMA model of (2,1,1) is the best model.

Fourier Transform of GS

Like technical indicator, fourier transform can help us capture some short term and long tern trends and behavriour. We include several fourier transforms of GS in our model as features.

Twitter Sentiment of Financial Market

The stock market is also greatly affected by the investors' opinion towards the market. We captured all the tweets from the twitter account @market (https://twitter.com/markets) and used a pretrained natural language processing package TextBlob to analyse the sentiment of the tweets.

Data Streaming

We retrieve all the data above daily from the internet through several different websites/API. It took us a lot of effort. We deployed the code on AWS EC2 instance. The server will save the data to an AWS RDS database daily. https://colab.research.google.com/drive/1dCNxGQMp3ia0LdpBNNp48ROY7hZ0Hsof?usp=sharing

Model

LSTM

We used one layer of LSTM. Performed Xavier initialization and triangular learning rate. Script can be found here. https://colab.research.google.com/drive/1lZEOXqNrxw_Vj2eZSkbyRecn6pSA0Ilk?usp=sharing

Results

Mean Absolute Error : 5.5 and Mean Squared Error : 47.7 train_test test

goldman-sachs-stock-prediction's People

Contributors

heamabc 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.