Giter Site home page Giter Site logo

ituco / stock-price-forecasting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremyjordan/stock-price-forecasting

0.0 1.0 0.0 4.19 MB

An attempt to use natural language processing techniques in order to aid stock price forecasts.

License: GNU General Public License v3.0

Jupyter Notebook 99.16% Python 0.84%

stock-price-forecasting's Introduction

Machine Learning Engineer Nanodegree Capstone Project

Here is my capstone project from the Udacity Machine Learning Nanodegree.

Overview

This project attempts to extract useful signal from the text of public company quarterly earnings transcripts. Although the proposed approach does not prove to be successful, this notebook contains interesting analysis and a few potential developments that could improve this model to a useful (and profitable) level.

For more detailed analysis, read the written report here.

For a short summary:

This project attempts to learn correlations between words used in a quarterly earnings call and stock price movements. The hypothesis was that companies would use different language during their quarterly earnings calls depending on their situation. However, it was found that the words used were largely the same from call to call. The animation below demonstrates this, plotting words used in the x and y axis, and denoted the word importance along the z axis. Each frame represents a quarterly earnings call, spanning from 2006 through 2016.

Data

Stock price

Price data is downloaded from Google Finance using the Pandas DataReader. See notebook to run the command to download all necessary data.

Quarterly earnings call transcripts

Transcripts are scraped from Seeking Alpha using the Python library Scrapy.

To fetch a company transcript, complete the following steps.

cd data/
scrapy crawl transcripts -a symbol=$SYM

This will download all of the posted earnings call transcripts for company SYM and store it as a JSON lines file in data/company_transcripts/SYM.json.

Note: The transcripts provided by Seeking Alpha are protected by copyright and can not be used for commercial interests. However, given the educational nature of this project as part of the Udacity Machine Learning Nanodegree, use of this information is permitted under the Copyright Fair Use principle. This said, data is NOT provided in this repo in order to abide by Seeking Alpha's copyright requests.

Getting started

Create a new Anaconda environment using the command below to ensure your workspace has all necessary dependencies.

conda env create -f requirements/environment.yml

Activate the conda environment.

source activate stock-price-forecasting

Launch the Jupyter notebook.

jupyter notebook

stock-price-forecasting's People

Contributors

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