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
- Clone the repository
- Ensure all the dependencies are installed
- Download the
SOURCE_Datasets
to the project directory - Copy the paths of all the csv datasets into the
Correlation1.py
file - Run the
Correlation.py
file - Understand, Observe and Analyse how the Stock Prices are correlated
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!!
- pandas
- matplotlib.pyplot
- seaborn
This repository is licensed under Mit License