Giter Site home page Giter Site logo

flopes045 / eda-and-price-prediction-of-sp500-companies Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.47 MB

Visualization of fundamentals from S&P 500 companies and prediction of their stock prices.

Jupyter Notebook 100.00%
financial-analysis sp500 stock-price-prediction

eda-and-price-prediction-of-sp500-companies's Introduction

EDA-and-Price-Prediction-of-SP500-Companies

This project falls within the domain of financial economics and makes use of stock price and fundamentals. We will explore fundamental data of all S&P 500 companies through a set of visualizations carried out using Seaborn and Matplotlib. Additionally, we are going to predict the prices of each stock using the economic and financial factors discussed as independent variables (also known as features). Here, we will use two regression methods - Linear Regression and XGBoost as an ensemble learning algorithm - and compare its predictions perfomance.

Contents

File Description
README.md This README file.
S&P 500 - EDA and Price Prediction.ipynb Python Notebook.
S&P500_FundamentalData.csv S&P 500 stock data.

Requirement

pandas
matplotlib
seaborn
numpy
statsmodels.api
scipy.stats
sklearn
xgboost
tabulate

Data

For this project I extracted some fundamental data for all the companies that comprise the S&P 500 from Barchart (https://www.barchart.com/). List of variables that constitute the dataset (including both qualitative and quantitative data):

  • Ticker
  • Company
  • Sector
  • Industry
  • Market Capitalization
  • Price
  • 52 Week High
  • 52 Week Low
  • Dividend Yield
  • Price/Sales (P/S)
  • Price/Book (P/B)
  • Price/Earnings (P/E)
  • Earnings per share (EPS)
  • Return on Assets (ROA)
  • Return on Equity (ROE)
  • 5y Revenue Growth
  • 1y Implied Volatility

eda-and-price-prediction-of-sp500-companies's People

Contributors

flopes045 avatar

Stargazers

 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.