This project analyzes and compares multiple stock market indices (e.g., NIFTY, SENSEX, NASDAQ) to understand their investment growth, volatility, and market behavior over time. Using real-time data from Yahoo Finance via yfinance, we calculate cumulative returns, evaluate risk using volatility, and assess beta to understand index sensitivity.
yfinanceβ for fetching historical stock dataplotly.graph_objectsβ for interactive visualizationspandasβ for data processingnumpyβ for numerical calculations (implied by finance metrics)
- Cumulative Return: Tracks total return over the investment period
- Volatility Comparison: Measures price fluctuations (risk) across indices
- Covariance & Beta: Evaluates how one index moves relative to others
- Scatter Plots: Shows correlation and ROI behavior visually
π Data-Science-Stock-Market-Comparision-Project
βββ Stock_Market_Comparison.ipynb # Main Jupyter Notebook
βββ images/ # Exported visuals (e.g., volatility, return plots)
βββ readme.md # Project overview
-
Clone this repo:
git clone https://github.com/GeekyVishweshNeelesh/Data-Science-Stock-Market-Comparision-Project.git -
Install required packages:
pip install yfinance plotly pandas -
Open the notebook:
jupyter notebook Stock_Market_Comparison.ipynb
Visualizations include:
- Cumulative return line graphs
- Bar charts for volatility
All plots are generated using plotly and are stored in the notebook and images/ folder.