Skip to content

Sumanmhalsank02/Correlation-in-Stock-Market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Correlation-in-Stock-Market

Stocks

GitHub top language GitHub repo size GitHub

Description


This repository is build to analyse how the behaviour of the Stocks are correlated. The Correlation is perfomed on the percentage change of the stock price instead of the stock price.

To know more about Correlation in Stock Maret, I would recommend the following link Correlation. Do check it out for a brief understanding!! It's extremely useful if you want to create a Diversified portfolio

Installation


  1. Clone the repository
  2. Ensure all the dependencies are installed

Usage


  1. Download the SOURCE_Datasets to the project directory
  2. Copy the paths of all the csv datasets into the Correlation1.py file
  3. Run the Correlation.py file
  4. Understand, Observe and Analyse how the Stock Prices are correlated

Correlation

This is how the output will look like!!

Pandas has provided us with a .corr() function:

correlation = Data_CP_Perc_Change.corr()

To know more about .corr(), Visit pandas.DataFrame.corr

  • Try the code with different Stock Prices datasets to get a deeper understanding of Correlation
  • Have Fun!!

Dependencies


  • pandas
  • matplotlib.pyplot
  • seaborn

License


This repository is licensed under Mit License

Releases

No releases published

Packages

No packages published

Languages