Skip to content

Project to analyse stock data, to find if the President or pandemics can change its price.

License

Notifications You must be signed in to change notification settings

jairNeto/stocks_prices_medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S&P 500 stock market analysis

Table of Contents

  1. Installation
  2. Motivation
  3. Repository Structure
  4. Results
  5. Colab Notebook
  6. Final Considerations

Installation

Create a virtual environment named stock_analysis.

$ python3 -m venv stock_analysis -- for Linux and macOS
$ python -m venv stock_analysis -- for Windows

After that, activate the python virtual environment

$ source stock_analysis/bin/activate -- for Linux and macOS
$ stock_analysis\Scripts\activate -- for Windows

Install the requirements

$ pip install -r requirements.txt

Motivation

As an activity of the Data Science Nanodegree I am taking at Udacity and to try to combine the two things that I love the most that is data and finance I decide to analyse the stock market data, using Data Science techniques to see how factors such as politics and pandemics can influence the stock market. Aiming at answering the following questions:

  1. Does the elected President party has some influence at stocks prices ?
  2. How the earlier pandemics affected the stock market ?
  3. Is it possible to generate a simple network to predict the stock market prices ?

Repository Structure

  • The data folder contain the information about the presidents terms.
  • The Udacity_stock.ipynb has the code with the analysis.
  • The LICENSE has info about the license.
  • The requirements.txt has the needed packages to run the notebook.

Results

The results can be found at the medium post available here.

Colab Notebook

You can also see the code at the Colab Notebook here

Final Considerations and acknowledgments

Go ahead and contribute to this repository, adding more factors that influence stock market prices and improving the model. If you use this code, please give credits. The image used as the cover image at the medium post is a combination of the Images by Drew Angerer / Getty Images North America via AFP, by reddit and by Andrew Harnik/AP/Glow Images

About

Project to analyse stock data, to find if the President or pandemics can change its price.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published