Skip to content

sanjeet006py/Stock-Analysis

This branch is 43 commits behind Vaibhav/Stock-Analysis:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2abb3d7 · Dec 31, 2017
Feb 20, 2017
Dec 24, 2017
Feb 24, 2017
Jun 15, 2017
Dec 29, 2017
Jun 15, 2017
Jun 15, 2017
Jun 15, 2017
Jun 15, 2017
Apr 15, 2017
Feb 20, 2017
Feb 20, 2017
Jul 10, 2016
Dec 31, 2017
Mar 14, 2017
Jun 15, 2017
Jun 15, 2017
Jun 15, 2017
Jun 15, 2017
Jun 15, 2017

Repository files navigation

Stock Analysis

This repository contains python scripts that I am devleoping to perform analysis on stock prices and visualization of stock prices and other data such as volume.

Some of the goals I want to achieve with this project include:

  • Get the data I need from Yahoo Finance or other API. Able to specify what I need and the time range.
  • Different regression implementations on the close price data. (Linear, SVM, etc.) Possibly try to fit a polynomial function which follows the data.
  • Predicting Stock price for the next day.

Results

Using my code for linear regression and Nvidia's (NVDA) stock prices of each day. I got a slope of 0.1850399032986727 and a y intercept of 24.54867003005582. The 50.08 number is the price predicted for the next day based on the linear formula it calculated.

[0.1850399032986727, 24.54867003005582]
50.0841766853

This is insanely accurate. I decided to compare this result with result's I would get with a widely known API, famous for machine learning and other regression tools in python. The API is called sci-kit-learn.

[ 0.1850399]

Using the linear regression offered from the API We get almost the same result, except with less accuracy.

My method outputs a number with greater significant figures.

###Screenshots

Using my regression model:

Linear Regression performed on NVDA Stock dat from January 2016

Using Sci-kit-learn API:

Linear Regression performed on NVDA Stock dat from January 2016

This barely makes a difference to the naked eye. The two graphs are very similar.

New Screenshots

AEIS

AEIS February 20

FB

Facebook February 20

Trends

Working on a trend lines creator.

trendy

trendy

trendy

trendy

trendy

Version

1.0.0 - Released Stock Scraper

1.0.1 - Minor bug fixes with duplicate entries in the CSV File

Todo

  • Use Machine Learning algorithms to predict stock close price for the next day
  • Add data visualization with technical indicators such as moving average, volume, STOCH.
  • Display technical analysis based on stock prices.
  • Add Ratio Analysis & compare ratio with competitors' ratios. (Allow users to define competitors' ratios)
  • Add Stock screener, to screen through every stock and see which ones are best buys.

License

MIT

Free Software, Hell Yeah!

About

Regression, Scrapers, and Visualization

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%